Skip to content
IDOR Write-up Beginner

Attention to Details : Finding Hidden IDORs

A travel portal exposed ticket PDFs and passenger details through predictable booking identifiers, and its mobile API endpoints lacked access control. An attacker could download other customers' tickets and retrieve personal data of any passenger by iterating identifiers.

medium.com

Published on medium.com

A few of us friends were planning a Goa trip. Searching for cheap tickets on skyscanner, led me to this website, henceforth called as ‘whereIDORsLive.com’, which had amazing offers.

Aseem Shrey (@aseemshrey), 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 backend stored and served ticket files under the plain booking identifier and the API endpoints had no access control tying records to the requesting user.

Impact

An attacker could download other customers' e-tickets and retrieve passenger PII for anyone who had booked, and an invalid process type value leaked a glimpse of backend code.

What the attacker needed

A booking on the site; the mobile app for API discovery; no special access needed

The fix

The endpoints should enforce access control, for example with a token that identifies the user and only permits access to their own records, and files should only be served under the encrypted name.

How it was found

  1. Open the transaction confirmation page and inspect the Download PDF button
  2. Notice the download function receives the booking ID but uses an encrypted hidden value in the URL
  3. Request the PDF URL using the plain booking ID instead of the encrypted value
  4. Iterate over booking IDs to fetch other people's tickets
  5. Inspect the Android app's API documentation and trigger the ticket endpoint to learn the required parameters
  6. Change the booking identifier and process type to retrieve other passengers' details and PII

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 websites use a number to identify a booking or record. If the server returns whatever record matches the number without checking that it belongs to the logged-in user, anyone can change the number and see someone else's data. This is called an insecure direct object reference (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.

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.