IDORS — leaking 1.5 crore user details
An API endpoint that returned the current user's information accepted a user ID in the path, and a path-manipulation trick bypassed the ownership check, allowing the attacker to retrieve other users' details. Because IDs were sequential, the attacker could enumerate and access information for over 1.2 crore users.
Published on medium.com
Hey fellas, After a lot of people DMs, Methodology requests, and ton of emails, i finally decided to write up the methodologies on my findings.
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's routing or path normalisation treated the injected characters as part of the path, causing the authorisation check to be bypassed while the backend still resolved the user ID.
Impact
An attacker could retrieve personal information for over 1.2 crore users by enumerating sequential IDs.
What the attacker needed
A user account on the target site; knowledge of another user's ID; ability to send crafted HTTP requests
How it was found
- Find an API endpoint that returns the current user's information.
- Append your own user ID to the path and confirm it still returns your data.
- Change the ID to another user's ID and observe a 403 Forbidden response.
- Use a 403 bypass technique that inserts special characters before the ID in the path.
- Observe that the modified request returns the other user's information.
- Increment and decrement IDs to confirm access to many 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.
An IDOR (Insecure Direct Object Reference) happens when a website uses an identifier like a user number in a request but does not check that the person making the request is allowed to see that record. Here, the site did check, but a special character sequence in the URL confused the server so the check was skipped. The attacker could then change the number to read other people's personal 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.