How I found IDOR on IIT Kanpur & bypassed the payment system
The price of a course was taken from a client-side API request, so an attacker could change it and pay less. Receipt and PDF URLs used sequential numbers, so changing the number exposed other people's transactions, including address and phone details.
medium.com
Published on medium.com
Link for friends
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 server trusted a client-supplied price and used predictable sequential identifiers for receipts and PDFs without checking who owned them.
Impact
An attacker could pay a lower price than intended and could read other customers' personal data and receipt PDFs; the fix only hid the redirect, so anyone with the old URL could still access the PDFs.
What the attacker needed
A course purchase flow; ability to intercept requests; a receipt link
The fix
The price should be validated on the server against the real course price, and receipt and PDF access should check that the requester owns the record; the site's own change did not properly fix the PDF issue.
How it was found
- Intercept the API call made when buying a course
- Change the price value in the request and submit it
- Observe that only the changed price is charged
- Open a receipt and change the number in its URL
- Change the number in the receipt PDF download URL
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 buy something online, the price should be checked by the server, not trusted from your browser. Here the site believed whatever price the browser sent, so a buyer could set a lower one. Separately, receipt links used simple counting numbers, so guessing another number showed someone else's receipt.
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.