Skip to content
IDOR Write-up Beginner

How I found an unauthenticated goldmine of PII

An unauthenticated API endpoint returned full user records, including emails, phone numbers and admin flags, when the factoryId parameter was changed. An attacker could enumerate user data without logging in.

medium.com

Published on medium.com

As a bug hunter, I’ve learned that the simplest interfaces can sometimes hide the biggest mistakes. A single API request.

0xP0L73R63157, 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 endpoint lacked an authorisation check on the factoryId parameter, allowing any anonymous session to retrieve user records for arbitrary factories.

Impact

An unauthenticated attacker could retrieve full user profiles, including emails, phone numbers and admin flags, for any factory by changing a single parameter.

What the attacker needed

No authentication required; ability to send HTTP requests

The fix

The endpoint was secured and access controls were properly enforced, and the vulnerability was patched and fully resolved in two days.

How it was found

  1. Run subdomain enumeration and focus on hosts returning 200 OK.
  2. Scan the host for directories and files to find endpoints returning 200 OK.
  3. Access an endpoint that creates an anonymous session, allowing browsing of internal pages.
  4. Use the 'Include Users' button in the ticket creation feature and observe the request with a handler parameter.
  5. Modify the factoryId parameter and replay the request, filtering responses by length.
  6. Open the larger response to see full user records.

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.

A web application had a page that fetched user details using a number in the request. The server did not check whether the person asking was allowed to see those details, so anyone could change the number and receive other users' private information.

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.