Skip to content
XSS Disclosed report Intermediate

`alert()` dialogs on `chrome-extension://` origin (internal pages)

A blank page created during navigation to a chrome-extension:// origin can be used to display an alert() dialog with social-engineering content and the title 'This page' on internal pages. An attacker could trick a user into clicking a link that leads to this dialog on a sensitive settings page.

metnew Follow

Originally disclosed on HackerOne

  • Disclosed after 3 months

Summary:

Navigation to chrome-extension from the web is possible with #378805 (ftp:// -> chrome-extension://). A blank page is created during navigation to chrome-extension:// origin. Blank pages have "This page" title. It's possible to initiate alert() with a social-engineering content and "This page" title, that will be displayed on internal pages.

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

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. Alert dialog with title "This page" will be displayed on about:preferences#payments page

And ftp://localhost:7002/exploit.html is blank, non-responsive and can't be reloaded.

adjust timer in exploit.html if it doesn't work

Impact

An attacker could initiate alert() with a social-engineering content and "This page" title, that will be displayed on internal pages.

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

Root cause

Likely the browser allows navigation from ftp:// to chrome-extension:// and creates a blank page that retains the ability to run scripts, which can then call alert() on internal pages.

Impact

An attacker could initiate alert() with social-engineering content and 'This page' title, displayed on internal pages, potentially tricking users.

What the attacker needed

Victim clicks a link; attacker controls an FTP server

How it was found

  1. Start an FTP server using the provided sample.
  2. Open the exploit page via ftp://localhost:7002/exploit.html.
  3. Click the 'Go to payment settings' link.
  4. Observe an alert dialog with title 'This page' on the about:preferences#payments page.

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.

When you visit a special internal page in the browser, a temporary blank page can appear. The researcher found that this blank page can be made to show a pop-up message that looks like it comes from the browser itself. This could be used to trick someone into thinking the message is official.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

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.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.