Day 39: IDOR report
The site exposed sequential user identifiers in a profile URL without checking whether the logged-in user was allowed to view that profile. An authenticated user could change the number to read other users' profile data.
medium.com
Published on medium.com
Hunting for bugs is probably one of the toughest thing I’ve experienced in tech so far. It is also one of the most rewarding things out there.
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 used a sequential user identifier from the URL to fetch a profile without verifying that the logged-in user was authorised to view that profile.
Impact
Any authenticated user could view other users' profile data by changing a URL parameter, causing unauthorised data exposure and privacy breaches; the author suggests similar flaws could lead to account takeovers if they affect functions like password resets.
What the attacker needed
An authenticated account; victim has a profile
The fix
The application should use unpredictable indirect references instead of exposing internal user IDs, and should validate and authorise every request server-side.
How it was found
- Log in to the site as an authenticated user.
- Open a user profile page and note the user_id parameter in the URL.
- Change the user_id value to another integer.
- Load the page and see the other user's profile details without further checks.
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.
A web app sometimes puts a simple number in the address bar to say which record to show, such as a profile. If the server does not check that the person asking is allowed to see that record, anyone can change the number and peek at someone else's data. This is called an insecure direct object reference, or IDOR.
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.