Skip to content
IDOR Write-up Beginner

How I Accidentally Became the Company’s Unofficial File Clerk (And Saw Everyone’s Secrets)

The file download endpoint used predictable sequential file IDs and lacked proper access controls, allowing any authenticated user to download other users' files by changing the ID. An attacker could access sensitive documents such as contracts, financial reports, and personal files.

iski Follow

Published on medium.com

Free link 🎈

Iski, 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 did not verify that the authenticated user owned the requested file, and file IDs were predictable sequential numbers.

Impact

An attacker could download thousands of files containing sensitive business and personal data, as the service was taken offline within 30 minutes.

What the attacker needed

A free account; knowledge of file ID pattern

How it was found

  1. Create a test account and upload a file to observe the file ID pattern.
  2. Change the file ID in the download request to a nearby number.
  3. Observe that another user's document is returned.
  4. Try different user IDs and file numbers to access more files.
  5. Automate the process with a script to download many files.

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 file ID is a unique name for a file. If the ID is easy to guess (like a number that goes up by one), and the server does not check if you are allowed to see that file, you can change the ID to see other people's files. This is called an insecure direct object reference (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.

More by iski

View all

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