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.
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.
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
- Log in to the site with an email or mobile number and an OTP.
- Proxy traffic and map the API calls, including the statement endpoint.
- Request a statement with a consumer number and observe that data is returned.
- 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.