Skip to content
IDOR Write-up Beginner

How a Simple IDOR Earned $5,000 on Reddit

The GraphQL server did not check whether a custom profile link ID belonged to the logged-in user, allowing an attacker to edit any user's profile links. A second request leaked other users' link IDs, enabling the attack without guessing.

meetcyber.net

Published on meetcyber.net

Many beginners think that big bounties come from very complex hacking. Often, that is not true.

Monika, on meetcyber.net

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 change any Reddit user's profile links without the victim's interaction, potentially directing visitors to harmful or misleading pages and damaging trust.

What the attacker needed

A Reddit account; knowledge of the victim's username; no victim interaction

The fix

The server should always verify that the logged-in user owns the object being changed, and should not expose other users' internal IDs unnecessarily.

How it was found

  1. Take a username.
  2. Get that user's link ID using the second request.
  3. Use that ID in the edit request.
  4. The victim's profile link changes.

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 is when a website uses an identifier (like a number or code) to find your data but forgets to check that the data actually belongs to you. Here, the server let anyone change any user's profile links if they knew the link's ID. The attacker could get those IDs from another request, so they could change links on any profile.

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.