Skip to content
IDOR Write-up Beginner

How I Discovered a High-Severity IDOR on an E-Commerce Platform

An API endpoint for order history accepted a customer identifier without any authentication or authorisation check, so anyone could read other customers' email addresses, names and order histories. The identifiers were predictable and the endpoint had no rate limiting, allowing automated enumeration at scale.

medium.com

Published on medium.com

It was one of those bug hunting nights where everything felt dead. I had been clicking around for hours, throwing requests into Burp Suite, sending stuff to Repeater, and getting absolutely nothing back.

Kanishkdadhich, 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 performed no authentication or authorisation check on the supplied customer identifier, trusting the client to send only its own ID.

Impact

An unauthenticated attacker could read other customers' email addresses, names and order histories, and could automate enumeration at scale because no rate limiting was present; malformed requests also leaked internal file paths via stack traces.

What the attacker needed

No authentication required; Knowledge of a customer identifier; Network access to the API

How it was found

  1. Notice a POST request to the order-history endpoint that includes a customer identifier but no Authorization header.
  2. Create a second account and note its customer identifier.
  3. Replace the original identifier with the second account's identifier and resend the request.
  4. Observe that the response contains the second account's email, name and order history.
  5. Repeat the request to confirm the result is consistent.
  6. Use Burp Intruder to send hundreds of requests with different identifiers and observe no blocking or throttling.

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 access a record just by changing an identifier in the request, without checking that the record belongs to you. Here the order-history endpoint trusted whatever customer ID was sent, so swapping in someone else's ID returned their personal data. Because the IDs were predictable and there was no rate limiting, an attacker could script through many IDs and harvest many customers' details.

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.