Skip to content
IDOR Write-up Intermediate

I Found an IDOR Worth $20,000 -Here’s What Happened

An API endpoint on a staging-related domain lacked authorization checks, allowing an attacker to retrieve real production user records by changing a numeric identifier. The exposed data included names, phone numbers, addresses, identification numbers, and card-related details.

medium.com

Published on medium.com

It’s been a while since I last wrote about bug bounty hunting. Over the past few months, I moved to Hyderabad for work and got busy adjusting to a new routine, which meant my bug bounty activity slowed down for a bit.

Mohaseen, 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 endpoint failed to verify that the requesting user was authorised to access the record associated with the supplied identifier.

Impact

An attacker could automate requests to retrieve large volumes of sensitive PII for many users, though the report was closed without a bounty because the issue was already fixed internally.

What the attacker needed

Access to the staging-related domain; a valid identifier from the main application; no authentication required

The fix

The issue was fixed within about four hours, though the text does not describe the specific fix.

How it was found

  1. Review old reconnaissance data and JavaScript files to find an unusual domain.
  2. Use a search engine dork to discover API endpoints on that domain.
  3. Test the endpoints with placeholder identifiers and observe demo data.
  4. Replace the placeholder with a real identifier from the main application and replay the request.
  5. Use Burp Suite Intruder with a small range of identifiers to confirm that each request returns a different user's record.

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 uses a simple identifier, like a number, to decide which record to show, but forgets to check if the person asking is allowed to see that record. Here, changing the number in an API request returned other people's private information instead of an error.

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.