The Ghost in the Machine: How I Found IDORs That Were Hiding in Plain Sight
The API trusted object references supplied in JSON bodies, custom headers and cookies instead of the authenticated user context, so a logged-in user could read and modify other users' profiles, documents, orders and billing details. The author also abused a bulk-update endpoint to change features on accounts they did not own.
Free link 🎈
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server resolved the acting user from client-supplied parameters, headers and cookies rather than from the validated token, and never checked ownership of the referenced objects.
Impact
An authenticated user could read and change other users' profiles, documents, orders, billing information and account settings, and could alter features on accounts they did not own.
What the attacker needed
A valid account and token; knowledge of another user's numeric ID
The fix
The report says the vendor removed object references from request bodies, added context validation and parameter-location consistency checks, and improved logging.
How it was found
- Send a profile update request and notice a user identifier inside the JSON body as well as in the URL.
- Change only the body identifier to another user's number and resend the request.
- Observe a success response and that the other user's profile was changed.
- Send a documents request with custom user-context headers set to another user's number.
- Send a billing request with cookies carrying another user's number.
- Submit a bulk update listing several user numbers to change a feature on all of them.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
An IDOR (insecure direct object reference) happens when a website lets you name the record you want, such as a user number, and does not check that the record belongs to you. Here the site did check the number in the web address, but it also accepted a user number hidden in the request body, in extra headers and in cookies, and trusted those instead. That let one ordinary account act on other people's data.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.