Skip to content
IDOR Write-up Beginner

IDOR — How I Leaked Data of 50k+ Users

The application used a base64-encoded cookie containing a user ID to identify accounts, and the server did not verify that the ID belonged to the authenticated user. An attacker could change the ID to access personal data of other users, potentially all 50,000 registered accounts.

YourFinalSin Follow

Published on medium.com

this is my first post ever on Medium, so the writing quality is probably going to improve in the next posts.

3NVZ, 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 a client-supplied user ID in a base64-encoded cookie for access control, without verifying it matched the authenticated session.

Impact

An attacker could access personal data of other users, and brute forcing the user ID showed access to about 50,000 users' PII.

What the attacker needed

A free account; ability to intercept and modify requests

How it was found

  1. Register an account on the application.
  2. Inspect requests in Burp and find the endpoint that displays profile details.
  3. Decode the base64-encoded cookie to see the user ID.
  4. Change the user ID to another value, re-encode the cookie, and send the request.
  5. Observe that the server returns personal data of the other account.

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 website gives your browser a cookie to remember who you are. Here, that cookie contained a user number that the server trusted without checking it belonged to you. By changing the number, the attacker could see other people's personal information.

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 YourFinalSin

View all

3 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.