HTTPS is not enforced for objects stored by HackerOne on Amazon S3
HackerOne's Amazon S3 bucket for uploaded screenshots allowed access over plain HTTP as well as HTTPS, so the same object could be fetched without encryption.
- Triaged in 8 days
- Fixed in 26 days
- Disclosed after 56 days
SSL is not enforced for objects stored by HackerOne on Amazon S3. Currently I see all the screenshots uploaded are stored in Amazon S3 bucket "hackerone-attachments" and by default HTTPS connection is made. However even HTTP connections are open to these URLs indicating that SSL is not enforced by HackerOne on these buckets.
Steps to reproduce:
- Submit a vulnerability on any program and upload a screenshot.
- The URL of the screenshot looks like this:
https://hackerone-attachments.s3.amazonaws.com/production/<some_unique_path>/<filename> 3. Access the same without HTTPS.
http://hackerone-attachments.s3.amazonaws.com/production/<some_unique_path>/<filename>
Proposed Solution: Always Force SSL on Amazon buckets and deny any HTTP request. This can be done by following these instructions here: http://stackoverflow.com/questions/21087474/force-ssl-on-amazon-s3
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 policy did not deny requests made over plain HTTP, so objects were reachable without TLS.
Impact
Screenshots could be fetched over plain HTTP without encryption.
The fix
The bucket should be configured to force SSL and deny any HTTP request.
How it was found
- Upload a screenshot to a vulnerability report.
- Note the HTTPS URL of the uploaded screenshot.
- Request the same URL over plain HTTP and observe that it still returns the object.
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.
When you upload a screenshot, it is stored on Amazon S3. The link normally uses HTTPS, but the same link also worked with plain HTTP, which is unencrypted.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.