Insufficient validation of untrusted input in DevTools (CVE-2026-11126)
The DevTools Tracing.start command's process filter can be bypassed by a malicious extension with the debugger permission, allowing it to capture trace data from all Chrome processes. This leads to cross-origin information leaks.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 54 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 Chrome Security team.
Overview: A malicious extension with the debugger permission attached to a tab target can bypass TracingHandler's process filters by providing a crafted perfettoConfig. This allows the extension to capture trace data from all Chrome processes, leading to cross-origin information leaks.
Affected files:
content/browser/devtools/protocol/tracing_handler.ccchrome/browser/extensions/api/debugger/debugger_api.cc
Estimated timestamp from git blame: 2022-11-30
Summary
The DevTools Tracing.start command accepts a raw perfettoConfig argument (a base64-encoded protobuf). For non-browser DevTools sessions (like a debugger attached to a specific tab), TracingHandler::Start attempts to restrict data collection to only the processes associated with that target. It does this by calling AddPidsToProcessFilter to apply a PID filter to the trace configuration.
However, multiple logic flaws in AddPidsToProcessFilter allow an attacker to bypass these restrictions entirely and capture trace data from all Chrome processes (including the browser process, GPU process, and cross-origin renderers), resulting in a cross-origin information leak.
Vulnerability Details
The implementation of AddPidsToProcessFilter in content/browser/devtools/protocol/tracing_handler.cc contains three distinct bypass vectors:
-
Regex Filter Injection: The filtering logic only appends allowed PIDs to the
producer_name_filterfield of thetrack_eventdata source config. It does not inspect or clear theproducer_name_regex_filterfield, which is also attacker-controlled in the raw protobuf. Because Perfetto'sNameMatchesFilterevaluates a match if either the exact-match list or the regex matches, an attacker can provide a regex such as.*to effectively nullify the PID allowlist. -
Duplicate
track_eventBypass: The loop that iterates through the configuration's data sources contains abreak;statement immediately after applying the PID filter to the firsttrack_eventdata source it encounters. An attacker can provide a config with multipletrack_evententries; only the first will be restricted, while all subsequenttrack_evententries will be left completely unfiltered, allowing them to capture data globally. -
Non-
track_eventData Source Bypass: The function only attempts to apply PID filters to data sources explicitly namedtrack_event. Other Chrome data sources, such asorg.chromium.sampler_profilerororg.chromium.memory_instrumentation, are skipped by this loop. Because the Perfetto service interprets an empty filter list as "allow all producers," these data sources will capture data across all processes.
Potential Reproduction Steps
(Note: These are suggested steps based on source code analysis. We do not currently have a capability to run exploit code.)
- Create a Chrome extension and declare the
debuggerpermission inmanifest.json. - The extension attaches to an allowed tab (e.g., a standard web page) using
chrome.debugger.attach({tabId: <target-id>}, '1.3'). - Craft a
perfetto::TraceConfigprotobuf payload containing:- A
track_eventdata source withproducer_name_regex_filter: ".*" - A second
track_eventdata source. - A data source named
org.chromium.sampler_profiler.
- A
- Serialize the payload to a binary string and base64-encode it.
- Send the DevTools command:
chrome.debugger.sendCommand({tabId: <target-id>}, 'Tracing.start', {perfettoConfig: <base64_payload>, transferMode: 'ReturnAsStream', streamFormat: 'proto'}). - After a delay, send
Tracing.endand read the resulting stream viaIO.read. - The resulting trace data will contain packets from all Chrome PIDs, demonstrating the bypass of the tab target's isolation boundaries.
Suggested Fix
In content/browser/devtools/protocol/tracing_handler.cc's AddPidsToProcessFilter:
- Remove the
break;statement so that all data sources are evaluated. - Expand the check from just
kTrackEventDataSourceNameto apply the PID filter to all data sources (or at least all data sources whereIsChromeDataSourceis true). - Ensure that
source_config->clear_producer_name_regex_filter();is called on all evaluated data sources to prevent attacker-provided regexes from overriding the explicit PID list.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
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.
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 process filter function only restricts the first track_event data source and ignores other data sources and regex filters, allowing an attacker to bypass the intended PID allowlist.
Impact
An attacker could capture trace data from all Chrome processes, leading to cross-origin information leaks.
What the attacker needed
Malicious extension with debugger permission; victim installs the extension
The fix
The fix should remove the break statement, apply the PID filter to all data sources, and clear the producer_name_regex_filter.
How it was found
- Create a Chrome extension with the debugger permission.
- Attach the extension to a tab using chrome.debugger.attach.
- Craft a perfettoConfig with a track_event data source using a regex filter, a second track_event data source, and a non-track_event data source.
- Base64-encode the serialized protobuf.
- Send Tracing.start with the crafted config.
- Send Tracing.end and read the stream to obtain trace data from all processes.
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 can ask for a special permission to debug a tab. The code that limits debugging to just that tab has mistakes, so the extension can see data from other tabs and the browser itself. This means private information from other websites could leak.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.