Misconfigured AWS S3 bucket leaks senstive data such of admin, Prdouction,beta, localhost and many more directories....
An S3 bucket the reporter believes belongs to the DoD was misconfigured to allow public listing and access. An unauthenticated user could view and download sensitive files from directories such as admin, prod and localhost.
Originally disclosed on HackerOne
- Triaged in 37 hours
- Fixed in 3 months
- Disclosed after 3 months
Description: It has been observed that the amazon s3 bucket which i believe belongs to DoD as it contains data related to Dod prod,admin,localhost documents and all is misconfigured as a result any unauthenticated users can access it without any restrictions
Step-by-step Reproduction Instructions
1.Access following URL https://██████.s3.amazonaws.com/ so the bucket name is "█████████" 2.And we can see that we are successfully able to see all the contents present on it.Which confirms s3 bucket is misconfigured. 3.And to access contents of different directories we can use following cmd in terminal
aws s3 ls s3://███/ aws s3 ls s3://████/██████/ aws s3 ls s3://███████/███████████████/ aws s3 ls s3://██████████/███████/ aws s3 ls s3://██████████/████/
and in a similar way ,we can access content of root or any directory which contains sensitive manuals , document and media files
Suggested Mitigation/Remediation Actions
configure s3 bucket properly to disable listing of such a sensitive files
Impact
Any unauthenticated user can access and download sensitive files present on DoD s3 storage.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the S3 bucket's access control settings allowed public listing and read access.
Impact
Any unauthenticated user could access and download sensitive files from the DoD S3 storage.
What the attacker needed
None
The fix
The S3 bucket should be configured to disable public listing and restrict access to authorised users only.
How it was found
- Access the S3 bucket URL in a browser.
- Observe that the bucket contents are listed without authentication.
- Use the AWS CLI to list contents of specific directories.
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 report has not been written yet. The Original tab links to the source.
An S3 bucket is a cloud storage folder. If it is set to allow public listing, anyone on the internet can see and download its files. Here, the bucket was left open, so sensitive documents could be accessed without logging in.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.