Skip to content
Misconfiguration Write-up Beginner

Open S3 Buckets Through Reconnaissance

An S3 bucket that denied listing with signed requests could still be listed anonymously using the AWS CLI's no-sign-request option, exposing its files. The author does not state what the files contained or whether they were sensitive.

offsec01 Follow

Published on offsec01.medium.com

In my latest post, I shared my favorite 20 Google Dorks, check it out!!

Facundo Fernandez, on offsec01.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 bucket policy granted public read or list permission to anonymous users, even though signed requests were denied.

Impact

Anyone on the internet could list the bucket's files; the text does not say whether the files themselves were readable or sensitive.

What the attacker needed

None

The fix

The bucket policy should be changed so anonymous users cannot list or read its contents.

How it was found

  1. Run the AWS CLI to list the bucket recursively with normal credentials.
  2. Observe an AccessDenied error for the ListObjectsV2 operation.
  3. Repeat the listing command with the no-sign-request option.
  4. See the bucket contents listed successfully.

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.

An S3 bucket is cloud storage on Amazon Web Services. Normally you need credentials to list what is inside, but this bucket also allowed anyone to list its files without logging in. The author found this by trying a command-line option that skips signing the request.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by offsec01

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.