`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.
- 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:
- 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"
- Alert dialog with title "This page" will be displayed on
about:preferences#paymentspage
And
ftp://localhost:7002/exploit.htmlis blank, non-responsive and can't be reloaded.
adjust timer in
exploit.htmlif 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.
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
- Start an FTP server using the provided sample.
- Open the exploit page via ftp://localhost:7002/exploit.html.
- Click the 'Go to payment settings' link.
- 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.