Simple Endpoint, Critical Impact: How I Sabotaged Refunds
The return request endpoint used a sequential integer order ID, allowing an attacker to access other users' return pages and cancel their refunds. This could prevent victims from receiving their money back.
When hunting in programs that have been active for years, many researchers fear “duplicates.” However, bugs often hide in specific functional workflows that others might overlook. Today, I’ll share how I found a simple but impactful IDOR vulnerability on a well-established e-ommerce site.
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 did not verify that the authenticated user owned the return request before allowing actions on it.
Impact
An attacker could cancel other users' refund requests, potentially causing financial loss to those users.
What the attacker needed
A user account; make a purchase and start a return
How it was found
- Make a legitimate purchase and start a return while the order is in preparation.
- Intercept the return request containing the order ID.
- Change the order ID to a nearby number.
- Access another user's return page and cancel their refund.
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 (Insecure Direct Object Reference) happens when a website uses a simple identifier, like a number, to refer to a user's data and doesn't check if the person asking is allowed to see it. Here, changing the number in the web address let the researcher open other people's return pages and press a button to cancel their refunds.
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.