Skip to content
IDOR Write-up Beginner

Insecure Direct Object Reference — Simple case

An entertainment ticketing site exposed order details through a URL containing a sequential order identifier. By changing the identifier, an attacker could view another user's order, though this particular order lacked sensitive personal data.

mvenkata.bharath Follow

Published on medium.com

Hi, I’m Bharath Kumar, a security researcher dedicated to exploring vulnerabilities, analyzing attack patterns, and contributing to a safer cyberspace. In this blog, I’ll share findings from my latest research and discuss their implications.”

Bharath Kumar, 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 application used a predictable order identifier in the URL and did not verify that the requesting user owned that order before returning its details.

Impact

An attacker could view another user's order details; in this case the order did not contain sensitive personal information, but if such data were present it could have been exposed.

What the attacker needed

A user account on the site; placing an order to obtain an order URL; guessing or knowing another order identifier

The fix

The application should enforce strict authorization checks for every request to verify that the user has permission to access the resource, and use non-sequential, randomized identifiers.

How it was found

  1. Place an order on the entertainment website and note the URL containing the order identifier.
  2. Send a request to the original order URL.
  3. Modify the order identifier in the URL to a different value.
  4. Send the modified request and 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 a website uses a simple number or code in the web address to identify something like an order, and it does not check that you own that order, you can change the number to see someone else's. This is called an insecure direct object reference (IDOR). Here, changing the order code in the address showed another person's order 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.

More by mvenkata.bharath

View all

1 more disclosed report, 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.