500$ IDOR on a Public Program
The application checked that the customerId and orderId in a review submission matched each other, but did not verify that the authenticated user owned that order. An attacker could use their own session with another customer's valid customerId-orderId pair to post reviews as a verified buyer.
medium.com
Published on medium.com
( FREE LINK)
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
Impact
An attacker could bypass the 'verified buyer' requirement and submit seller reviews tied to real customers' purchases, potentially damaging a seller's reputation or artificially boosting sales.
What the attacker needed
A free account; knowledge of a valid customerId-orderId pair
The fix
The application should verify that the authenticated user actually owns the order before accepting a review.
How it was found
- Go to 'my purchases' and choose one to submit a review to the seller.
- Intercept the POST request and note the 'customerId' and 'orderId' parameters.
- Change 'customerId' and resend; the server responds that customerId and orderId should match.
- Create another account and send the original request (with the true customerId-orderId pair) using the new account's cookie; the server returns 200 OK.
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 lets you access something by changing an identifier in a request, without checking that you are allowed to. Here, the site only checked that two numbers matched each other, not that the logged-in user owned the order. So someone could pretend to be another customer and leave fake reviews.
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.