Discovering an IDOR Vulnerability in a Community Platform API
The API used a user-supplied identifier to fetch account data without checking whether the requesting user was allowed to access that account. An authenticated attacker could change the identifier to read other users' information.
Published on medium.com
During routine web application security testing and API analysis, I identified an Insecure Direct Object Reference (IDOR), also known as Broken Object Level Authorization (BOLA), affecting user-related API endpoints on a large online community platform.
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
The backend trusted the user-supplied identifier and returned the corresponding data without verifying that the authenticated user had permission to access that object.
Impact
An authenticated attacker could access other users' account information, potentially at scale, leading to privacy violations and user enumeration.
What the attacker needed
A standard authenticated account
The fix
The application should enforce object-level authorization checks on all user-related API endpoints, verifying ownership and access rights before returning resources.
How it was found
- Capture API requests containing a user identifier parameter.
- Modify the identifier value in the request.
- Replay the modified request to the server.
- Observe that the server returns information for a different account.
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 uses a simple identifier, like a user number, to decide what data to show, but forgets to check if you are allowed to see that data. Here, any logged-in user could change the number in an API request and see another person's account details.
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.