Skip to content
Subdomain takeover Disclosed report Beginner

S3 Bucket Takeover "brave-browser-rpm-staging-release-test"

An unclaimed S3 bucket referenced in Brave's Linux installation instructions could be taken over by an attacker. The attacker could then host malicious files, such as fake keyrings, to distribute malware to users.

j3rry-1729 Follow

Originally disclosed on HackerOne

  • Triaged in 1 hour
  • Fixed in 12 hours
  • Paid in 12 hours
  • Disclosed after 3 months

Hi Team,

I 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 a takeover by any attacker and was being used in getting keyrings of brave-browser in Linux distros.

Vulnerable URL:-

https://s3-us-west-2.amazonaws.com/brave-browser-rpm-staging-release-test/

Here an S3 Bucket is pointing towards domain hosting services so that these domains can be taken over and can be used to do any 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 resolve this issue, I will release it.

I have uploaded proof.txt for further clarification.

Also, Bucket Takeover screenshots are attached.

--> Before Takeover

Screenshot_2023-01-14_at_12.00.40_PM.png
Screenshot_2023-01-14_at_12.00.40_PM.png From the original on HackerOne

AWS

Screenshot_2023-01-14_at_12.13.29_PM.png
Screenshot_2023-01-14_at_12.13.29_PM.png From the original on HackerOne

After Takeover:

Screenshot_2023-01-14_at_12.11.03_PM.png
Screenshot_2023-01-14_at_12.11.03_PM.png From the original on HackerOne

--> URL:-

https://s3-us-west-2.amazonaws.com/brave-browser-rpm-staging-release-test/proof.txt

--> Steps To Reproduce:-

  1. Go to the below-mentioned URL

https://community.brave.com/t/cant-install-brave-in-opensuse-leap-15-1/157685/3

  1. Here you can find the https://s3-us-west-2.amazonaws.com/brave-browser-rpm-staging-release-test/ the S3 bucket is used for getting the keyrings in linux distros.

Moreover this keyrings were hosted on this bucket previously but now I think the bucket is changed to https://s3-us-west-2.amazonaws.com/brave-browser-rpm-staging-release/ for downloading the binaries but this test bucket is not reclaimed so that's why I am making this report

You can also see this by using this URL where you can download the keyrings from the original bucket https://s3-us-west-2.amazonaws.com/brave-browser-rpm-staging-release/x86_64/brave-keyring-1.8-1.noarch.rpm.

Screenshot_2023-01-14_at_12.01.27_PM.png
Screenshot_2023-01-14_at_12.01.27_PM.png From the original on HackerOne

But from the test bucket you can't download as it is available for takeover.

  1. Many users who visit the webpage to see how to get the keyrings for brave-browser in Linux will be redirected to the S3-Bucket, which is controlled by the attacker.

Impact

An attacker can take over the unclaimed s3 bucket and can spread the malware using this keyrings 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 was left unclaimed after being referenced in public documentation, allowing anyone to register it.

Impact

An attacker could take over the bucket and distribute malicious keyring files, potentially infecting users with malware.

What the attacker needed

Bucket is unclaimed; user visits the community page; user downloads the keyring

How it was found

  1. Visit the Brave community page about installing Brave on openSUSE.
  2. Find the link to the S3 bucket used for keyrings.
  3. Observe that the bucket is unclaimed and can be taken over.

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 links to a bucket but no longer owns it, anyone can claim it and put their own files there. Here, the bucket was used in instructions for installing Brave on Linux, so an attacker could replace the keyring file with malware.

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.