Skip to content
Subdomain takeover Disclosed report Beginner

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.

j3rry-1729 Follow

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.

Screenshot_2022-12-03_at_11.28.27_PM.png
Screenshot_2022-12-03_at_11.28.27_PM.png From the original on HackerOne

I have uploaded proof.txt for further clarification.

Also, Bucket Takeover screenshots are attached.

--> Before Takeover

Screenshot_2022-12-03_at_11.32.33_PM.png
Screenshot_2022-12-03_at_11.32.33_PM.png From the original on HackerOne

AWS

Screenshot_2022-12-03_at_11.28.43_PM.png
Screenshot_2022-12-03_at_11.28.43_PM.png From the original on HackerOne

--> URL:-

https://s3-us-west-2.amazonaws.com/brave-apt/proof.txt

--> Steps To Reproduce:-

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

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

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

Screen_Recording_2022-12-03_at_11.39.22_PM.mov From the original on HackerOne

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

https://hackerone.com/reports/172137

https://github.com/EdOverflow/can-i-take-over-xyz

The original report as published on HackerOne, by j3rry-1729. 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 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

  1. Find links in Brave community and forum posts that reference the S3 bucket URL.
  2. Observe that the S3 bucket is used for downloading brave-browser in Linux distros.
  3. Claim the unclaimed S3 bucket through AWS S3 services.
  4. 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.

More by j3rry-1729

View all

1 more disclosed report, best first.

More from Brave Software

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

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.