Skip to content
IDOR Write-up Beginner

How a Bus That Left 2 Minutes Early Led Me to an IDOR Exposing Th

An API endpoint for subscriptions used a sequential integer parameter without checking ownership, allowing anyone to retrieve other users' legal subsidy documents. An attacker could change the number to access personal data including full names and national identification numbers.

Gombos Ákos-Roland Follow

Published on medium.com

It was around the end of August, 2024. I was standing at the bus stop, watching my bus pull away — two minutes early.

Gombos Ákos-Roland, 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

The backend performed no authorization check to verify that the requesting user owned the subscription record being queried.

Impact

An attacker could access other users' full names, national identification numbers, and signed legal declarations, potentially leading to identity theft or privacy violations.

What the attacker needed

Access to the API endpoint; no authentication required

The fix

The vulnerability was silently patched, but the proper fix is to verify that the authenticated user's ID matches the owner of the record before returning it.

How it was found

  1. Intercept the subscription request with Burp Suite.
  2. Change the card_sdist parameter to a different number.
  3. Send the request and receive base64-encoded data.
  4. Decode the data to view another user's legal document.

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.

This is an IDOR (Insecure Direct Object Reference), where a website uses a simple number to identify a record but doesn't check if you're allowed to see it. By changing the number, you can view someone else's private information. The fix is to verify that the logged-in user owns the record before showing 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.

More by Gombos Ákos-Roland

View all

2 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.