Skip to content
Misconfiguration Write-up Beginner

When Amazon Gave Me Free Storage (But I Gave It Back)

An Amazon S3 bucket was publicly listable and readable without authentication, exposing backup files, database dumps, internal documents and private keys. An attacker could download these files and use the credentials and keys to access further systems.

medium.com

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 S3 bucket was configured with public read and list permissions, allowing unauthenticated access to its contents.

Impact

An attacker could download sensitive files including backups, database dumps, internal documents and private keys, potentially leading to further compromise.

What the attacker needed

None

The fix

The bucket's permissions were fixed by the security team after responsible disclosure.

How it was found

  1. Find subdomains that may be linked to an S3 bucket using tools like Amass, Subfinder, or crt.sh.
  2. Check the bucket's accessibility with a curl request to its URL.
  3. If the response is an XML file listing, confirm the bucket is misconfigured.
  4. List the bucket contents using the AWS CLI without signing the request.
  5. Download files from the bucket 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.

An S3 bucket is like a public folder on the internet for storing files. If it is set to allow anyone to list and read its contents, then anyone can see and download everything inside. Here, the bucket contained sensitive files like database backups and private keys, which could let an attacker break into other systems.

What is Misconfiguration?

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

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.