Insufficient data validation in Browser Switcher (CVE-2024-3841)
The url parameter of chrome://browser-switch allowed HTML injection when given a file:/// URL, enabling an attacker to display a phishing message with a download link. Script injection was blocked by the existing HTML sanitiser.
- Fix shipped in 44 days
VULNERABILITY DETAILS The "url" query parameter of the chrome://browser-switch allows HTML injection when the value is a file:/// scheme URL. This vulnerability could be exploited to craft a malicious link that, when opened, displays a convincing phishing message along with a download link. Any attempt of script injecting was blocked thanks to chrome://resources/js/parse_html_subset.js.
VERSION Chrome Version: 122.0.6261.129 stable Operating System: Windows 11 Version 22H2
REPRODUCTION CASE Go to the following link: chrome://browser-switch/?url=file:///BUG1337<br><strong>To fix this issue please download and open the following file: <a href="https://www.example.com">Download</a></strong><!--
In a real life situation, this bug could be exploited by any Chrome extension with the "tabs" permission. A simple extension demonstrating this exploit is attached.
CREDIT INFORMATION Reporter credit: Oleg
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 page failed to properly sanitise the url parameter when it contained a file:/// scheme, allowing HTML injection despite the use of parse_html_subset.js.
Impact
An attacker could craft a malicious link that, when opened, displays a convincing phishing message and a download link; script execution was blocked by the HTML sanitiser.
What the attacker needed
Victim opens a crafted chrome:// link; Chrome version 122.0.6261.129
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.
A Chrome internal page (chrome://browser-switch) took a URL from the address and inserted it into the page without properly cleaning it. Because the URL started with file:///, the page treated it as safe and allowed some HTML tags, so an attacker could make the page show a fake message and a link to a malicious download. Scripts were still blocked, so the attacker could not run code, but they could still trick users.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.