Brave Software · Report #378805
Navigation to `chrome-extension://` origin (internal pages) from the web
How it was found
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:
- Start ftp server (sample ftp server attached,
npm i ftpd && node ftp-server.js - Open
ftp://localhost:7002/exploit.html - Click "Go to payment settings"
about:preferences#paymentspage 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.