Hijacking Reviews: IDOR is Everywhere
The review submission endpoint accepted a client-supplied userId without verifying it against the authenticated session, allowing an attacker to post reviews under any other user's identity. User IDs were sequential and predictable, making it trivial to impersonate any user.
Published on scriptjacker.medium.com
Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.
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 blindly trusted the client-supplied userId parameter instead of validating it against the authenticated session.
Impact
An attacker could post reviews as any other user, potentially damaging their reputation or spreading misinformation.
What the attacker needed
A free account; ability to intercept HTTP requests
The fix
The server should validate the userId against the authenticated session before accepting the review.
How it was found
- Book a service and navigate to the review page.
- Enter a review and capture the submission request in Burp Suite.
- Change the userId parameter to another user's ID.
- Forward the request and observe a 200 OK response.
- Check the reviews section to see the review posted under the other user's name.
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.
When you log in, the server should check not just that you are logged in, but also that you are allowed to do the specific action. Here, the server trusted a number sent by the browser that said which user the review belonged to, so anyone could change that number to someone else's and post a review as them.
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.