Skip to content
UI spoofing Advisory Advanced CVE-2026-95371

Missing authorization in Views (CVE-2026-95371)

During a macOS tab-detach drag, the browser enters a nested event loop that still dispatches Mojo IPC from renderers. A compromised renderer in another visible tab could start its own native drag session, hijacking the user's mouse grab so the user drops the attacker's payload on an external target.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The macOS tab-detach window-move loop runs a nested C++ RunLoop that can process incoming Mojo IPCs from compromised renderers. An attacker-controlled renderer in any visible WebContents can potentially trigger an OS-level drag session with an arbitrary payload while a user tab drag is active. This allows the attacker to hijack the active mouse grab and force the user to drop a malicious payload onto external drop targets.

Affected files:

  • components/remote_cocoa/app_shim/window_move_loop.mm
  • content/browser/web_contents/web_contents_view_mac.mm
  • content/app_shim_remote_cocoa/web_contents_view_cocoa.mm
  • content/app_shim_remote_cocoa/web_contents_ns_view_bridge.mm

Estimated timestamp from git blame: 2016-06-17

Detailed Description

There is a potential gesture-hijack vulnerability on macOS during tab-detaching window dragging operations. When a user drags a tab off the tab strip to detach it into a new window, the browser process enters a nested event loop driven by CocoaWindowMoveLoop::Run (components/remote_cocoa/app_shim/window_move_loop.mm).

Because this nested C++ loop is entered directly from native event dispatching ([NSApp sendEvent:]) rather than inside an active DoWork scheduler task, the browser process scheduler's main_thread_only().task_execution_allowed remains true. As a result, the nested Type::kDefault base::RunLoop does not prevent the dispatching of Mojo IPC messages (which are executed as application tasks).

Consequently, a compromised renderer in any visible WebContents can potentially invoke the LocalFrameHost::StartDragging Mojo IPC. Since the browser-level tab drag does not set the per-WebContents drag_source_start_rwh_ guard for other tabs, the reentrancy check in WebContentsViewMac::StartDragging is successfully bypassed. This allows the attacker-controlled renderer to programmatically initiate a native Cocoa dragging session (beginDraggingSessionWithItems:) using synthesized events. The macOS WindowServer then shifts the active physical mouse drag stream to the new dragging session, freezing the tab drag and forcing the user to inadvertently drop the attacker's payload when they release the mouse button.

Note: These are potential steps. Our tooling does not yet have the capability to run code or execute a functional proof of concept on macOS.

Potential Trigger Steps

  1. The user left-clicks a tab and drags it to detach it, causing TabDragController to enter the native move loop via CocoaWindowMoveLoop::Run().
  2. Simultaneously, a compromised renderer in a second visible tab sends a LocalFrameHost::StartDragging Mojo IPC with a custom payload (e.g., text, HTML, or file promises).
  3. The browser process receives and dispatches this IPC within the nested RunLoop.
  4. WebContentsViewMac::StartDragging receives the request. Since its local drag_source_start_rwh_ is null, it passes the reentrancy check and routes the drag to AppKit.
  5. WebContentsViewCocoa synthesizes a mouse-dragged event and calls beginDraggingSessionWithItems:event:source:.
  6. The macOS WindowServer transfers the physical drag state to the new session. The user's physical mouse-up action completes the drop of the attacker's payload onto whatever OS target is under the cursor.

Suggested Fix

To address this issue, introduce a process-global drag-reentrancy or move-loop guard on macOS, similar to the existing desktop guards on other platforms:

  • On Windows, DesktopDragDropClientWin checks desktop_host_->IsInNativeMoveResizeLoop() before starting a drag.
  • On Ozone, a process-global g_is_dragging flag is evaluated and set in DesktopDragDropClientOzone.

A similar global tracking mechanism should be implemented in NativeWidgetNSWindowBridge or CocoaWindowMoveLoop to reject incoming StartDragging requests from any WebContents while a window move loop is actively running on macOS.

Evaluated with Chrome root at commit: e9507a33bb4148ee071aaaf8a7e9ad68770359bf


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 nested Cocoa move loop runs outside a scheduler task, so Mojo IPC is still dispatched, and the per-WebContents drag guard does not cover other tabs, letting a second renderer start a drag mid-move.

Impact

A compromised renderer could force the user to drop an attacker-chosen payload onto an external drop target; the report notes no working proof of concept was run, so this is unconfirmed.

What the attacker needed

MacOS; compromised renderer; user drags a tab to detach it; another visible tab is open

The fix

A process-global drag-reentrancy or move-loop guard should be added on macOS to reject StartDragging requests while a window move loop is running.

How it was found

  1. The user drags a tab to detach it, entering the native move loop.
  2. A compromised renderer in another visible tab sends a StartDragging IPC with a payload.
  3. The browser dispatches the IPC inside the nested run loop.
  4. The drag request passes the reentrancy check because the local guard is null.
  5. AppKit begins a new dragging session with a synthesised event.
  6. The WindowServer moves the physical drag to the new session, so the user's mouse-up drops the attacker's payload.

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 a tab off the tab strip on a Mac, the browser is busy handling that drag. The report says a malicious web page running in another tab could sneak in a request to start its own drag at the same moment. That could make your mouse release drop the attacker's content, such as text or a file, onto whatever is under your cursor.

What is UI spoofing?

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.