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

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.cc
  • content/browser/devtools/protocol/input_handler.cc
  • content/browser/devtools/devtools_instrumentation.cc
  • content/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

  1. Unfiltered Data Forwarded: In content/browser/renderer_host/render_widget_host_impl.cc (line 2908), StartDragging creates 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_data is 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);
    
  2. Raw Serialization: In content/browser/devtools/protocol/input_handler.cc (line 1573), when drag interception is active, InputHandler::StartDragging serializes the raw, unfiltered string items inside drag_data.items instead of using the sanitized filtered_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();
    
  3. 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 a DropData object. The function directly executes widget_host->DragTargetDrop (line 1519) without calling RenderWidgetHostImpl::FilterDropData (which is typically called on OS-level drag inputs to sanitize incoming schemas).

  4. Privilege Escalation: On ChromeOS, this reaches PrepareDropDataForChildProcess (content/browser/file_system/browser_file_system_helper.cc, line 212). If the unsanitized DropData contains an externalfile:// 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.

  1. A DevTools client session connects and enables drag interception by issuing the command Input.setInterceptDrags with {enabled: true}.
  2. A compromised renderer process initiates a drag action, passing a restricted scheme (e.g., externalfile://drive/root/secret) inside blink::mojom::DragData.
  3. The browser filters the sanitized copy but emits the raw, unfiltered scheme to the DevTools frontend inside the Input.dragIntercepted event.
  4. The DevTools client (acting as a confused deputy) replays the event back to the browser via Input.dispatchDragEvent.
  5. The browser processes the dropped data without executing standard FilterDropData checks, triggering PrepareDropDataForChildProcess and 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.

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 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

  1. A DevTools client connects and enables drag interception.
  2. A compromised renderer starts a drag containing a restricted URL scheme.
  3. The browser filters its own copy but sends the raw scheme to the DevTools client.
  4. The client replays the event back to the browser.
  5. 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.

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.