Skip to content
RCE Disclosed report Advanced

chrome://brave can still be navigated to, leading to RCE

A crafted bookmark can be used to navigate to the privileged chrome://brave page, which can lead to remote code execution. An attacker could trick a user into bookmarking a malicious URL via drag and drop and then opening it with a modified click.

qab Follow

Originally disclosed on HackerOne

  • Triaged in 12 hours
  • Fixed in 8 days
  • Paid in 7 days
  • Disclosed after 27 days

Summary:

'chrome://brave' can be navigated to using the middle mouse click (or normal click with CTRL held) IFF coming from a bookmark. I am also using a small bug to actually trick a user into bookmarking our crafted URL through drag and drop.

Products affected:

Brave: 0.24.0 V8: 6.9.427.23 rev: f657f15bf7e0e0c50a2b854c6b05edb59bfc556c Muon: 8.1.6 OS Release: 10.0.17134 Update Channel: Release OS Architecture: x64 OS Platform: Microsoft Windows Node.js: 7.9.0 Brave Sync: v1.4.2 libchromiumcontent: 69.0.3497.100

Steps To Reproduce:

  1. Host attached PoC in any web
  2. Once opened, you will be instructed to save the html file locally and open it this way
  3. Open the saved PoC from local disk
  4. Click anywhere to open a popup
  5. Drag the anchor tag into the main window bookmark bar (if you never bookmarked anything then just right click and bookmark)
  6. Hold CTRL and click on the new bookmark, or right click and press "open in new tab"

Impact

Navigating to chrome://brave is a bad thing since it can lead to RCE ( https://hackerone.com/reports/395737 )

We can also use another bug I filed ( https://hackerone.com/reports/415167 ) which can detect local files. If there is a way to drop HTML files into the local disk (cache or some other possibility) we can then try to use bug 415167 to bypass having to know OS username and any potentially salted folders. If this is achievable we can skip the part where we need to download and open PoC locally.

It would go something like:

  1. Open PoC from web
  2. PoC will somehow drop HTML in local disk (I have heard in other reports of possible local file XSS)
  3. Using bug 415167 we try to guess OS username + folder path to dropped HTML file
  4. Use the bookmark trick as described above.
  5. Instruct user to open bookmark with either method described above.

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

Impact

Navigating to chrome://brave could lead to remote code execution, and the report also suggests chaining with another bug to detect local files and potentially avoid requiring the user to open the proof-of-concept locally.

What the attacker needed

Victim opens a crafted page; victim saves and opens a local HTML file; victim drags a link to the bookmark bar; victim opens the bookmark with CTRL or middle click

How it was found

  1. Host the proof-of-concept page on any website.
  2. Open the page and follow the instruction to save the HTML file locally and open it from disk.
  3. Open the saved proof-of-concept from local disk.
  4. Click anywhere to open a popup.
  5. Drag the anchor tag into the main window bookmark bar.
  6. Hold CTRL and click the new bookmark, or right-click and choose to open it in a new tab.

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.

Some browser pages are meant only for internal use and should not be reachable from normal web content. This report shows that a saved bookmark could still open one of those protected pages, and that page could be abused to run harmful code on the computer.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by qab

View all

5 more disclosed reports, 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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.