Skip to content
Misconfiguration Disclosed report Beginner

Open S3 Bucket WriteAble To Any Aws User

The S3 bucket used for Ruby CI file uploads was publicly listable and writable by any AWS user. An attacker could list, upload, move, and delete files in the bucket.

injector404 Follow

Originally disclosed on HackerOne

  • Fixed in 8 hours
  • Paid in 8 hours
  • Disclosed after 31 days

Hi All, I know that http://rubyci.s3.amazonaws.com is used for file uploads on reports and so when i open your s3 bucket i able see all of your public/private files i already see you fix this vulnerability but it not completely fixed

root@injector:~# aws s3 ls s3://rubyci
                           PRE aix71_ppc/
                           PRE amazon/
                           PRE arch/
                           PRE archive/
                           PRE armv8b/
                           PRE c64b/
                           PRE centos5-32/
                           PRE centos5-64/
                           PRE centos7/
                           PRE debian/
                           PRE debian7/
                           PRE debian8/
                           PRE f19p8/
                           PRE fedora20/
                           PRE fedora21/
                           PRE fedora22/
                           PRE fedora23/
                           PRE fedora24/
                           PRE fedora25/
                           PRE freebsd10-zfs/
                           PRE freebsd11zfs/
                           PRE freebsd82-32/
                           PRE freebsd82-64/
                           PRE funtoo/
                           PRE gentoo/
                           PRE icc-x64/
                           PRE opensuse13/
                           PRE opensuseleap/
                           PRE osx1010/
                           PRE osx1011/
                           PRE rhel_zlinux/
                           PRE scw-9d6766/
                           PRE tk2-243-31075/
                           PRE ubuntu/
                           PRE ubuntu1004-32/
                           PRE ubuntu1004-64/
                           PRE ubuntu1404/
                           PRE ubuntu1410/
                           PRE ubuntu1510/
                           PRE ubuntu1604/
                           PRE unstable10s/
                           PRE unstable10x/
                           PRE unstable11s/
                           PRE unstable11x/
2017-02-17 13:03:14        112 test.html
2017-02-27 09:52:15         20 test.txt

any one who have aws s3 cli can write in your bucket because your bucket writable through aws cli when i try to move and delete any file on your bucket i got this ###MOVED root@injector:# aws s3 mv test.txt s3://rubyci move: ./test.txt to s3://rubyci/test.txt ###DELETED root@injector:# aws s3 rm s3://rubyci/test.txt delete: s3://rubyci/test.txt

any one using aws cli can move and delete any file from your bucket also check the attached picture and feel free to contact if you need any additional info

Best Regard Saad Ahmed

Attachments

DELETE.png
DELETE.png From the original on HackerOne
MOVE.png
MOVE.png
open_Bucket.png
open_Bucket.png
LIST_DIR.png
LIST_DIR.png

The original report as published on HackerOne, by injector404. 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 policy or access control list granted public list and write permissions to all AWS users.

Impact

Any AWS user could list, upload, move and delete files in the bucket.

What the attacker needed

An AWS account; AWS CLI installed

The fix

The bucket permissions should be restricted so that only authorised users can list and write objects.

How it was found

  1. Use the AWS CLI to list the contents of the bucket.
  2. Upload a file to the bucket using the move command.
  3. Delete a file from the bucket using the remove command.

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 cloud storage. If it is left open, anyone with an Amazon Web Services account can use the command-line tool to see and change files. Here the bucket allowed listing and writing, so files could be added, moved, or deleted.

What is Misconfiguration?

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

More from Ruby

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.