Skip to content
Access control Disclosed report Beginner

S3 bucket Upload on studio.redditinc.com (s3-r-w.ap-east-1.amazonaws.com)

An S3 bucket behind a CloudFront distribution for a Reddit subdomain allowed uploads and listing. An attacker could upload files, list objects, and possibly delete and re-register the bucket.

dinesh07 Follow

Originally disclosed on HackerOne

  • Disclosed after 3 months

Greetings team,

Found a s3 bucket that belongs to studio.redditinc.com and properly not configured.

bucket name:- s3-r-w.ap-east-1.amazonaws.com Bucket Source:-studio.redditinc.com

Steps To reproduce:-

In terminal , " dig studio.redditinc.com " will get the CNAME as d326d3e45wj426.cloudfront.net

Then, "host -t ns d326d3e45wj426.s3.ap-east-1.amazonaws.com" will get d326d3e45wj426.s3.ap-east-1.amazonaws.com is an alias for s3-r-w.ap-east-1.amazonaws.com. s3-r-w.ap-east-1.amazonaws.com name server ns-1885.awsdns-43.co.uk. s3-r-w.ap-east-1.amazonaws.com name server ns-192.awsdns-24.com. s3-r-w.ap-east-1.amazonaws.com name server ns-908.awsdns-49.net. s3-r-w.ap-east-1.amazonaws.com name server ns-1338.awsdns-39.org.

So, I came to know that d326d3e45wj426.s3.ap-east-1.amazonaws.com is an alias for "s3-r-w.ap-east-1.amazonaws.com"

Got the bucket name. Now I tried to upload by using command in authenticated AWS CLI Machine " aws s3 cp <path/filename> s3://s3-r-w

Uploaded was successful! Two files( dinesh.jpg and dinesh.html )

" aws s3 ls s3://<The_bucket_name> " By this command I can list out all the files in the bucket

I don't know is it possible or not. Attacker can delete the bucket using this command:- " aws s3 rb s3://<The_bucket_name> " and claim the bucket again to takeover the bucket.

Thanks team

Impact

I can see every files present in the bucket . I can upload any files . I can delete any file .

Attachments

Screenshot_(552).png
Screenshot_(552).png From the original on HackerOne

The original report as published on HackerOne, by dinesh07. 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 permissions were misconfigured, granting public write and list access instead of restricting them to the owner.

Impact

An attacker could upload arbitrary files, list every object in the bucket, and potentially delete and re-register the bucket to take it over, though the reporter is unsure whether deletion is actually possible.

What the attacker needed

AWS CLI access; knowledge of the bucket name

How it was found

  1. Look up the subdomain with a DNS query to find its CloudFront alias.
  2. Query the name servers for the CloudFront hostname to reveal the underlying S3 bucket alias.
  3. Using an authenticated AWS CLI session, upload a file to the discovered bucket.
  4. List the bucket contents to confirm all files are visible.

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.

A company stores files in an online storage service called S3. Here the storage was left open, so files could be added and listed.

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 from Reddit

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.