Skip to content
IDOR Write-up Beginner

IDOR in Disguise: How a Phone Number Leaked PAN Details Instantly

A form that collected a mobile number, name and PAN card number would auto-populate the stored name and PAN for any mobile number entered, without authentication. An attacker could enumerate mobile numbers to retrieve thousands of PAN numbers.

Amandeep Singh Follow

Published on medium.com

This vulnerability falls under Insecure Direct Object Reference (IDOR) a classic access control flaw where an application exposes internal implementation objects, like files or database records, based on user-supplied input without proper authorization.

Amandeep Singh, 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 looked up and returned user records based solely on the submitted mobile number, without checking that the requester was authenticated as the owner of that number.

Impact

An attacker could enumerate mobile numbers to retrieve thousands of PAN numbers, enabling identity theft and privacy violations; the vendor claimed only onboarded users' PANs were visible.

What the attacker needed

No login required; knowing a registered mobile number

The fix

The application should require authentication and verify that the requester owns the phone number before returning any stored data, and should mask or omit sensitive fields such as PAN numbers.

How it was found

  1. Submit a mobile number, name and PAN card number in the form.
  2. Open a different browser with a fresh session and no cookies.
  3. Enter the same mobile number into the form.
  4. Observe that the name and PAN card number are auto-populated.

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.

A PAN card is an Indian government identity number, like a tax ID. The website had a form where you type your phone number, and instead of asking you to log in, it filled in the name and PAN card number that belonged to that phone number. Anyone who knew or guessed a phone number could see that person's private identity 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 Amandeep Singh

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.