Skip to content
IDOR Write-up Beginner

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.

sukhveersingh97997 Follow

Published on sukhveersingh97997.medium.com

👉 Complete XSS Guide (Beginner → Advanced): https://www.bugitrix.com/blog/fundamentals-basics-4/cross-site-scripting-xss-guide-45

Sukhveer Singh, on sukhveersingh97997.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 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

  1. Create an account and explore the dashboard.
  2. Find the 'View Invoice' feature and note the request with an invoice_id parameter.
  3. Change the invoice_id to another number and observe that a different invoice is returned.
  4. 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.

More by sukhveersingh97997

View all

1 more disclosed report, 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.