Skip to content
IDOR Write-up Beginner

$500 in just a single IDOR

An API endpoint that returns an object by its identifier did not check whether the caller owned that object, so changing the identifier returned another user's data. The author could read other users' records but create, update and delete were refused.

Muhammad_Wageh Follow

Published on medium.com

After spending some time on the application in Example, I created a new Example and tried to create, read, update, and delete for another user by simply changing the Example ID to another one!

Muhammad Wageh, 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

What the attacker needed

An account on the application; knowledge of another user's object identifier

How it was found

  1. Create an account and a new object in the application.
  2. Try to create, update and delete another user's object by swapping in their identifier; all three return 403.
  3. Request the read endpoint with the other user's identifier and observe a 200 response with their 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.

Many apps fetch a record using an identifier in the URL, such as a long random string. If the server does not also check that the record belongs to the person asking, anyone who knows or guesses an identifier can read someone else's data. This is called an insecure direct object reference, or IDOR.

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.

More by Muhammad_Wageh

View all

6 more disclosed reports, best first.

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.