IDOR Exploit: A Tale of Account Takeover
User profile URLs used predictable sequential IDs, and the application did not check whether the requester was allowed to view that profile. An attacker could change the ID in the URL to read other users' personal data, including email addresses, phone numbers and account settings.
Published on danial1337.medium.com
Introduction: In today’s interconnected digital landscape, security vulnerabilities pose significant risks. One such vulnerability is the Insecure Direct Object Reference (IDOR), which can lead to severe consequences such as account takeovers.
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 application served profile data based only on the user ID in the URL without verifying that the logged-in user had permission to view that profile.
Impact
This allowed unauthorized access to the personal data of thousands of users, which could lead to privacy violations and loss of trust.
What the attacker needed
A web application with user profiles; predictable sequential user IDs; no authorization check on profile access
The fix
The application should enforce proper access controls and authorization checks before serving profile data, and use non-predictable random identifiers for references.
How it was found
- Notice that a profile URL contains a numeric user ID and displays that user's profile.
- Change the numeric ID in the URL to another value and see another user's profile.
- Use a script to iterate through user IDs and collect sensitive information.
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 happens when a website uses a simple, guessable reference (like a number in the address) to point at a record, but forgets to check that the person asking is allowed to see it. Here, changing the number in the profile address showed someone else's profile. The attacker could then collect private details such as email addresses and phone numbers.
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.