Skip to content
IDOR Write-up Beginner

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.

iski Follow

Published on infosecwriteups.com

Free Link🎈

Iski, on infosecwriteups.com

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

  1. Create a test account and obtain an API token.
  2. Access your own profile using the API endpoint with your user ID.
  3. Change the user ID in the request to another number (e.g., increment by one).
  4. Observe that the response returns another user's full profile data.
  5. 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.

More by iski

View all

186 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.