I turned a URL tweak into $800: How I found an IDOR and got paid — step-by-step (for beginners!)
The order API returned any order's details when the order reference in the URL was changed, without checking that the authenticated user owned that order. An attacker with a valid token could read other customers' names, emails, addresses and order contents by guessing sequential references.
💰 Learn how I earned $800 by finding an IDOR vulnerability! Step-by-step bug bounty guide with real payload example, tips, and responsible disclosure. 🔓🚀
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
The server fetched the order directly from the client-supplied order reference without verifying that the authenticated user owned that order.
Impact
An authenticated user could read other customers' personal details and order information by changing the order reference, though the author only performed a single check and did not scrape data.
What the attacker needed
A valid account and bearer token; knowledge of a valid order reference
The fix
The server should enforce an ownership check before returning any order, and the vendor patched it according to the text.
How it was found
- Note the predictable order reference in the JSON response.
- Change the order reference in the request path to a nearby value.
- Re-send the request with the same bearer token.
- Observe that the response contains another user's order details.
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 IDOR is when a website looks up a record using an identifier you send, such as an order number, but forgets to check that the record belongs to you. Here the order number was easy to guess, so changing it in the request showed someone else's order. The fix is for the server to check ownership every time, not just hide the button in the page.
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.