Skip to content
IDOR Write-up Beginner

How I got access to an IDOR that exposed PII for 6.4 million user

An endpoint that returned monthly prepaid statements did not verify that the caller owned the requested consumer number, so any authenticated user could request other users' statements. The exposed data included names, contact details, addresses and transaction summaries, and the author estimated around 6.4 million users were affected.

Dedrknex Follow

Published on medium.com

At first glance the target looked secure. The site required an email or mobile number to authenticate, sent an OTP, and had the reassuring little details security teams love to show in slides.

Dedrknex, 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 statement endpoint trusted a client-supplied consumer number and performed no server-side ownership check before returning the record.

Impact

An attacker could read other users' statements, including names, contact details, addresses and transaction summaries, which could enable targeted phishing, impersonation or identity fraud; the author estimated around 6.4 million users were exposed.

What the attacker needed

A valid account with OTP login; ability to intercept and modify API requests; guessable or enumerable consumer numbers

The fix

The endpoint was fixed by adding server-side authorization checks, according to the author's account of CERT-In's confirmation.

How it was found

  1. Log in to the site with an email or mobile number and an OTP.
  2. Proxy traffic and map the API calls, including the statement endpoint.
  3. Request a statement with a consumer number and observe that data is returned.
  4. Change the consumer number and observe that another user's statement data is 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 log in, the site should check not only that you are logged in but also that the specific record you ask for belongs to you. Here it only checked the first part, so changing a number in the request let someone read other people's bills. This kind of mistake is called an IDOR, short for insecure direct object reference.

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 Dedrknex

View all

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