Skip to content
Misconfiguration Disclosed report Beginner

AWS S3 bucket writeable for authenticated aws users

An S3 bucket had an ACL misconfiguration that allowed any authenticated AWS user to write files to it, though read access was not permitted. An attacker could theoretically upload a malicious file that a staff member might later access, believing it came from a trusted source.

yaworsk Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 3 hours
  • Paid in 14 hours
  • Disclosed after 34 hours

Summary by the program

An ACL misconfiguration issue existed on one of our S3 buckets. This misconfiguration allowed any authenticated AWS user to write to this bucket (no read access was permitted). An attacker could theoretically post a file into that bucket that may at some point be accessed by a HackerOne staff member, thinking it's been uploaded by another staff member or some automated system. We improved the ACLs for that S3 bucket to prevent such a concern.

This issue also led us to audit some of our additional S3 buckets, resulting in changes for some of those buckets as well.

Summary by the researcher

For those interested, I've recorded a video tutorial on how I accomplished this: https://www.youtube.com/watch?v=_x5VKuFjvrk

The report

Hi All, I know that hackerone-attachments is used for file uploads on reports and so I did a quick scan for similar buckets and found ████████████████. While I can't confirm if you own it or not, it appears that it is publicly writable using the aws cli.

When I tried to write to hackerone-attachments, I get: "move failed: ./test.txt to s3://hackerone-attachements/test.txt A client error (AccessDenied) occurred when calling the PutObject operation: Access Denied.

However, when I write to ████████████████, I get: move: ./test.txt to s3://████████████████/test.txt

Hopefully the bucket is yours and this isn't a waste of time. If you do own it, a good thing is the bucket is not publicly readable and the file appears private by default after being written. However, assuming you own it, the security issue would be someone writing something malicious and someone on your team unknowingly opening it.

Pete

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 an overly permissive bucket ACL that granted write access to all authenticated AWS users.

Impact

An attacker could theoretically upload a malicious file that a staff member might later open, though the bucket was not publicly readable and files appeared private by default.

What the attacker needed

An AWS account; knowledge of the bucket name

The fix

The ACLs for the bucket were improved to prevent unauthorised writes, and additional buckets were audited and changed.

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.

Cloud storage buckets like Amazon S3 can have permissions set so that anyone with an Amazon Web Services account can upload files, even if they cannot list or read existing files. Here, a bucket was left with such a setting, so an outsider could place a file there. If an employee later downloaded that file thinking it was internal, it could be harmful.

What is Misconfiguration?

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

More by yaworsk

View all

21 more disclosed reports, best first.

More from HackerOne

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.