Skip to content
Misconfiguration Disclosed report Beginner

Writable RubyCi Amazon s3 bucket

An Amazon S3 bucket used by RubyCI allowed any authenticated AWS user to write files. An attacker could replace legitimate web content with malicious files, potentially harming users and the website.

dataalchemist Follow

Originally disclosed on HackerOne

  • Fixed in 2 hours
  • Paid in 2 hours
  • Disclosed after 10 days

Hello, I have discovered that the bucket: http://rubyci.s3.amazonaws.com/ is able to be written to by authenticated aws users. This is due to the current permissions configurations I have added a file here: http://rubyci.s3.amazonaws.com/test.html for proof of concept. This can be potentially dangerous to your users and website, as any of the web content in this bucket may be replaced with malicious files. More info about these permissions can be found here: http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html

Attachments

Screen_Shot_2017-02-16_at_10.41.47_PM.png
Screen_Shot_2017-02-16_at_10.41.47_PM.png From the original on HackerOne
Screen_Shot_2017-02-16_at_10.42.38_PM.png
Screen_Shot_2017-02-16_at_10.42.38_PM.png

The original report as published on HackerOne, by dataalchemist. 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 control policy granted write permissions to all authenticated AWS users instead of restricting them to trusted accounts.

Impact

Any web content in the bucket could be replaced with malicious files, potentially affecting users and the website.

What the attacker needed

An AWS account

How it was found

  1. Identify the S3 bucket used by RubyCI.
  2. Notice that authenticated AWS users can write to the bucket.
  3. Upload a test file to the bucket as proof of concept.

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 that can host website files. Here, the bucket's permissions were too open, so anyone with an AWS account could upload or change files. That means an attacker could put harmful content where visitors expect safe content.

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.