Skip to content
IDOR Write-up Beginner

$9,000 for a Bucket That Trusted the Wrong Thing: Cloud Storage IDOR Exposing Every User’s Files

The cloud storage bucket behind a document-sharing platform allowed public read access, so files could be fetched without the application's signed URLs. Object keys were sequential rather than random, letting an attacker enumerate and access every user's uploaded documents without authentication.

T4nv1 Follow

Published on medium.com

Cloud object storage has made a certain category of bug both more common and, somehow, more invisible than it was a decade ago. When every file lived on a server you controlled end to end, “who can access this path” was at least a question your own code answered.

T4nv1, 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

The storage bucket was publicly readable at the bucket-policy level, and object keys were derived from a sequential identifier rather than a random value.

Impact

Every document ever uploaded could be accessed without authentication by anyone who could guess or enumerate keys, with no account or interaction with the application required.

What the attacker needed

No account needed; knowledge of one object key or pattern

The fix

The bucket's public access was restricted within hours, and key randomisation for new uploads followed within a week, with a migration plan for existing objects.

How it was found

  1. Obtain a legitimate signed URL by using the application normally.
  2. Strip the signature parameters and request the bare object URL directly.
  3. Observe that the file is returned without any authentication.
  4. Upload several files and compare their object keys to see the pattern.
  5. Request a small number of adjacent keys and check response headers only to confirm the pattern generalises.

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.

The app gave users temporary, signed links to their files, which is a normal way to protect them. But the storage service holding the files was also set to let anyone read them directly, and the file names followed a simple counting pattern. So anyone could guess file names and download other people's documents without logging in.

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 T4nv1

View all

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