How I Used Sequential IDs to Download an Entire Company’s User
The API returned full user profiles, including sensitive data like SSNs and salaries, for any sequential user ID without proper authorization checks. An attacker with a basic account could enumerate IDs to download the entire user database.
Free Link🎈
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 API lacked proper authorization checks, allowing any authenticated user to access other users' data by guessing sequential IDs.
Impact
An attacker could download the entire user database, including PII, salaries, and other sensitive information, leading to a massive data breach.
What the attacker needed
A free user account; valid API token
The fix
The company fixed it by implementing proper authorization checks, switching to UUIDs, adding rate limiting, and removing sensitive fields from API responses.
How it was found
- Create a test account and obtain an API token.
- Access your own profile using the API endpoint with your user ID.
- Change the user ID in the request to another number (e.g., increment by one).
- Observe that the response returns another user's full profile data.
- Automate the process to extract data for many user IDs.
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.
The website used simple numbers to identify each user, and it did not check if you were allowed to see other users' information. By changing the number in the web address, anyone could view anyone else's private details, like their salary and social security number.
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.