Skip to content
IDOR Write-up Beginner

How I got IDOR At XOXODAY BBP :)

An order history endpoint identified orders by a short numeric order ID, and the server did not check that the order belonged to the requesting user. By changing the order ID, an attacker could view other users' order details, including names, phone numbers, emails and addresses.

Krrish Bajaj Follow

Published on cybersecuritywriteups.com

SO, Hello dosto kaise ho sbhi, So its basically my second writeup on IDOR that I got at XOXODAY BBP.

Krrish Bajaj, on cybersecuritywriteups.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 order history endpoint looked up orders by a sequential numeric ID without verifying the order belonged to the logged-in user.

Impact

An attacker could enumerate order IDs and read other users' personal details such as names, phone numbers, emails and addresses.

What the attacker needed

A logged-in account; ability to intercept HTTP requests

How it was found

  1. Log in and open the order history page.
  2. Intercept the order history request in a proxy tool.
  3. Send the request to the repeater and change the order ID value.
  4. Observe that another user's order details are returned.

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 view your order history, the website asks the server for an order using a number. If the server only looks up that number and never checks that the order is yours, anyone can swap in another number and see someone else's order. This is called an insecure direct object reference (IDOR): the 'object' is the order, and the reference is the guessable number.

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.