Skip to content
IDOR Write-up Beginner

My First Bug Found Me (I Wasn’t Even Looking)

A profile page used a numeric user identifier in the URL, and changing it showed other users' profiles, including the admin account with full name, email and hashed password. A second anecdote describes a newsletter confirmation link whose email parameter could be changed to confirm an admin address without access to that mailbox.

bughunting Follow

Published on medium.com

Then I noticed something weird. My profile page had a parameter in the URL. ?user=123.

Decline, 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 user identifier supplied in the URL and did not verify that the requester was allowed to view that account.

Impact

An attacker could view other users' profiles, including the CEO's admin account with full name, email and hashed password; the text does not claim the hash was cracked or the account was taken over.

What the attacker needed

A free account; guess or enumerate a user identifier

How it was found

  1. Create an account on the site.
  2. Open your profile page and note the user parameter in the URL.
  3. Change the number to another value and load the page.
  4. Observe another user's profile, including the admin 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.

A web page often puts an identifier in the address, like a number for your account. If the server does not check that the number belongs to you, anyone can change it and see someone else's data. This is called an insecure direct object reference, or IDOR.

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.