Skip to content
Access control Advisory Advanced CVE-2026-12024

Insufficient policy enforcement DevTools (CVE-2026-12024)

A logic error in DevToolsUIBindings::LoadNetworkResource means the guard against loading file:// URLs from remote DevTools frontends never triggers in production, because the committed URL uses the devtools:// scheme rather than https://. An attacker who controls a debugging target could serve a malicious frontend that reads arbitrary local files through the exposed binding.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 16 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: A logic error in DevToolsUIBindings::LoadNetworkResource prevents the file:// scheme guard from ever triggering in production remote debugging sessions. This could potentially allow an attacker who controls a debugging target to read arbitrary local files via a custom or compromised DevTools frontend. A testing gap in unit tests masked this issue by simulating direct navigations that do not occur in production.

Affected files:

  • chrome/browser/devtools/devtools_ui_bindings.cc
  • chrome/browser/devtools/devtools_ui_bindings_unittest.cc

Estimated timestamp from git blame: 2026-04-22

Root Cause & Analysis

A security guard exists in DevToolsUIBindings::LoadNetworkResource to prevent remote (CDN-hosted) DevTools frontends from loading local system files (file:// scheme URLs). However, in production environments, this guard is ineffective due to a mismatch between how remote URLs are proxied and how the guard detects them.

In chrome/browser/devtools/devtools_ui_bindings.cc:

C++
if (gurl.SchemeIsFile()) {
  GURL frontend_url = web_contents_->GetLastCommittedURL();
  bool is_remote_frontend = 
      frontend_url.is_valid() && !frontend_url.IsAboutBlank() &&
      IsValidRemoteFrontendURL(frontend_url);
  if (is_remote_frontend) {
    if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
            switches::kAllowUnsafeDevToolsRemoteFileLoading)) {
      // Blocks the load (403 ERR_ACCESS_DENIED)
      return;
    }
  }
  // Bypassed: An unrestricted FileURLLoaderFactory is created
  mojo::PendingRemote<network::mojom::URLLoaderFactory> pending_remote =
      content::CreateFileURLLoaderFactory(...);
  ...
}

The guard checks whether the committed URL of the DevTools page is a remote frontend URL using IsValidRemoteFrontendURL:

C++
bool DevToolsUIBindings::IsValidRemoteFrontendURL(const GURL& url) {
  return ::SanitizeFrontendURL(url, url::kHttpsScheme, kRemoteFrontendDomain,
                               url.GetPath(), true)
             .spec() == url.spec();
}

IsValidRemoteFrontendURL reconstructs the URL with the https:// scheme and chrome-devtools-frontend.appspot.com host, returning true only if the original URL is an https:// URL.

Why the Guard is Bypassed in Production

In a real remote debugging session, the committed URL of the frame never has an https:// scheme:

  1. URL Proxying: When debugging a remote target, DevToolsWindow::OpenDevToolsWindowForRemoteTarget redirects the target-supplied appspot URL using DevToolsUI::GetProxyURL (in chrome/browser/ui/webui/devtools/devtools_ui.cc), rewriting it into a devtools:// scheme: devtools://devtools/remote/serve_rev/@<hash>/<file>.html?remoteFrontend=true
  2. Scheme Mismatch: Because the committed URL has a devtools:// scheme, the comparison in IsValidRemoteFrontendURL between the reconstructed https:// URL and the input devtools:// URL always fails. Consequently, is_remote_frontend evaluates to false, and the protection is bypassed.

Testing Gap

Existing unit tests (such as BlocksFileSchemeFromRemoteFrontend in devtools_ui_bindings_unittest.cc) navigate directly to an https://chrome-devtools-frontend.appspot.com/... URL. In production, such a direct HTTPS navigation would reset frontend_host_ and fail to initialize DevTools bindings, but the mock testing environment allows this path, creating a testing blind spot.


Potential Exploitation Scenario

Note: The following steps are potential/suggested vector steps as our tooling does not yet have the capability to execute code.

  1. An attacker controls or compromises a remote debugging target (e.g., via USB/ADB or an exposed TCP port).

  2. The attacker serves a target metadata endpoint containing a "devtoolsFrontendUrl" pointing to an older, vulnerable revision of the DevTools frontend hosted on the Google appspot CDN (e.g., https://chrome-devtools-frontend.appspot.com/serve_rev/@<hash>/inspector.html).

  3. The victim opens chrome://inspect and inspects the target.

  4. The browser proxies the URL to devtools://devtools/remote/... and initializes the bindings.

  5. The attacker's compromised/manipulated frontend executes JavaScript to invoke the exposed binding:

    JavaScript
    InspectorFrontendHost.loadNetworkResource('file:///etc/passwd', '', streamId);
    
  6. The browser-side scheme guard fails to detect this as a remote frontend, creates a FileURLLoaderFactory, and returns the local file content to the frontend context.


Suggested Fix

Update the detection of remote frontends to verify if the URL corresponds to a proxied remote path under the devtools scheme. For example:

C++
bool is_remote_frontend =
    frontend_url.is_valid() && !frontend_url.IsAboutBlank() &&
    frontend_url.SchemeIs(content::kChromeDevToolsScheme) &&
    base::StartsWith(frontend_url.GetPath(), "/remote/");

Additionally, the unit tests in devtools_ui_bindings_unittest.cc should be modified to simulate realistic devtools://devtools/remote/... URLs.

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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 guard compares the committed DevTools page URL against an https:// remote frontend URL, but in production the URL is rewritten to a devtools:// proxy URL, so the comparison always fails and the file loading path is allowed.

Impact

An attacker who controls a debugging target could read arbitrary local files through a compromised DevTools frontend, though the report notes the exploitation steps are potential and were not executed.

What the attacker needed

Attacker controls a debugging target; victim opens chrome://inspect; victim inspects the malicious target; frontend served from appspot CDN

The fix

The detection should check for a proxied remote path under the devtools scheme, and the unit tests should use realistic devtools:// remote URLs.

How it was found

  1. An attacker controls or compromises a remote debugging target.
  2. The attacker serves target metadata whose devtoolsFrontendUrl points to an older DevTools frontend revision on the appspot CDN.
  3. The victim opens chrome://inspect and inspects the target.
  4. The browser proxies the URL to a devtools:// remote path and initialises the bindings.
  5. The attacker's frontend calls the exposed loadNetworkResource binding with a file:// URL.
  6. The guard fails to detect a remote frontend, a file loader is created, and local file content is returned to the frontend.

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's developer tools can be loaded from a remote web server. A safety check was meant to stop that remote copy from reading files on your own computer. The check looked for a web address starting with https, but in real use the address starts with devtools instead, so the check never matched and the protection was skipped.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.