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

Insufficient policy enforcement in DevTools (CVE-2026-11092)

The DevTools Fetch.fulfillRequest API does not enforce MayAttachToURL permission checks when processing Set-Cookie headers, allowing a malicious extension with the debugger permission to inject HttpOnly cookies into restricted domains. While SameSite=Strict cookies are protected, SameSite=None cookies can be successfully injected.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 57 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 without the security team.

Overview: The DevTools Fetch.fulfillRequest API fails to enforce MayAttachToURL permission checks when processing Set-Cookie headers. This potentially allows a malicious extension with the debugger permission to bypass security boundaries and inject HttpOnly cookies into restricted domains like the Chrome Web Store. While SameSite=Strict cookies are protected by context enforcement, SameSite=None cookies can be successfully injected.

Affected files:

  • content/browser/devtools/devtools_url_loader_interceptor.cc
  • content/browser/devtools/protocol/fetch_handler.cc

Estimated timestamp from git blame: 2024-08-20

Description

The DevTools Fetch domain lacks the strict cookie authorization checks that are correctly enforced in the Network domain. When a DevTools client (such as a Chrome extension) uses Fetch.fulfillRequest to mock a response, the browser processes any included Set-Cookie headers via InterceptionJob::ProcessSetCookies in content/browser/devtools/devtools_url_loader_interceptor.cc.

Unlike Network.setCookie, which verifies NetworkHandler::CanAccessCookie (and subsequently DevToolsAgentHostClient::MayAttachToURL), ProcessSetCookies performs no validation against the extension's privileges for the target URL. Furthermore, it explicitly calls options.set_include_httponly(), granting the ability to write HttpOnly cookies using the browser process's unrestricted CookieManager.

While the underlying cookie layer correctly enforces SameSite contexts—meaning cross-site injection of SameSite=Strict or Lax cookies will be rejected—an attacker can still successfully inject SameSite=None; Secure; HttpOnly cookies. By intercepting a subresource request from an allowed domain to a highly restricted target (like chromewebstore.google.com or an enterprise-policy-blocked host), the attacker can force the browser to store the injected cookie for the restricted domain.

Potential Reproduction Steps

Note: These are suggested theoretical steps based on source code analysis; a working proof-of-concept has not been executed.

  1. An attacker creates an extension with the debugger permission and tricks a user into installing it.
  2. The user navigates to an attacker-controlled page (e.g., https://attacker.example).
  3. The malicious extension attaches the debugger to the current tab (attacker.example) and enables the Fetch domain to intercept network requests.
  4. The attacker's webpage initiates a subresource request to a restricted domain, such as fetch('https://chromewebstore.google.com/', {mode: 'no-cors'});.
  5. The extension intercepts the Fetch.requestPaused event and responds using Fetch.fulfillRequest with a mocked response containing: Set-Cookie: sid=evil; HttpOnly; Secure; SameSite=None; Path=/.
  6. The browser processes the mocked response and successfully injects the HttpOnly cookie into chromewebstore.google.com, bypassing the MayAttachToURL restrictions.

Suggested Fix

In InterceptionJob::ProcessSetCookies (content/browser/devtools/devtools_url_loader_interceptor.cc), implement a permission check before calling cookie_manager_->SetCanonicalCookie. The code should verify that the DevTools client is permitted to interact with the target URL by checking DevToolsAgentHostClient::MayAttachToURL, matching the security posture of NetworkHandler::CanAccessCookie. If the client lacks permission, the Set-Cookie headers should be discarded.

Evaluated with Chrome root at commit: f200f57a19490707ff8bc7aa5de3cbc443a3afad


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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

Likely the DevTools Fetch domain's cookie processing lacks the permission check (MayAttachToURL) that the Network domain enforces, and it explicitly enables HttpOnly cookie writing.

Impact

A malicious extension with the debugger permission could inject HttpOnly cookies into restricted domains, potentially leading to session fixation or other cookie-based attacks, though SameSite=Strict cookies are protected.

What the attacker needed

Victim installs malicious extension; extension has debugger permission; victim visits attacker-controlled page

The fix

The fix should add a permission check in InterceptionJob::ProcessSetCookies to verify that the DevTools client is permitted to interact with the target URL via MayAttachToURL, and discard Set-Cookie headers if not permitted.

How it was found

  1. An attacker creates an extension with the debugger permission and tricks a user into installing it.
  2. The user navigates to an attacker-controlled page.
  3. The malicious extension attaches the debugger to the current tab and enables the Fetch domain to intercept network requests.
  4. The attacker's webpage initiates a subresource request to a restricted domain.
  5. The extension intercepts the Fetch.requestPaused event and responds using Fetch.fulfillRequest with a mocked response containing a Set-Cookie header.
  6. The browser processes the mocked response and successfully injects the HttpOnly cookie into the restricted domain, bypassing the MayAttachToURL restrictions.

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 browser extension with special debugging rights can pretend to be a website and set cookies for other sites, even ones the browser normally protects. This means the extension can plant a cookie that the target site will trust, potentially letting the attacker take over an account or track the user. The flaw is that the browser does not check whether the extension is allowed to touch that website before accepting the cookie.

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.