How I Found a Simple IDOR Bug That Exposed Sensitive Data
A mobile application endpoint accepted a user ID parameter without checking that the caller owned that record. By altering the ID, the researcher could retrieve other users' full records.
IDOR, or Insecure Direct Object Reference, is a type of security vulnerability that occurs when an application provides direct access to objects based on user-supplied input, without proper authentication or authorization checks. This means that users can potentially access data or functions that they are not…
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 endpoint looked up records by the supplied user ID without verifying that the authenticated user was allowed to access that record.
Impact
An attacker could read other users' full records, exposing sensitive personal data.
What the attacker needed
A valid account in the mobile app; an intercepting proxy
How it was found
- Log into the mobile app with your own credentials and browse its features.
- Capture and review the requests and responses in an intercepting proxy.
- Find an endpoint that takes a user ID parameter.
- Change the user ID value and resend the request.
- Observe that the server returns another user's full record.
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 apps fetch your data by putting an identifier in the request, such as a number for your account. If the server never checks that the number belongs to you, you can change it and read someone else's data. This is called an insecure direct object reference.
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.