Skip to content
Info disclosure Disclosed report Beginner

AWS hosting bucket for Legal Robots set as public browse and list contents: s3://legalrobot

The Amazon S3 bucket legalrobot was configured to allow public users to browse and list all files. An attacker could enumerate file names and paths, and search engines could index the content.

todayisnew Follow

Originally disclosed on HackerOne

  • Disclosed after 4.5 years

Good day,

I hope it treats you kindly :)

Legal Robot looks to use AWS hosting for your website.

Description of issue:

The Amazon Bucket (s3://legalrobot) has been configured to allow Public users access to browse all files on the server.

This is a risk as described as it allows known file paths, file name, and internal content to be indexed by Google and other search engines.

Description of risks:

https://www.owasp.org/index.php/File_System#Insecure_Indexing http://cwe.mitre.org/data/definitions/548.html

Proof of RISK:

Directory Listing of your server:

                       PRE email/
                       PRE video/

2015-12-29 05:39:20 536901 Dan-sq-gray.jpg 2015-12-29 05:39:21 546125 Dan-sq.jpg 2015-10-07 05:35:54 363060 Gizmo-Foldable.pdf 2016-02-26 20:37:45 22945 Megan.jpg 2015-12-08 09:58:52 420926 logo_huge.png 2015-12-08 09:59:04 14714 logo_text_huge.png

A Copy of all files on server:

https://www.dropbox.com/s/e9gpmonzvnwihff/legalrobot.zip?dl=0

What Search Engines Can and currently are Indexing:

A List of All files on the server: http://legalrobot.s3.amazonaws.com/

A Sample File: http://legalrobot.s3.amazonaws.com/logo_text_huge.png

Steps to reproduce:

From the Amazon Command Line Interface:

aws s3 ls s3://legalrobot

(Steps to install the Amazon Command Line Interface: http://docs.aws.amazon.com/cli/latest/userguide/installing.html)

Steps to Fix:

  1. Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/.
  2. In the Buckets list, click the bucket whose properties you want to view.
  3. Click Permissions, and change to disallow Everyone / Authenticated Users from Listing Content.

(http://docs.aws.amazon.com/AmazonS3/latest/UG/EditingBucketPermissions.html)

Thanks for treating the security of your users as a priority, and wish you well on your side of the screen :)

-Eric

The original report as published on HackerOne, by todayisnew. 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

Impact

An attacker could enumerate all file names and paths, and search engines could index the content, potentially exposing internal information.

What the attacker needed

None

The fix

The bucket permissions should be changed to disallow public listing of contents.

How it was found

  1. Use the AWS Command Line Interface to list the bucket contents.
  2. Observe the directory listing and file names.

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.

An S3 bucket is a cloud storage folder. If it is set to allow public listing, anyone can see every file name inside, like leaving a filing cabinet open. This lets people discover private files and search engines may index them.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by todayisnew

View all

12 more disclosed reports, 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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.