Loading HuntDB...

s3 bucket takeover presented in https://github.com/reddit/rpan-studio/blob/e1782332c75ecb2f774343258ff509788feab7ce/CI/full-build-macos.sh

High
R
Reddit
Submitted None
Reported by gaurav-bhatia

Vulnerability Details

Technical details and impact analysis

Business Logic Errors
Hey team, ## Summary: I have found that in the code of full-build-macos.sh in rpanstudio on github(https://github.com/reddit/rpan-studio/blob/e1782332c75ecb2f774343258ff509788feab7ce/CI/install-dependencies-osx.sh) contains a s3 bucket which was unclaimed i.e (https://obs-nightly.s3-us-west-2.amazonaws.com) ## Steps To Reproduce: 1. Create a s3 bucket with name obs-nightly and us west 2 region 2. Upload files with the name same as given in the code (e.g. cef_binary_${1}_macosx64.tar.bz2) 3. Make the settings and change it as a static website 4. You have successfully taken the s3 bucket and now when any user runs the code the url with s3 get executed and an attacker can spread dangerous malware. ## POC: 1. Link for the s3 bucket takenover :- https://obs-nightly.s3-us-west-2.amazonaws.com/index.html {F1395337} 2. Github link that shows the s3 bucket :- https://github.com/reddit/rpan-studio/blob/e1782332c75ecb2f774343258ff509788feab7ce/CI/install-dependencies-osx.sh {F1395340} 3. Github link that shows the s3 bucket :- https://github.com/reddit/rpan-studio/blob/e1782332c75ecb2f774343258ff509788feab7ce/CI/full-build-macos.sh {F1395338} ##Remediaton You should remove the unclaimed s3 bucket as soon as possible from both the codes as it possess a critical risk ## Impact An attacker can takeover the s3 bucket and can host his malicious content with the name (cef_binary_${1}_macosx64.tar.bz2) as presented in the code and can spread ransomware and many malicious files. This bug has a critical impact because the code of the tool that many people uses, contains unclaimed s3 bucket. Regards, Gaurav Bhatia

Report Details

Additional information and metadata

State

Closed

Substate

Resolved

Bounty

$5000.00

Submitted

Weakness

Business Logic Errors