Skip to content
Access control Disclosed report Beginner

AWS S3 Bucket hotornot-images permissions allow for listing and removing files

An S3 bucket named hotornot-images allowed listing and deleting files via AWS CLI, though writing was denied. An attacker with AWS credentials could list and delete files if the bucket were used.

yaworsk Follow

Originally disclosed on HackerOne

  • Disclosed after 9 hours

Summary by the program

We do not use amazon AWS but @yaworsk wanted to disclose his report anyway. Why not, we can do.


Hi All, Though I'm not 100% sure you own the bucket - and if not, I would appreciate being able to close this myself - I believe you may own the S3 bucket hotornot-images.

If so, using the AWS CLI, I am able to call the actions ls and rm on it to list files and remove them, however, cp/mv calls (PUT calls) result in access denied.

It would appear that there are no files in the root directory but if you were to start using it, files can be deleted by authorized AWS users though these users are not on your AWS account.

While I can't actually write to the bucket to confirm, when access is denied, a (Forbidden) error is returned. However, on the hotornot-images bucket, a (NoSuchKey) error is returned meaning we at least have access to read the bucket.

Please let me know if you have any questions. Pete

Summary by the researcher

Update:

Just realized this was disclosed with limited details and since they included my original post, thought I could do the same picking up where they left off...

Badoo: Hey. What is "S3 bucket hotornot-images"? What domain you accessing and how?

Me: S3 bucket is Amazon's webservice for simple storage, it's like a file repository. I didn't access it through a website, using the Amazon command line tools, I found and accessed the bucket. When badoo acquired hotornot, did they have an aws account? By the sounds of it, you may be using Amazon services? If not, I'll close the ticket.

Badoo: So you even didn't check do we use aws or not? Just reported? Don't you respect our time, @yaworsk?

Report marked N/A

Explained what I did in two longer responses and said it would be my sole interaction with their site given the response.

Badoo: Lot of words but you still didn't even provide the domain name... [quoted my comment regarding sole interaction with them] -- Yes please, do us a favour.

Then I got an email saying I was banned from their program.

The original report as published on HackerOne, by yaworsk. 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 policy granted list and delete permissions to all AWS users, rather than restricting them to the bucket owner's account.

What the attacker needed

AWS account with CLI access; Bucket exists and is used

How it was found

  1. Use the AWS command line tools to access the S3 bucket.
  2. Run the ls command to list files in the bucket.
  3. Run the rm command to remove files from the bucket.
  4. Attempt cp or mv (PUT) commands, which return access denied.

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.

The researcher found the bucket let authorised AWS users outside the owner's account list and delete files, but not add new ones. This could let unauthorised people remove data.

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.

More by yaworsk

View all

21 more disclosed reports, best first.

More from Bumble

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.