Simple IDOR Led to PII & Passport Leaks (and a $1,000 Bounty)
An endpoint that returned subscription data used a user ID in the URL path without checking that the requester owned that ID. By changing the ID, an authenticated attacker could read other users' personal details and download sensitive documents such as passports and bank statements.
medium.com
Published on medium.com
Hey folks, as a bug hunter, I stumbled on this cool IDOR vuln on a private target. It let me peek at other users’ personal info without permission.
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 ID supplied in the URL path without verifying that the authenticated user owned that record.
Impact
It exposed PII including banking details and passports for approximately 900 users, which could lead to identity theft or fraud; exploitation required an authenticated account.
What the attacker needed
An authenticated account; knowledge of another user's ID
The fix
The report says the issue was fixed, though it does not describe the change; the correct fix is to check on the server that the requested record belongs to the authenticated user.
How it was found
- Log in to the application.
- Navigate to the endpoint used to start a subscription.
- Capture the GET request with Burp Suite.
- Replace the ID in the path with another user's ID.
- Observe that the other user's data and files are returned.
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 number in the address bar, to decide which record to show, but never checks that the person asking is allowed to see it. Here, changing that number let a logged-in user view someone else's profile and files. The fix is to verify on the server that the record belongs to the current user before returning it.
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.