The “Open House” API: How I Found a Massive IDOR Vulnerabilit
An API endpoint returned user profile data for any sequential user ID without checking ownership. An attacker with a valid account could change the ID to read other users' names, emails and account statuses.
Published on alfazhossain0.medium.com
In the world of bug bounty hunting, we often talk about complex exploit chains or fancy RCEs. But sometimes, the most dangerous vulnerabilities are the ones that are staring you right in the face — the ones where the application basically says, “Sure, help yourself to everyone’s data!”
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 server relied on authentication alone and did not check that the authenticated user was authorised to access the requested user ID.
Impact
An authenticated attacker could read thousands of users' names, emails and account statuses.
What the attacker needed
A valid account; sequential user IDs
The fix
The server should check that the authenticated user is authorised to access the requested resource, and sequential IDs should be replaced with random UUIDs.
How it was found
- Log in with a test account and intercept the profile request.
- Change the numeric user ID in the request to a neighbouring value.
- Observe that the server returns another user's profile data.
- Use a script to iterate over sequential IDs and collect many records.
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 is when a website uses a simple identifier, like a number, to refer to your data but does not check that you are allowed to see it. Here, changing the number in the request let the author read other people's profiles. The fix is for the server to verify the logged-in user owns the record 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.