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

Insufficient validation of untrusted input in Views (CVE-2026-11682)

The Linux/X11 drag-and-drop code lacks a process-wide guard against concurrent drags, so a compromised renderer in a second window could start its own drag while a user drag is active and take over the X selection. That could let the attacker deliver a crafted payload, such as a javascript: URL, to the drop target.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 13 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: The Linux/X11 drag-and-drop implementation lacks a process-global guard to prevent concurrent or reentrant drag operations across different top-level windows. A compromised renderer could potentially exploit this by asynchronously initiating a drag in a second window while a legitimate user drag is in progress in another window. This could allow a malicious origin to steal ownership of the global XdndSelection atom and inject unauthorized payloads into the active drag-and-drop gesture.

Affected files:

  • ui/views/widget/desktop_aura/desktop_drag_drop_client_ozone.cc
  • ui/ozone/platform/x11/x11_window.cc
  • ui/base/x/x11_drag_drop_client.cc

Estimated timestamp from git blame: 2020-04-24

Root Cause Analysis

On Windows, DesktopDragDropClientWin::StartDragAndDrop utilizes a process-global boolean flag (g_is_dragging) and asserts via CHECK(!g_is_dragging) to guarantee that no concurrent drag-and-drop operations can be initiated globally across the application's process boundary.

However, in the Linux/X11 Ozone platform implementation (ui/views/widget/desktop_aura/desktop_drag_drop_client_ozone.cc), there is no equivalent process-global guard. Instead, the implementation relies on per-instance pointers and state variables that are only asserted via DCHECK (which are compiled out in production release builds):

  • DCHECK(!drag_context_) in DesktopDragDropClientOzone is instance-scoped (one per top-level window).
  • DCHECK(!drag_location_delegate_) in X11Window is instance-scoped.
  • DCHECK(!in_move_loop_) in X11WholeScreenMoveLoop is loop-instance-scoped.

Since these clients are instantiated once per top-level browser window, a reentrant call coming from a different window/widget can bypass these checks in release builds.

Potential Attack Scenario

  1. User Action: The user starts a legitimate drag-and-drop operation in Window 1 (W1). W1 establishes selection ownership via the X Server and enters a nested run loop via X11WholeScreenMoveLoop::RunMoveLoop to process window/mouse events.
  2. Malicious Request: While the user's drag is active and pumping nested tasks, a compromised renderer hosting an attacker-controlled tab in Window 2 (W2) sends a LocalFrameHost::StartDragging Mojo IPC with custom payload data (such as a javascript: URL or shell commands).
  3. Reentrant Bypass: Because W2 is a distinct WebContents and native window, its local state guards do not flag the drag as active. Security checks verify that W2's coordinates are within W2's visible screen bounds, which succeeds.
  4. Selection Ownership Theft: W2's drag client starts up and triggers XDragDropClient::InitDrag, which executes SelectionOwner::TakeOwnershipOfSelection. The X Server transfers the XdndSelection atom ownership to W2's window. While W1's window receives SelectionClear, it lacks handling to abort its loop, leaving W1 in an inconsistent state.
  5. Pointer Grab Override: W2 calls GrabPointer, causing the X Server to transfer the pointer grab from W1's input grab window to W2's window because they belong to the same X client. W2 overrides the event dispatcher and enters its own nested loop.
  6. Data Delivery: When the user completes the gesture and drops the item, the drop target requests selection data. The X Server routes this request to the current owner (W2's window), which responds with the attacker's custom payload rather than the user's intended selection.

Note: These steps represent a theoretical analysis of the control flow based on static code review; our tooling does not currently run active exploits to verify execution.

Impact

If successfully exploited, a compromised renderer could hijack active drag operations to:

  • Trigger UXSS: Injecting javascript: URLs into high-privilege surfaces such as the browser's address bar or bookmarks.
  • Bypass Site Isolation: Forcing data drops across different frames/origins.
  • Execute Arbitrary Commands: Dropping crafted terminal commands or file URIs into native external applications if the user drops the payload outside the browser.

Suggested Remediation

To remediate this issue, implement a process-global drag guard for the Ozone platform similar to the Windows implementation.

Specifically, in ui/views/widget/desktop_aura/desktop_drag_drop_client_ozone.cc, introduce a static/global boolean flag (e.g., g_is_dragging) to track active drag states across all Ozone drag-drop client instances. Implement a CHECK(!g_is_dragging) at the entry of DesktopDragDropClientOzone::StartDragAndDrop to safely abort the process or reject the request if a drag is already active globally.

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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 Linux/X11 drag implementation relies on per-window debug-only assertions instead of a process-global guard like the Windows implementation uses.

Impact

A compromised renderer could hijack an active drag to inject javascript: URLs into privileged surfaces, bypass Site Isolation, or drop crafted commands into external applications; the report notes this is a theoretical analysis not verified by running an exploit.

What the attacker needed

Compromised renderer; user starts a drag in another window; Linux/X11 platform

The fix

A process-global drag flag with a CHECK at the start of the Ozone drag client should be added, mirroring the Windows implementation.

How it was found

  1. The user starts a legitimate drag in one window, which takes selection ownership and enters a nested event loop.
  2. A compromised renderer in a second window sends a start-dragging request with custom payload data.
  3. The second window's drag client takes ownership of the X selection and grabs the pointer.
  4. When the user drops the item, the drop target receives the attacker's payload instead of the user's data.

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.

When you drag something on screen, the browser tells the operating system it is in charge of the dragged data. On Linux this code only checks per window that no drag is already running, not across the whole browser. A malicious page could start a second drag from another window and replace the data the user thinks they are dragging.

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.