I Got 5 Bug Bounty Reports Rejected… Then This One Bug Paid Me $800
An invoice viewing endpoint lacked an authorization check, so any authenticated user could access other users' invoices by changing the invoice ID. An attacker could enumerate IDs to extract sensitive financial data of all users.
Published on sukhveersingh97997.medium.com
👉 Complete XSS Guide (Beginner → Advanced): https://www.bugitrix.com/blog/fundamentals-basics-4/cross-site-scripting-xss-guide-45
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 used the invoice ID from the request to fetch the invoice without verifying that the invoice belonged to the authenticated user.
Impact
Any authenticated user could access any invoice by changing a number, potentially dumping thousands of invoices and building a full user database with names, emails, billing details and transaction history.
What the attacker needed
A free account; knowledge of invoice IDs
The fix
The endpoint should be fixed by adding an authorization check that verifies the invoice belongs to the authenticated user before returning it.
How it was found
- Create an account and explore the dashboard.
- Find the 'View Invoice' feature and note the request with an invoice_id parameter.
- Change the invoice_id to another number and observe that a different invoice is returned.
- Try another invoice_id and confirm access to someone else's invoice.
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.
An invoice is a bill. The website let any logged-in user see any bill by changing a number in the web address. The site checked the number but not whether the bill belonged to that user.
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.