Skip to content
IDOR Write-up Beginner

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.

scriptjacker Follow

Published on scriptjacker.medium.com

Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.

Parth Narula, on scriptjacker.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

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

  1. Book a service and navigate to the review page.
  2. Enter a review and capture the submission request in Burp Suite.
  3. Change the userId parameter to another user's ID.
  4. Forward the request and observe a 200 OK response.
  5. 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.

More by scriptjacker

View all

12 more disclosed reports, 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.