Skip to content
IDOR Write-up Beginner

($$) Critical IDOR Vulnerability Leads to User Information Disclosure

The account management API accepted a numeric user ID in place of the long random identifier and returned another user's company details, and the server also failed to validate the CSRF token. An attacker could enumerate sequential user IDs to read sensitive information belonging to other accounts.

Tanvir0x1 Follow

Published on medium.com

During a security assessment of Target.com’s account management system, I identified a critical Insecure Direct Object Reference (IDOR) vulnerability. By manipulating user IDs in API requests, I was able to access sensitive information of other users.

Tanvir Ahmed, on medium.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 trusted a client-supplied numeric user ID without checking that it belonged to the authenticated user, and it did not enforce CSRF token validation.

Impact

An attacker could read sensitive company and account information belonging to other users, and the missing CSRF check could allow forged requests, though the report does not show a full account takeover.

What the attacker needed

A free account; ability to intercept and modify requests

How it was found

  1. Log in and add a Visa card in Account Settings to reach the company creation screen.
  2. Choose the Private option and capture the request with Burp Suite.
  3. Note the 32-character user ID in the response and replace the CSRF token with a dummy value; the server still accepts it.
  4. Replace the long user ID with the numeric ID seen at account creation and resend; the request succeeds.
  5. Create a second account to confirm IDs are sequential, then request the next ID and read that account's information.
  6. Request the user endpoint without an ID to retrieve all user 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 (Insecure Direct Object Reference) happens when a website lets you change an identifier in a request to reach someone else's data. Here the site used a short number as a user ID, and those numbers went up by one for each new account, so changing the number showed other people's details. The server also ignored a security token meant to stop forged requests.

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 Tanvir0x1

View all

1 more disclosed report, 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.