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

Incorrect authorization in TabStrip (CVE-2026-84335)

A nested run loop in the tab-detach path processes renderer messages before the global drag-suppression guard is set, so a compromised renderer could start its own drag session during that window. This could let it take over the user's pointer grab and drop an attacker-controlled payload, or crash the browser on Wayland.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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: A potential vulnerability in TabDragController allows a compromised renderer to hijack an active tab-drag gesture. When a tab is detached into a new window under the kInitialWebUI feature, a nested RunLoop spins before global drag-suppression guards are set. An attacker can potentially exploit this window of opportunity to release the user's active mouse grab and substitute an attacker-controlled drag-and-drop payload.

Affected files:

  • chrome/browser/ui/views/tabs/dragging/tab_drag_controller.cc
  • ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc
  • ui/views/widget/desktop_aura/desktop_drag_drop_client_ozone.cc
  • ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc

Estimated timestamp from git blame: 2026-04-01

Summary

We have identified a potential gesture-hijack vulnerability in TabDragController where a compromised renderer can potentially intercept and hijack an active user tab-drag gesture.

When a user drags a tab to detach it into a new window, if the kInitialWebUI feature is enabled (which is currently active in the WebUIReloadButtonStudy field trial on Linux, macOS, and Windows), the browser process temporarily spins a nested base::RunLoop of type kNestableTasksAllowed inside VisibilityWaiter::Wait() while awaiting the first paint. Because this nested loop runs before the platform's native window-movement loop begins, the global re-entrancy prevention guard g_is_dragging has not yet been set. A compromised renderer can potentially exploit this timing window to request a new drag-and-drop session, hijacking the user's active pointer grab or triggering a browser crash.

Note: Since our security evaluation tooling does not have the ability to execute code, these are potential steps and analysis based on first-principles inspection of the source code.

Technical Analysis

When a tab is detached, TabDragController::DetachIntoNewBrowserAndRunMoveLoop is invoked:

C++
// chrome/browser/ui/views/tabs/dragging/tab_drag_controller.cc
if (base::FeatureList::IsEnabled(features::kInitialWebUI)) {
  if (!dragged_widget->IsVisible()) {
    current_state_ = DragState::kWaitingForWindowToShow;
    VisibilityWaiter waiter(dragged_widget);
    base::WeakPtr<TabDragController> ref(weak_factory_.GetWeakPtr());
    waiter.Wait();                              // Pumps Mojo IPCs via nestable run loop
    if (!ref) { return Liveness::kDeleted; }
    current_state_ = DragState::kDraggingWindow;
  }
}

Inside VisibilityWaiter, a nested run loop is started:

C++
class VisibilityWaiter : public views::WidgetObserver {
  ...
  void Wait() { run_loop_.Run(); }
  base::RunLoop run_loop_{base::RunLoop::Type::kNestableTasksAllowed};
};

Because the nested loop permits nested tasks, the UI thread processes incoming Mojo messages.

Normally, when the browser enters a window-move loop, DesktopWindowTreeHostPlatform::RunMoveLoop instantiates ScopedSuppressForWindowMove() to set g_is_dragging = true globally, preventing renderer-initiated drag-and-drop:

C++
// ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc
Widget::MoveLoopResult DesktopWindowTreeHostPlatform::RunMoveLoop(...) {
  auto suppress_data_drag =
      DesktopDragDropClientOzone::ScopedSuppressForWindowMove();
  ...
}

However, because VisibilityWaiter::Wait() spins before RunMoveLoop is reached, g_is_dragging remains false.

Exploit Mechanism

  1. A compromised renderer in another visible window (e.g., W2) issues a LocalFrameHost::StartDragging Mojo IPC.
  2. The browser UI thread dispatches the IPC while blocked inside waiter.Wait(), leading to WebContentsViewAura::StartDragging (in content/browser/web_contents/web_contents_view_aura.cc).
  3. Since the attacker-controlled window W2 does not have an active webpage-initiated drag session, drag_security_info_.did_initiate() returns false, bypassing the WebContents re-entrancy check.
  4. The request reaches DesktopDragDropClientOzone::StartDragAndDrop (or DesktopDragDropClientWin::StartDragAndDrop). Since g_is_dragging is false, the re-entrancy checks pass.
  5. On Ozone/X11 or Windows:
    • The platform client releases the user's active tab-drag pointer capture (capture_window->ReleaseCapture()) and initiates a new system drag session, hijacking the physical pointer grab.
    • When the user releases the mouse button, the attacker's custom drag-and-drop payload (such as a javascript: URL) is dropped onto the drop target.
  6. On Ozone/Wayland:
    • Registering a new drag delegate while a drag session is active triggers a browser crash due to CHECK(!drag_delegate_) in ui/ozone/platform/wayland/host/wayland_data_device.cc:48.

Potential Steps to Trigger

  1. Ensure the kInitialWebUI feature is active (e.g., by launching with --enable-features=InitialWebUI).
  2. Compromise a renderer process and open a second top-level visible window W2.
  3. Have the user initiate a tab-detach gesture.
  4. While the tab-drag widget is waiting to show itself (inside VisibilityWaiter::Wait()), the compromised renderer sends a LocalFrameHost::StartDragging IPC message.
  5. The browser processes the drag request, releasing pointer capture from the tab-drag widget and binding the active pointer grab to the attacker's new drag-and-drop session or triggering a crash.

Suggested Fix

To mitigate this potential issue, we should prevent renderer-initiated drags from being processed while TabDragController is in a waiting state, or instantiate the suppression scoper earlier.

One potential fix is to instantiate ScopedSuppressForWindowMove inside TabDragController::DetachIntoNewBrowserAndRunMoveLoop prior to executing waiter.Wait() to suppress incoming drag-and-drop requests during the paint delay window.

Evaluated with Chrome root at commit: b2fea2e31df308d0f04e4ae47def4c4f939ee141


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-suppression guard is only set when the native window-move loop starts, but a nestable run loop that pumps renderer messages runs earlier, leaving a window where renderer-initiated drags are accepted.

What the attacker needed

Compromised renderer process; kInitialWebUI feature enabled; victim starts a tab-detach drag

The fix

The suppression scoper should be created before the visibility wait, or renderer-initiated drags should be refused while the controller is waiting.

How it was found

  1. Enable the kInitialWebUI feature so the detach path waits for first paint.
  2. Compromise a renderer and open a second visible top-level window.
  3. Have the user start dragging a tab to detach it.
  4. While the drag widget waits to become visible, send a StartDragging message from the compromised renderer.
  5. The browser releases the tab-drag pointer capture and binds the grab to the attacker's drag session, or crashes on Wayland.

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 browser tab out to make a new window, the browser briefly waits for that window to appear. During that short wait it still listens to messages from web pages. A page that has already been taken over by an attacker could use that moment to start its own drag-and-drop, grabbing control of your mouse and dropping something of its choosing.

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.