Skip to content
IDOR Write-up Beginner

Anatomy of a Critical Bug: A Case Study in Chaining IDORs

The order API used predictable numeric IDs, allowing an attacker to change the ID and view other customers' order details. The order data contained a shipping identifier that could also be changed to access full personal information of other customers.

medium.com

Published on medium.com

How a simple numeric ID led to a potential full data breach. A lesson in deep API analysis.

Gentil Security, 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 did not verify that the authenticated user owned the requested order or shipping record, relying only on predictable identifiers.

Impact

An attacker could view any user's order history and access the full personal information of every customer, leading to a massive data breach and compliance issues.

What the attacker needed

A free account; place a test order

How it was found

  1. Create an account and place a test order.
  2. Intercept the network traffic to find the order API endpoint.
  3. Change the order ID in the request to a nearby number.
  4. Observe that the API returns another customer's order details.
  5. Note the shipping_details_id field in the response.
  6. Request the shipping endpoint with a modified shipping ID to retrieve another customer's personal data.

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 refer to your data and does not check that you are allowed to see it. By changing that number, an attacker can see someone else's information. Here, the first IDOR exposed order details, and those details contained another identifier that led to even more sensitive data.

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.