AWS S3 Bucket Leaks
AWS S3 Bucket Leaks
Basic Test
AWS CLI
Google Dork
Tools A thread
🔎 Encounter an S3 bucket during bug bounty hunting or pentesting? Or aiming to defend your own buckets?
https://<bucket-name>.s3-us-west-1.amazonaws.com/uploads/image.png
https://<bucket-name>.s3-us-west-1.amazonaws.com/uploads/
💻 AWS CLI
📜 List bucket contents
aws s3 ls s3://bucket-name
⬇️Download an file
aws s3 cp s3://bucket-name/file.png ./
💥 The bucket is vulnerable to public listing & read access.
site:http://s3.amazonaws.com "example"
S3Scanner:
https://github.com/sa7mon/S3Scanner
https://portswigger.net/bappstore/f078b9254eab40dc8c562177de3d3b2d
Good write up that includes AWS CLI set up & finding buckets:
https://medium.com/@janijay007/s3-bucket-misconfiguration-from-basics-to-pawn-6893776d1007
Example H1 report:
https://hackerone.com/reports/819278