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.
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


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
- Identify the S3 bucket used by RubyCI.
- Notice that authenticated AWS users can write to the bucket.
- 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.