Skip to content
Misconfiguration Disclosed report Beginner

Amazon S3 bucket misconfiguration (share)

An Amazon S3 bucket had permissions that allowed anyone to list, upload, and delete files. An attacker could use the bucket to host illegal content, impersonate the company, or delete and overwrite existing files.

glc Follow

Originally disclosed on HackerOne

  • Fixed in under an hour
  • Disclosed after under an hour

Hi,

Description

I have discovered one of your Amazon S3 bucket and tested it via the AWS command line tool on Linux. It looks like permissions are not well configured and allow dangerous actions to everyone.

The vulnerable bucket is: zomato-share

PoC:

aws s3 ls s3://zomato-share aws s3 cp test s3://zomato-share aws s3 rm s3://zomato-share/test

See the attached screenshots.

20170518-bucket-share2.png
20170518-bucket-share2.png From the original on HackerOne

Risk:

  • Company impersonation, serve datas using your name
  • Illegal file hosting (like movies, mp3 or whatever...)
  • Files can be deleted
  • Files can be overwritten by shitty content (like porn)
  • Files can be infected by malicious content in an attempt to infect users or staff

Since the bucket doesn't host any critical files, the impact is very low but still something you have to fix for the reasons previously mentionned.

Remediation:

Check all buckets owned by your company and the ACL to forbid dangerous actions to unauthorized users.

Additional note:

Since there is no way to check the owner of a bucket, it's possible that those buckets don't belong to you. In that case, I strongly apologize for the disturbance.

Best regards,

Attachments

20170518-bucket-share1.png
20170518-bucket-share1.png From the original on HackerOne

The original report as published on HackerOne, by glc. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 list (ACL) or bucket policy granted public write and delete permissions.

Impact

An attacker could host illegal files, impersonate the company, and delete or overwrite files, though the bucket did not contain critical data.

What the attacker needed

AWS CLI installed

The fix

The bucket's ACL and policies should be reviewed to restrict dangerous actions to authorised users only.

How it was found

  1. List the contents of the bucket using the AWS CLI.
  2. Upload a test file to the bucket.
  3. Delete the test file from the bucket.

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 like a public folder in the cloud. Here, the folder was set up so that anyone on the internet could see what's inside, add files, and delete files. That means someone could put harmful files there or remove important ones.

What is Misconfiguration?

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

More by glc

View all

5 more disclosed reports, best first.

More from Eternal

View all

The newest disclosed reports for this program.

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.