Skip to content
IDOR Write-up Beginner

Exploiting an IDOR Vulnerability in Target.com Account Management System

The account management API accepted both a long alphanumeric user ID and a short numeric one, and it did not validate the CSRF token. By changing the numeric ID to a neighbouring value, an attacker could read other users' company details, and an endpoint without an ID returned all user information.

bugbountylogs Follow

Published on bugbountylogs.medium.com

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

Bug Bounty Logs, on bugbountylogs.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 the user-supplied identifier without checking that it belonged to the authenticated user, and it did not enforce CSRF token validation.

Impact

An attacker could read sensitive company details of other users, and because numeric IDs are sequential, mass extraction could be automated; the missing CSRF check made unauthorised requests easier.

What the attacker needed

A free account; ability to intercept HTTP requests

How it was found

  1. Log in and go to the account settings page, then add a card to reach the company creation screen.
  2. Choose the private option and observe the page loading indefinitely.
  3. Intercept the request in a proxy and send it to the repeater; the response contains a 32-character user ID.
  4. Replace the CSRF token with a dummy value and resend; the server still returns the company details.
  5. Replace the long user ID with the numeric ID seen during account creation and resend; the request succeeds.
  6. Create a new account to see the next numeric ID, then change the request to that ID and access another account's details.

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 user ID was a simple number that went up by one for each new account, so trying the next number showed another person's details. The site also ignored a security token meant to stop other sites from making requests on your behalf.

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.

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.