IDOR Epidemic: How I Found 57 Insecure Direct Object References in One Codebase
An API endpoint returned user profile data based on a numeric identifier in the URL without checking that the requester owned that record. By incrementing the identifier, the author could read other users' profiles, including executives, and automated the process to find many more affected endpoints.
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 API looked up records by the identifier supplied in the request and returned them without verifying that the authenticated user was entitled to that record.
Impact
The author claims access to profiles of executives, developers and customers, exposing personal data, emails and internal information, and states that 57 IDORs were found in total.
What the attacker needed
A free account; a valid session token
How it was found
- Send a request for your own profile using your bearer token.
- Change the numeric user identifier in the URL to the next value.
- Observe that the response returns another user's profile data.
- Repeat with further identifiers to collect more users' data.
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.
Many websites put a number in the address that identifies a record, such as a user profile. If the server hands back whatever record matches the number without checking that it belongs to the person asking, anyone can change the number and read someone else's data. This is called an insecure direct object reference, or IDOR.
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.