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

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

A hardcoded trust check lets the Perfetto UI extension attach to the DevTools browser target, and child sessions created through the Target domain skip the WebUI attachment checks. A compromised renderer of that extension could therefore attach to a privileged WebUI frame and run arbitrary JavaScript there, potentially escaping the sandbox.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

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 Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A compromised renderer process of the Perfetto UI extension can attach to the DevTools Browser target due to a hardcoded ID trust check. By using the Target domain to create a child session attached to a WebUI frame, the attacker can bypass WebUI attachment restrictions and execute arbitrary code in a privileged context, leading to a potential sandbox escape.

Affected files:

  • chrome/browser/extensions/api/debugger/debugger_api.cc

Estimated timestamp from git blame: 2022-05-06

Summary

A vulnerability exists in the handling of Chrome DevTools Protocol child sessions that allows a compromised renderer process of the Perfetto UI extension to bypass WebUI attachment restrictions. This allows the attacker to execute arbitrary JavaScript within a highly privileged WebUI context (e.g., chrome://settings), leading to a potential sandbox escape.

Root Cause

The vulnerability stems from two combined issues:

  1. Hardcoded Extension Trust: In chrome/browser/extensions/api/debugger/debugger_api.cc, ExtensionIsTrusted() hardcodes the Perfetto UI extension ID (lfmkphfpdbjijhpomgecfikhfohaoine). This grants the extension the ability to attach to the DevTools Browser target (kBrowserTargetId), which provides access to privileged CDP domains like Target with AccessMode::kBrowser.

  2. Missing Attachment Check Overrides in Child Sessions: When a trusted client uses Target.attachToTarget to attach to a frame, TargetHandler::AttachToTarget() creates a child session represented by TargetHandler::Session (content/browser/devtools/protocol/target_handler.cc). When this session attaches to the RenderFrameDevToolsAgentHost, RenderFrameDevToolsAgentHost::AttachSession() checks if the attachment is allowed by calling session->GetClient()->MayAttachToRenderFrameHost().

    However, TargetHandler::Session implements the DevToolsAgentHostClient interface but fails to override MayAttachToRenderFrameHost() (and MayAttachToURL()). Consequently, it inherits the default base class implementations (content/public/browser/devtools_agent_host_client.cc), which unconditionally return true. This completely bypasses the strict WebUI attachment restrictions normally enforced on untrusted extensions by ExtensionDevToolsClientHost.

Potential Attack Scenario

Note: These are potential steps as we do not have the ability to run a working proof of concept.

  1. An attacker exploits a memory corruption or Universal XSS vulnerability in the renderer process of the installed Perfetto UI extension.
  2. The compromised extension uses the chrome.debugger API to attach to the browser target: chrome.debugger.attach({targetId: 'browser'}, '1.3'). This succeeds due to the hardcoded ExtensionIsTrusted() check.
  3. The attacker sends the Target.getTargets CDP command to find the targetId of an open WebUI frame (e.g., chrome://settings).
  4. The attacker sends Target.attachToTarget({targetId: '<webui-target-id>'}). This creates a child session.
  5. Because TargetHandler::Session inherits the default MayAttachToRenderFrameHost() implementation returning true, the child session successfully attaches to the privileged WebUI frame.
  6. The attacker issues Runtime.evaluate to execute arbitrary JavaScript in the WebUI context.
  7. The attacker leverages the WebUI's privileged chrome.* APIs or Mojo bindings to escape the renderer sandbox and achieve Remote Code Execution on the host system.

Suggested Fix

  1. Enforce Checks in Child Sessions: TargetHandler::Session in content/browser/devtools/protocol/target_handler.cc must override MayAttachToRenderFrameHost() and MayAttachToURL(). These overrides should delegate the checks to the root client (GetRootClient()->MayAttachToRenderFrameHost(...)), just as it currently does for IsTrusted(), MayReadLocalFiles(), etc.
  2. Re-evaluate Extension Trust: Re-evaluate the security model of hardcoding the Perfetto UI extension ID as trusted. If it requires browser-level DevTools access, consider restricting this capability to explicitly loaded Component Extensions or validating the extension's signature/origin, rather than relying solely on the extension ID which provides no protection against a compromised renderer.

Evaluated with Chrome root at commit: 3acbde3302da0cb19488c22c0eb007c791207b4b


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 child session class used by the DevTools Target domain inherits default client methods that always allow attachment, instead of delegating the WebUI checks to the root client, combined with a hardcoded extension ID trust check.

Impact

A compromised extension renderer could run code in a privileged WebUI context and potentially escape the sandbox, though the report notes no working proof of concept was built.

What the attacker needed

Perfetto UI extension installed; attacker compromises its renderer

The fix

The child session should override the attachment checks and delegate them to the root client, and the hardcoded extension trust should be re-evaluated.

How it was found

  1. Compromise the renderer process of the Perfetto UI extension.
  2. Use the debugger API to attach to the browser target.
  3. List targets to find the identifier of an open WebUI frame.
  4. Attach to that WebUI frame, creating a child session.
  5. Run JavaScript in the WebUI context and use its privileged APIs to escape the sandbox.

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 can ask the browser's debugging tool to inspect pages. Normally the browser refuses to let an extension inspect sensitive internal pages such as the settings page. Here a special extension was trusted by name, and a second check was missing, so a hijacked copy of that extension could reach those internal pages and run code inside them.

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.