Skip to content
IDOR Write-up Beginner

This Simple IDOR Let Me Access Private User Photos (Earned $500)

A file upload form used a guessable identifier to reference uploaded files, and changing that identifier returned other users' private photos without any authentication. An attacker could enumerate identifiers to access files belonging to other users.

jalwan Follow

Published on jalwan.medium.com

After months of bug bounty hunting with no valid reports, I was close to giving up. So I changed my approach .

Muhammed Jalwan, on jalwan.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 file retrieval endpoint trusted a client-supplied identifier and did not verify that the requester owned or was authorised to access the referenced file.

Impact

An attacker could access private user photos belonging to other users by guessing or modifying the file identifier, with no authentication required.

What the attacker needed

Access to the public contact form; ability to intercept requests

How it was found

  1. Upload a document through the basic file upload form.
  2. Intercept the request and note the fileUploadIdentifier parameter.
  3. Change a few characters in the identifier and resend the request.
  4. Observe that another user's file is returned without authentication.

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 upload a file, the website gives it a name or number so it can find it later. Here, that name was easy to guess, and the site did not check whether you were allowed to see the file. By changing the name slightly, the researcher could open other people's private photos.

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 jalwan

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.