Skip to content
Access control Disclosed report Intermediate

Navigation to `chrome-extension://` origin (internal pages) from the web

The browser blocked web pages from navigating to internal chrome-extension:// pages, but the check only covered http and https, not ftp or file origins. A page loaded from an ftp server could therefore open an extension's internal page, and if that page reflected input, an attacker could run code in the extension's context.

metnew Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 32 days
  • Paid in 32 days
  • Disclosed after 3 months

Summary

http and https pages are disallowed from navigating to chrome-extension:// origin. However, ftp protocol isn't checked. Pages from ftp:/// and file:/// origin could navigate to chrome-extension:// origin.

Steps to reproduce:

  1. Start ftp server (sample ftp server attached, npm i ftpd && node ftp-server.js
  2. Open ftp://localhost:7002/exploit.html
  3. Click "Go to payment settings"
  4. about:preferences#payments page opens (window.open)

Products affected

Brave: 0.23.31 V8: 6.7.288.46 rev: 3148acef36dba0fce89108638bb27927c4937f90 Muon: 7.1.5 OS Release: 17.6.0 Update Channel: Release OS Architecture: x64 OS Platform: macOS Node.js: 7.9.0 Brave Sync: v1.4.2 libchromiumcontent: 67.0.3396.103

Impact

Navigation to chrome-extension:// should be forbidden, because it's a bad behavior which creates additional attack vectors.

If some component(e.g., html file) inside an extension's folder is vulnerable to reflected XSS, then it's possible to navigate to this component from the web and execute arbitrary code in the context of this extension.

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

Navigation to extension pages from the web should be forbidden because it adds attack vectors; if an extension's own page is vulnerable to reflected XSS, an attacker could reach it from the web and run code in that extension's context.

What the attacker needed

Victim visits an ftp-served page; attacker controls an ftp server; target extension page reflects input

The fix

Navigation to chrome-extension:// pages should be forbidden, since ftp and file origins are not checked.

How it was found

  1. Run a local ftp server serving a test page.
  2. Open the test page over ftp in the browser.
  3. Click the link on the page.
  4. The browser opens an internal extension page in a new window.

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.

Browsers keep their own internal pages, including pages belonging to installed extensions, separate from ordinary websites. A page on the web should not be able to send the browser to one of those internal pages. Here the browser only blocked that jump for normal web addresses and forgot other kinds of address, so a page served over an older file-transfer protocol could still open an extension page.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by metnew

View all

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

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.