S3 Misconfig Leaks Millions in 15 Min
An Amazon S3 bucket lacked authentication and a bucket policy, allowing public listing and download of files containing customer data. An attacker could read names, emails, and purchase histories without any credentials.
medium.com
Published on medium.com
Last month, while hunting on a bug bounty program, I stumbled across a publicly accessible Amazon S3 bucket leaking sensitive customer data — think names, emails, and purchase histories. In just 15 minutes, I confirmed the misconfig, reported it, and pocketed a $10,000 bounty.
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 was created without an access control list or bucket policy that enforces authentication, leaving it publicly readable.
Impact
The exposed data could lead to GDPR fines or reputational damage, and the text notes that many programs accept proof of access without requiring full exploitation.
What the attacker needed
Knowledge of the bucket name; AWS CLI installed; bucket is publicly listable
The fix
The bucket should be fixed by adding a bucket policy that requires authentication and by removing public access permissions.
How it was found
- Use the AWS command-line tool to list the bucket without signing in.
- Confirm that a directory listing is returned, indicating public access.
- Copy a sample file from the bucket to verify that sensitive data is exposed.
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 in the cloud where companies store files. Here, the folder was left open so anyone on the internet could list and download its contents without logging in. The mistake was not setting up rules that require a password to access the folder.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.