Insufficient validation of untrusted input DevTools (CVE-2026-12016)
A compromised renderer could bypass browser-side URL filtering when a DevTools session with drag interception is active, because DevTools serialises the raw, unsanitised drag data instead of the filtered copy. Replaying the intercepted event could then inject restricted URLs, and on ChromeOS this could grant unauthorised file access and commit privileges to the renderer.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 18 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 compromised renderer process can potentially bypass browser-side FilterURL security checks when a DevTools Protocol (CDP) session with drag interception is active. By capitalizing on DevTools serializing raw, unfiltered DragData rather than the sanitized copy, an attacker can replay events to inject restricted URLs. On ChromeOS, this can grant unauthorized file access and commit privileges to the targeted process.
Affected files:
content/browser/renderer_host/render_widget_host_impl.cccontent/browser/devtools/protocol/input_handler.cccontent/browser/devtools/devtools_instrumentation.cccontent/browser/file_system/browser_file_system_helper.cc
Estimated timestamp from git blame: 2021-04-07
Description
A potential browser-process logic flaw exists in the DevTools drag-and-drop interception pipeline. When a drag operation is initiated, RenderWidgetHostImpl::StartDragging sanitizes renderer-provided URLs on a copy (filtered_data) but leaves the original drag_data unmodified. If a DevTools session has enabled drag interception via Input.setInterceptDrags, this raw, unsanitized drag_data is serialized and sent to the client. Replaying this intercepted event allows the client to bypass standard drop sanitization checks, which can lead to privilege escalation (e.g., unauthorized file access on ChromeOS).
Root Cause Analysis
-
Unfiltered Data Forwarded: In
content/browser/renderer_host/render_widget_host_impl.cc(line 2908),StartDraggingcreates a sanitized copy of the drag data:C++ DropData drop_data = DragDataToDropData(*drag_data); DropData filtered_data(drop_data); // ... FilterURL applied to filtered_data ...However, the original, raw
drag_datais forwarded directly to DevTools instrumentation without being sanitized (line 2980):C++ devtools_instrumentation::WillStartDragging( frame_tree_->root(), filtered_data, std::move(drag_data), drag_operations_mask, &intercepted); -
Raw Serialization: In
content/browser/devtools/protocol/input_handler.cc(line 1573), when drag interception is active,InputHandler::StartDraggingserializes the raw, unfiltered string items insidedrag_data.itemsinstead of using the sanitizedfiltered_data(line 1595):C++ for (const auto& item : drag_data.items) { if (!item->is_string()) continue; const auto& string_item = item->get_string(); auto protocol_item = protocol::Input::DragDataItem::Create() .SetMimeType(string_item->string_type) .SetData(base::UTF16ToUTF8(string_item->string_data)) // Raw, unsanitized URL .Build(); -
Sanitization Bypass on Replay: When the CDP client replays the intercepted event using
Input.dispatchDragEvent(line 1432), the incoming client payload is translated back to aDropDataobject. The function directly executeswidget_host->DragTargetDrop(line 1519) without callingRenderWidgetHostImpl::FilterDropData(which is typically called on OS-level drag inputs to sanitize incoming schemas). -
Privilege Escalation: On ChromeOS, this reaches
PrepareDropDataForChildProcess(content/browser/file_system/browser_file_system_helper.cc, line 212). If the unsanitizedDropDatacontains anexternalfile://scheme, the browser grants commit and read access to the target renderer process (line 235):C++ security_policy->GrantCommitURL(child_id.GetUnsafeValue(), url);
Potential Steps to Trigger
Note: These are potential steps based on source code analysis; our tools have not executed this flow dynamically.
- A DevTools client session connects and enables drag interception by issuing the command
Input.setInterceptDragswith{enabled: true}. - A compromised renderer process initiates a drag action, passing a restricted scheme (e.g.,
externalfile://drive/root/secret) insideblink::mojom::DragData. - The browser filters the sanitized copy but emits the raw, unfiltered scheme to the DevTools frontend inside the
Input.dragInterceptedevent. - The DevTools client (acting as a confused deputy) replays the event back to the browser via
Input.dispatchDragEvent. - The browser processes the dropped data without executing standard
FilterDropDatachecks, triggeringPrepareDropDataForChildProcessand granting unauthorized commit and read permissions for the target URL to the renderer process.
Suggested Remediation
To resolve this issue, DevTools drag-and-drop instrumentation should serialize data exclusively from the sanitized filtered_data structure inside InputHandler::StartDragging instead of accessing the raw, renderer-supplied drag_data.items. Alternatively, ensure that the drag event replay path (InputHandler::DispatchDragEvent) executes standard FilterDropData verification to sanitize incoming URLs before forwarding them to DragTargetDrop.
Evaluated with Chrome root at commit: a2bea94528f4bd6cc57739c43fa3bb890b8367d3
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.
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 drag interception path in DevTools serialises the original renderer-supplied drag data rather than the sanitised copy, and the replay path skips the normal drop-data filtering.
Impact
On ChromeOS, a compromised renderer could gain unauthorised file access and commit privileges; the report notes the flow was found by source review and not executed dynamically.
What the attacker needed
Compromised renderer process; active DevTools session with drag interception; ChromeOS for the file-access impact
The fix
DevTools drag instrumentation should serialise only the sanitised drag data, or the replay path should run the standard drop-data filtering before forwarding the event.
How it was found
- A DevTools client connects and enables drag interception.
- A compromised renderer starts a drag containing a restricted URL scheme.
- The browser filters its own copy but sends the raw scheme to the DevTools client.
- The client replays the event back to the browser.
- The browser processes the drop without the usual filtering and grants access to the URL.
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 web page runs in a sandboxed part of the browser called a renderer, which is not trusted with direct file access. Normally the browser checks any file-like links a renderer tries to drag before passing them on. Here, a debugging tool called DevTools was handing out the unchecked version of that drag data, so a malicious renderer could get the browser to grant it access to files it should not see.
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.