Skip to content
IDOR Write-up Beginner

IDOR Lead to Data Leak

An endpoint on a gaming platform accepted a player identifier and returned that player's match history without checking whether the requester owned it. By swapping their own username for another user's, an attacker could read other players' private player IDs, match times, results, in-game handles and game names.

melguerdawi Follow

Published on melguerdawi.medium.com

Hello, hackers. My name is Mostafa Elguerdawi.

Mostafa Elguerdawi, on melguerdawi.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 endpoint looked up match history purely from the supplied player identifier without verifying that the authenticated user matched that player.

Impact

An attacker could read other players' private player IDs, match times, results, in-game handles and game names; the program rated it a low-severity P3 issue.

What the attacker needed

An account on the gaming platform; knowing another player's id or name

How it was found

  1. Browse to the profile page and review the proxy history for hidden requests.
  2. Find the request that uses the OPTIONS method and carries the player identifier and event parameters.
  3. Send that request to Repeater and change the method from OPTIONS to GET.
  4. Replace your own username with another user's and observe that their match history is returned.

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.

Many websites use a name or number in the address to pick which record to show. If the site does not also check that the record belongs to the person asking, anyone can change that name or number and see someone else's information. This is called an IDOR, short for Insecure Direct Object Reference.

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 melguerdawi

View all

1 more disclosed report, 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.