IDOR to view order information of users and personal information
The checkout API did not verify that the requesting user owned the order. An attacker could change the identifier to view other users' order details, including full address, payment information, and products.
- Triaged in 12 days
- Fixed in 3 months
- Paid in 15 days
- Disclosed after 3 months
Summary:
[Broken access control is the method of controlling which users can perform a certain type of action or view set of data. Broken access control is a vulnerability that allows an attacker to circumvent those controls and perform more actions than they are allowed to, or view content they typically don’t have access to. Such vulnerability, when exploited, could lead to massive loss of data.]
Steps To Reproduce:
Navigate to https://razer.com and purchase something
Now select the option to use “Affirm” as a financing option
Look for the POST parameter of /api/██████/ and the request will inform you of the “checkout_ari”:“XXXXXXXXXXXXXXXX” generated for that specific purchase.
Forward this Request to the repeater, then change the value “checkout_ari”:“XXXXXXXXXXXXXXXX” to “checkout_ari”:“YYYYYYYYYYYYYYYYY” and the back-end will return the requested order with all the user’s purchase information from his full address, means payments, and products.
Please check the attachments for POCs
Supporting Material/References:
image.png1(██████████) image2(██████████) image3(██████) image4(████) video(███)
Remediation Recommendations Implement proper access control measures around data sets and functions. Ensure that only authorized users are able to view data or perform the functions they are intended. Implement object-based access controls. This will ensure that users who circumvent UI restrictions are still restricted from retrieving any sensitive data or perform restricted actions without proper authorization. Please review the OWASP foundations recommendations for more specific details on Broken Access Control.
References https://www.owasp.org/index.php/Category:Access_Control
https://www.owasp.org/index.php/Access_Control_In_Your_J2EE_Application
https://www.owasp.org/index.php/Broken_Access_Control
Impact
Once a flaw is discovered, the consequences of a flawed access control scheme can be devastating. In addition to viewing unauthorized content, an attacker might be able to change or delete content, perform unauthorized functions, or even take over site administration.
Context
The target is Affirm, a financing option offered at checkout on merchant sites. The report uses Razer's storefront as the example flow: a shopper buys something on https://razer.com and chooses Affirm as the financing method. During that checkout, the front end calls an API endpoint under /api/██████/, and the request carries a checkout_ari value that identifies the specific purchase. The vulnerability is an insecure direct object reference: the checkout_ari value is the only thing tying a request to an order, and the back end does not check that the caller is entitled to that order.
Setup
No special accounts, roles or tool versions are described. The only precondition is the normal purchase flow: a shopper goes to https://razer.com, buys something, and selects Affirm as the financing option. The researcher forwarded the checkout request to a repeater to replay it with a modified value. The endpoint path is redacted in the report as /api/██████/, and the two checkout_ari values are shown as XXXXXXXXXXXXXXXX and YYYYYYYYYYYYYYYYY.
Finding it
While walking through the Affirm checkout, the researcher looked at the POST request to /api/██████/ and noticed that the request body contains a checkout_ari value generated for that specific purchase. The test was to take a value belonging to one purchase and substitute a different one, then see whether the back end returned the corresponding order.
Exploitation
Step 1: Start a purchase and choose Affirm
Navigate to https://razer.com and purchase something, then select the option to use Affirm as a financing option. This produces the checkout request described in the next step.
Step 2: Capture the checkout request
Look for the POST parameter of /api/██████/. The request informs you of the checkout_ari generated for that specific purchase:
"checkout_ari":"XXXXXXXXXXXXXXXX"
checkout_ari is the object reference for the order. The value shown here is the one issued to the researcher's own purchase.
Step 3: Swap the identifier and replay
Forward the request to the repeater, then change the value from "checkout_ari":"XXXXXXXXXXXXXXXX" to "checkout_ari":"YYYYYYYYYYYYYYYYY":
"checkout_ari":"YYYYYYYYYYYYYYYYY"
The back end returns the requested order with all of the user's purchase information: full address, means of payment, and products. In other words, the server resolves whatever checkout_ari it is given and returns the associated order without confirming that the caller owns it.
Root cause
The endpoint performs object lookup on a client-supplied identifier and does not enforce object-level authorisation on the result. The checkout_ari value is treated as sufficient proof of entitlement to the order, so any valid value for another purchase yields that purchase's data. The report frames this as broken access control: the controls that decide which users may view which data are missing around the data set and the function. The report recommends object-based access controls so that users who circumvent UI restrictions are still prevented from retrieving sensitive data. This is the report's own characterisation; the underlying code is not shown.
Impact
An attacker who obtains a valid checkout_ari value can view another user's order information, including full address, means of payment and products. The report describes the general consequences of flawed access control as potentially devastating: in addition to viewing unauthorised content, an attacker might be able to change or delete content, perform unauthorised functions, or even take over site administration. Those wider consequences are stated as general risk rather than demonstrated here; what the report shows is read access to other users' order data. The report does not describe how an attacker would obtain a valid checkout_ari value beyond the substitution step.
Fix
The report recommends implementing proper access control measures around data sets and functions, so that only authorised users can view data or perform the functions they are intended to. Specifically, it calls for object-based access controls, so that users who circumvent UI restrictions are still prevented from retrieving sensitive data or performing restricted actions without proper authorisation. It points to the OWASP Foundation's recommendations on Broken Access Control for more detail. The report does not state what was actually changed.
Variants to test
- Substitute the object identifier in any checkout or order endpoint with a value from a second account you control, and check whether the response contains the second account's data. A positive result is a full order object returned for an identifier you do not own.
- Try identifiers that are sequential or otherwise predictable rather than random, and walk a small range. A positive result is a series of distinct orders coming back.
- Replay the same request with the identifier removed, blank, or of a different type, and observe whether the server falls back to a default order or leaks an error that reveals the lookup. A positive result is any order data returned without a valid identifier.
- Check whether the same identifier is accepted on related endpoints (order status, payment details, address) that may not share the same authorisation logic. A positive result is any of those endpoints returning data for an order you do not own.
Hunting notes
This kind of bug tends to sit in checkout and financing flows where a single opaque token stands in for the whole order, especially where the front end is the only place that ties the token to a session. During recon, watch for POST requests whose bodies carry a single long identifier and little else: those are the requests where swapping the value is cheap to test. A substituted checkout_ari returned another user's full address, means of payment and products. The report was rated medium severity and paid a 500 USD bounty.
What happened, in plain words
Affirm is a company that lets people pay for things in instalments instead of all at once. When you buy something in an online shop, the shop can offer Affirm as a way to finance the purchase. The researcher in this report bought something on Razer's online store (https://razer.com, a shop that sells computer gear) and chose Affirm at checkout.
During that checkout, the shop's website quietly sends a message to Affirm's servers. That message is an API request. An API is the part of a website that computers talk to directly, without a human clicking buttons: think of it as the service counter at the back of a shop, where the website's own pages go to fetch or send data. The request carried a value called checkout_ari, a long string of characters that acts like a claim ticket for that one purchase. Whoever holds the ticket can ask for the order it belongs to.
The researcher found that the server would hand back the order details for a different checkout_ari value, not just their own. By swapping their own ticket for a different one, they got back another shopper's full address, payment details and products. This kind of flaw is called an Insecure Direct Object Reference, or IDOR: the server lets you name an object (here, an order) directly, and never checks that the object is yours.
Context
The target is Affirm, a financing option offered at checkout on merchant sites. The report uses Razer's storefront as the example flow: a shopper buys something on https://razer.com and chooses Affirm as the financing method. During that checkout, the front end calls an API endpoint under /api/██████/, and the request carries a checkout_ari value that identifies the specific purchase. The vulnerability is an insecure direct object reference: the checkout_ari value is the only thing tying a request to an order, and the back end does not check that the caller is entitled to that order.
A few words to unpack there. The front end is the part of the website you see and interact with in your browser. The back end is the server behind it, which stores the data and decides what to send back. An endpoint is a specific address on that server, like a particular counter in a building: /api/██████/ is one such address, and the report hides part of it. A request is the message your browser sends to ask the server to do something. The body of a request is the part that carries the actual data, as opposed to the address it is sent to.
Setup
No special accounts, roles or tool versions are described. The only precondition is the normal purchase flow: a shopper goes to https://razer.com, buys something, and selects Affirm as the financing option. The researcher forwarded the checkout request to a repeater to replay it with a modified value. The endpoint path is redacted in the report as /api/██████/, and the two checkout_ari values are shown as XXXXXXXXXXXXXXXX and YYYYYYYYYYYYYYYYY.
An intercepting proxy is a tool that sits between your browser and the internet and lets you pause a request mid-flight, look at it, and change it before it goes on. A repeater is a feature of such tools that lets you send the same request again and again with small edits, so you can compare what the server says each time. You do not need either to understand the bug; they are just how the researcher got hold of the request and experimented with it.
Finding it
While walking through the Affirm checkout, the researcher looked at the POST request to /api/██████/ and noticed that the request body contains a checkout_ari value generated for that specific purchase. The test was to take a value belonging to one purchase and substitute a different one, then see whether the back end returned the corresponding order.
POST is one of the standard ways a browser talks to a server: it is used when you are sending data, such as submitting a form, rather than just asking for a page. The reasoning here is simple: if the only thing that says which order you want is a string you supply, then the server has to decide whether you are allowed to ask for that order. If it never asks that question, anyone who can produce a valid string gets the order.
Exploitation
Step 1: Start a purchase and choose Affirm
Navigate to https://razer.com and purchase something, then select the option to use Affirm as a financing option. This produces the checkout request described in the next step.
This step exists to create a real, legitimate checkout of your own. You need one so that you have a genuine request to look at, and a genuine checkout_ari value of your own to start from. Without a real purchase there is nothing to intercept.
Step 2: Capture the checkout request
Look for the POST parameter of /api/██████/. The request informs you of the checkout_ari generated for that specific purchase:
"checkout_ari":"XXXXXXXXXXXXXXXX"
Line by line: checkout_ari is the name of the field, the part before the colon. The colon separates the name from the value. "XXXXXXXXXXXXXXXX" is the value itself, a placeholder standing in for the real string the server issued for the researcher's own purchase. The quotation marks are part of the format: this is a piece of JSON, a common way of writing data as name-and-value pairs so computers can read it easily. In plain terms, this line says: the order I am asking about is the one with ticket XXXX.
checkout_ari is the object reference for the order. The value shown here is the one issued to the researcher's own purchase.
Step 3: Swap the identifier and replay
Forward the request to the repeater, then change the value from "checkout_ari":"XXXXXXXXXXXXXXXX" to "checkout_ari":"YYYYYYYYYYYYYYYYY":
"checkout_ari":"YYYYYYYYYYYYYYYYY"
Here the only change is the value between the quotes: the ticket for the researcher's own order has been replaced with a different ticket, shown as YYYYYYYYYYYYYYYYY. Everything else in the request stays the same. The point of changing only this one thing is to isolate the question: does the server care whose ticket it is, or only that the ticket is valid?
The back end returns the requested order with all of the user's purchase information: full address, means of payment, and products. In other words, the server resolves whatever checkout_ari it is given and returns the associated order without confirming that the caller owns it.
That last sentence is the whole bug. The server behaved like a cloakroom attendant who hands over any coat to anyone who reads out a ticket number, without checking that the person holding the ticket is the person who left the coat.
Root cause
The endpoint performs object lookup on a client-supplied identifier and does not enforce object-level authorisation on the result. The checkout_ari value is treated as sufficient proof of entitlement to the order, so any valid value for another purchase yields that purchase's data. The report frames this as broken access control: the controls that decide which users may view which data are missing around the data set and the function. The report recommends object-based access controls so that users who circumvent UI restrictions are still prevented from retrieving sensitive data. This is the report's own characterisation; the underlying code is not shown.
Access control means the rules about who is allowed to see or do what. Broken access control means those rules are missing or can be sidestepped. Authorisation is the specific check that you are allowed to do this thing, as opposed to authentication, which is just proving who you are. The report's point is that the check was, at best, in the UI (the user interface, the buttons and pages you see): the website might not show you a link to someone else's order, but the server would still answer if you asked directly. Hiding a door is not the same as locking it.
Impact
An attacker who obtains a valid checkout_ari value can view another user's order information, including full address, means of payment and products. The report describes the general consequences of flawed access control as potentially devastating: in addition to viewing unauthorised content, an attacker might be able to change or delete content, perform unauthorised functions, or even take over site administration. Those wider consequences are stated as general risk rather than demonstrated here; what the report shows is read access to other users' order data. The report does not describe how an attacker would obtain a valid checkout_ari value beyond the substitution step.
Fix
The report recommends implementing proper access control measures around data sets and functions, so that only authorised users can view data or perform the functions they are intended to. Specifically, it calls for object-based access controls, so that users who circumvent UI restrictions are still prevented from retrieving sensitive data or performing restricted actions without proper authorisation. It points to the OWASP Foundation's recommendations on Broken Access Control for more detail. The report does not state what was actually changed.
Object-based access control means checking, for each individual object (each order, each record), that the person asking is allowed to have it, rather than only checking that they are logged in at all. The report's own reference list is:
https://www.owasp.org/index.php/Category:Access_Controlhttps://www.owasp.org/index.php/[redacted]https://www.owasp.org/index.php/Broken_Access_Control
Variants to test
- Substitute the object identifier in any checkout or order endpoint with a value from a second account you control, and check whether the response contains the second account's data. A positive result is a full order object returned for an identifier you do not own.
- Try identifiers that are sequential or otherwise predictable rather than random, and walk a small range. A positive result is a series of distinct orders coming back.
- Replay the same request with the identifier removed, blank, or of a different type, and observe whether the server falls back to a default order or leaks an error that reveals the lookup. A positive result is any order data returned without a valid identifier.
- Check whether the same identifier is accepted on related endpoints (order status, payment details, address) that may not share the same authorisation logic. A positive result is any of those endpoints returning data for an order you do not own.
Sequential means the values follow a pattern, like 1001, 1002, 1003, so that guessing the next one is easy. Predictable means the same thing in a broader sense: if you can work out the pattern, you can generate valid values without ever seeing them.
Hunting notes
This kind of bug tends to sit in checkout and financing flows where a single opaque token stands in for the whole order, especially where the front end is the only place that ties the token to a session. During recon, watch for POST requests whose bodies carry a single long identifier and little else: those are the requests where swapping the value is cheap to test. A substituted checkout_ari returned another user's full address, means of payment and products. The report was rated medium severity and paid a 500 USD bounty.
A token here is just a long, hard-to-guess string that stands for something, like a claim ticket. Opaque means you cannot read any meaning out of it: it is not a number you can count up from, it is just a blob of characters. Recon (reconnaissance) is the exploratory phase where you look around a site to see how it works before testing anything. Severity is the rating of how serious a bug is, and a bounty is the money a company pays a researcher for reporting it responsibly.
Glossary
- API: the part of a website that computers talk to directly, sending and receiving data without a human clicking through pages.
- Access control: the rules that decide who may see or do what.
- Authentication: proving who you are, for example by logging in.
- Authorisation: the check that you, specifically, are allowed to do the thing you are asking for.
- Back end: the server and code behind a website, which store data and decide what to send back.
- Body: the part of a request that carries the actual data, as opposed to the address it is sent to.
- Bounty: money paid to a researcher for reporting a security bug.
- Broken access control: access rules that are missing or can be sidestepped.
- checkout_ari: the value in the request that identifies a specific purchase; the object reference in this bug.
- Endpoint: a specific address on a server that a request can be sent to.
- Front end: the part of a website you see and use in your browser.
- IDOR (Insecure Direct Object Reference): a flaw where the server lets you name an object directly and does not check that it is yours.
- Intercepting proxy: a tool that sits between your browser and the internet so you can pause, inspect and change requests.
- JSON: a common text format for writing data as name-and-value pairs.
- Object: a single record the server holds, such as one order.
- Object-based access control: checking, for each individual object, that the person asking is allowed to have it.
- Opaque: a value you cannot read meaning out of, such as a random-looking string.
- POST: a standard way of sending data to a server, used when submitting rather than just fetching a page.
- Predictable: a value whose pattern can be worked out, so valid ones can be generated.
- Recon (reconnaissance): the exploratory phase of looking around a site to understand how it works.
- Repeater: a tool feature that resends the same request with small edits so you can compare responses.
- Request: a message your browser sends to a server asking it to do something.
- Sequential: values that follow a counting pattern, like 1001, 1002, 1003.
- Severity: the rating of how serious a bug is.
- Token: a long, hard-to-guess string that stands for something, like a claim ticket.
- UI (user interface): the buttons, links and pages you see and interact with.