Ruby · Report #778931
Source code disclosed via S3 Bucket
N/Astatus
highseverity
4upvotes
13 Feb 2020disclosed
How it was found
Summary
The Ruby having an Amazon S3 bucked named http://rubyci.s3.amazonaws.com/ which lists some of their log files. Those logs having some informations to check the source code server side directories.
Steps to Reproduce
- direct to
http://rubyci.s3.amazonaws.com/which having READ Permission to all Objects hosted in that bucket {F691099} - Can also able to access aws-cli through
aws s3 ls s3://rubyci - direct to one of the object named last.txt as
http://rubyci.s3.amazonaws.com/aix71_ppc/ruby-2.1/last.txt{F691108} - scroll down and a line shown which directs to source code directory link
http://svn.ruby-lang.org/repos/ruby/branches/that is a initial directory for all source codes - I can check and view each and every source codes of all ruby versions
POC
Video
{F691114}
Impact
- The attacker can able to read any aws authorized object and use those informations to do potential attacks
- The source codes having some sensitive informations so the attacker can do impact to ruby codes that may cause major attack on users.