Skip to content
Misconfiguration Disclosed report Beginner

2 vulns

The report claims an AWS S3 bucket named sdk.amazonaws.com is readable by authenticated AWS users, and that the site app.legalrobot.com does not redirect HTTP to HTTPS. An attacker on the same network could intercept credentials or inject scripts if the victim uses a browser without HSTS preload and no prior secure visit.

spetr0x Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Disclosed after 2 hours

1. the first report is concerning AWS S3 bucket Readable for authenticated aws users , the same as this report #163476 the bucket is sdk.amazonaws.com , i believe it's yours because i found it in a Head request to https://app.legalrobot.com/ : F115189 listing the bucket : 115190 i don't have any proof if it's your bucket , but hoping it is...

2. i know it's out of scope but the second report is about a misconfigured HTTPS connection on https://app.legalrobot.com/

Reproduction

cURL 1.Send a HEAD request to https://app.legalrobot.com/ curl -I https://app.legalrobot.com/

2.You will see that the server does not instruct the client to upgrade the connection to HTTPS. The server responds with an HTTP/2 200 status code instead of 301 status code with the response header Location set to https://app.legalrobot.com/ : F115191

EXPLOITABILITY & IMPACT

Granted, it is kind of hard to exploit this vulnerability, because, first of all, it requires an attacker to be in a privileged network (he/she needs to be able to see what's going over the wire). Then the attacker would need to trick the victim into opening https://app.legalrobot.com/. in a browser that doesn't have https://app.legalrobot.com/ HSTS preloaded and which doesn't have any HSTS cookies for https://app.legalrobot.com/ from a previous secure visit to https://app.legalrobot.com/. When all these conditions are met, an attacker could for example steal the victim's https://app.legalrobot.com/ credentials, or inject some malicious scripts into any page. This is possible because the connection is never upgraded, and the site allows forms to be posted to non-secure endpoints

MITIGATION

Non-secure connections need to be upgraded to HTTPS as soon as possible using a permanent redirect. But i know the website is not up yet because of a misconfiguration in the index file F115195 f115196 , but if it's connection still the same , in the future the site will allow any user to send his credentials in the clear over a non-secure connection, I was also thinking that you would probably want to prevent forms from being posted to non-secure origins. One possibility is to enforce the client to only send AJAX requests to secure origins.

Attachments

Screenshot_from_2016-08-26_22-19-16.png
Screenshot_from_2016-08-26_22-19-16.png From the original on HackerOne
Screenshot_from_2016-08-26_22-20-55.png
Screenshot_from_2016-08-26_22-20-55.png
Screenshot_from_2016-08-26_22-26-24.png
Screenshot_from_2016-08-26_22-26-24.png
Screenshot_from_2016-08-26_22-59-54.png
Screenshot_from_2016-08-26_22-59-54.png
Screenshot_from_2016-08-26_23-20-43.png
Screenshot_from_2016-08-26_23-20-43.png

The original report as published on HackerOne, by spetr0x. 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 had overly permissive read access for authenticated AWS users, and the web server lacked an HTTP-to-HTTPS redirect.

Impact

An attacker in a privileged network position could steal credentials or inject malicious scripts, but only if the victim uses a browser without HSTS preload and has no prior HSTS cookie from a secure visit.

What the attacker needed

Attacker on same network; victim uses browser without HSTS preload; no prior HSTS cookie from secure visit

The fix

The site should redirect all HTTP requests to HTTPS with a permanent redirect and prevent forms from posting to non-secure origins.

How it was found

  1. Send a HEAD request to the site using curl.
  2. Observe that the server responds with HTTP/2 200 instead of a 301 redirect to HTTPS.

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 two issues. First, a cloud storage bucket (like a folder on the internet) might be readable by anyone with an Amazon account, though they were not sure it belonged to the company. Second, the website did not force visitors to use a secure (HTTPS) connection, so someone on the same Wi-Fi could potentially see or change data if the visitor's browser had never visited the secure version before.

What is Misconfiguration?

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

More by spetr0x

View all

1 more disclosed report, best first.

More from Legal Robot

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.