No ACL on S3 Bucket in [https://www.██████████/]
An S3 bucket lacked ACLs, allowing anyone to download and move files without authentication. An attacker could delete, move, or access any file in the bucket.
- Triaged in 9 hours
- Fixed in 10 days
- Disclosed after 2 months
Summary: Hi team!,
- i was able to move and download all file in s3 bucket that's under ████ control cuz it didn't has ACL
Step-by-step Reproduction Instructions
- first we will try to access all files via browser by go to this
s3.amazonaws.com/files.████████
Now We Will try to download all files on the s3 bucket via aws cli:
- type this in ur terminal
aws s3 sync s3://files.█████████/ . --no-sign-request --region ██████ - u will see that all files and folders starts to download!
Now We will try to move a file into s3 bucket
- i created a file and called the file
yghonem14.html - now we will type this in terminal
aws s3 mv yghonem14.html s3://files.██████/ --no-sign-request --region ███████
PoC
- For more Proof i uploaded a file and u can access it by this url
https://s3.amazonaws.com/files.███/yghonem14.html████████
Impact
- Attacker will be able to delete or move or access any file on the s3 bucket, Thanks!.
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 was configured with public read and write permissions, and no ACL or bucket policy restricted access.
Impact
An attacker could delete, move, or access any file in the S3 bucket.
What the attacker needed
None
How it was found
- Access the bucket files via a browser using the S3 URL.
- Use the AWS CLI to sync all files from the bucket to the local machine without signing the request.
- Create a local file to test uploading.
- Use the AWS CLI to move the file into the bucket without signing the request.
- Access the uploaded file via its public S3 URL to confirm write access.
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. It had no access rules, so anyone on the internet could open it, take files, or put new files in. The reporter showed this using simple commands that do not need a password.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.