Skip to content
IDOR Write-up Beginner

IDOR : Very simple IDOR resulted in $500

The reaction endpoint trusted a user-supplied userId, so changing it to another valid user's ID let an attacker add reactions on that user's behalf. Repeating the request with an automated tool inflated a post's reaction count to about 26,000.

medium.com

Published on medium.com

Simple ID change resulted in unauthorized action.(AS THIS WAS NOT ANY COMPLEX FIND, I WILL KEEP THE ARTICLE AS SHORT AS POSSIBLE)

Defidev, on 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

Likely the server trusted the userId field in the request body rather than deriving the acting user from the authenticated session.

Impact

An attacker could add reactions on behalf of other users and inflate a post's reaction count, which mattered more on a business site where people sell things.

What the attacker needed

A logged-in account; knowledge of another valid user ID

How it was found

  1. React to any post or article.
  2. Inspect the request, which contains a userId value.
  3. Change the userId to another valid user's ID and observe the reaction count increase.
  4. Automate the request with an intruder tool to confirm the count rises further.

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 react to a post, the app sends a request that includes who you are. Here the server believed whatever user ID the request claimed, instead of checking the logged-in session. So anyone could pretend to be another user and add reactions for 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.

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.