Skip to content
IDOR Write-up Beginner

How I Found My First Critical Bug (An IDOR Story)

An order invoice endpoint used sequential numeric IDs without any permission check, so any logged-in user could read another customer's invoice by changing the ID. The attacker could obtain names, shipping addresses, partial card numbers and email addresses of other customers.

medium.com

Published on medium.com

Everybody remembers their first critical. Mine wasn’t some genius exploit — it was me being stubborn and changing a number.

Nitin yadav, 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 invoice endpoint looked up orders by their numeric ID without verifying that the authenticated user owned the order.

Impact

Any authenticated user could retrieve any other customer's invoice, exposing names, addresses, partial card numbers and emails across the entire customer base.

What the attacker needed

A free account on the e-commerce site; knowledge of a valid order ID

How it was found

  1. Create an account and open the order history.
  2. Click an order and note the invoice URL containing a numeric ID.
  3. Send the request to a tool like Burp Repeater and change the ID to a neighbouring number.
  4. Observe that the response contains another user's invoice details.
  5. Create a second account, place an order, and note its ID.
  6. From the first account, request the second account's invoice to prove cross-user access.

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.

When you log in to a shop and view your order, the website asks the server for that order using a number in the address. If the server does not check that the order belongs to you, you can simply change the number to see someone else's order. This is called an IDOR (Insecure Direct Object Reference): the site uses a real identifier but forgets to check who is allowed to see it.

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.