S3 Bucket Takeover : brave-apt
An unclaimed S3 bucket referenced in Brave's Linux installation instructions could be taken over by an attacker. The attacker could then serve malicious files to users following those instructions.
Originally disclosed on HackerOne
- Fixed in 23 hours
- Paid in 15 hours
- Disclosed after 5 months
Hi Team,
Hope Everything is going well on your side.
Recently I was enumerating brave.com and I found that there is an unclaimed S3 bucket that can be takeover by any attacker and was being used in the installation of brave-browser in Linux distros.
Vulnerable URL:-
https://s3-us-west-2.amazonaws.com/brave-apt/
Here there is an S3 Bucket that is pointing towards domain hosting services so that these domains can be taken over can be used to do any type of attack mostly I can make a fake login page on your behalf and spoof your users; this is a critical vulnerability and needs to be fixed. In this case, it was pointing toward an unclaimed S3-Bucket.
-->POC:-
Check out the attachments for more information I have claimed the subdomain through AWS S3 services. As soon as you will resolve this issue, I will release it.

I have uploaded proof.txt for further clarification.
Also, Bucket Takeover screenshots are attached.
--> Before Takeover

AWS

--> URL:-
https://s3-us-west-2.amazonaws.com/brave-apt/proof.txt
--> Steps To Reproduce:-
- Go to any of the below-mentioned URLs
https://community.brave.com/t/updates-on-linux-error-messages-appearing/103564
https://elementaryforums.com/index.php?threads/brave-browser.2390/
https://github.com/brave/browser-laptop/issues/13861
https://github.com/brave/browser-laptop/issues/12636
https://forums.linuxmint.com/viewtopic.php?t=300633
-
Here you can find the
https://s3-us-west-2.amazonaws.com/brave-apt/the S3 bucket is used for downloading brave-browser in linux distros. -
Many users who visit the webpage to see how to install brave-browser in Linux will be redirected to the S3-Bucket, which is controlled by the attacker.
--> Video POC:-
Impact
An attacker can take over the unclaimed s3 bucket and can spread the malware using this release of brave browser then, an attacker can create a malicious file with custom payloads and can harm the user by downloading the malicious file instead of the original file.
--> References:-
https://hackerone.com/reports/1316650
https://blog.sweepatic.com/subdomain-takeover-principles/
https://hackerone.com/reports/32825
https://hackerone.com/reports/175070
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 name was no longer registered by the organisation, allowing anyone to claim it and control the content served at that URL.
Impact
An attacker could take over the bucket and spread malware by serving malicious files instead of the legitimate Brave browser release.
What the attacker needed
Unclaimed S3 bucket; victim follows installation instructions
How it was found
- Find links in Brave community and forum posts that reference the S3 bucket URL.
- Observe that the S3 bucket is used for downloading brave-browser in Linux distros.
- Claim the unclaimed S3 bucket through AWS S3 services.
- Upload a proof file to demonstrate control of the bucket.
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 a cloud storage folder. If a company's instructions point to a bucket that no longer exists, anyone can create a bucket with the same name and put their own files there. Users following the instructions would then download the attacker's files instead of the real ones.
What is Subdomain takeover?
A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.