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.ccui/views/widget/desktop_aura/desktop_window_tree_host_platform.ccui/views/widget/desktop_aura/desktop_drag_drop_client_ozone.ccui/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:
// 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:
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:
// 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
- A compromised renderer in another visible window (e.g., W2) issues a
LocalFrameHost::StartDraggingMojo IPC. - The browser UI thread dispatches the IPC while blocked inside
waiter.Wait(), leading toWebContentsViewAura::StartDragging(incontent/browser/web_contents/web_contents_view_aura.cc). - Since the attacker-controlled window W2 does not have an active webpage-initiated drag session,
drag_security_info_.did_initiate()returnsfalse, bypassing the WebContents re-entrancy check. - The request reaches
DesktopDragDropClientOzone::StartDragAndDrop(orDesktopDragDropClientWin::StartDragAndDrop). Sinceg_is_draggingisfalse, the re-entrancy checks pass. - 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.
- The platform client releases the user's active tab-drag pointer capture (
- On Ozone/Wayland:
- Registering a new drag delegate while a drag session is active triggers a browser crash due to
CHECK(!drag_delegate_)inui/ozone/platform/wayland/host/wayland_data_device.cc:48.
- Registering a new drag delegate while a drag session is active triggers a browser crash due to
Potential Steps to Trigger
- Ensure the
kInitialWebUIfeature is active (e.g., by launching with--enable-features=InitialWebUI). - Compromise a renderer process and open a second top-level visible window W2.
- Have the user initiate a tab-detach gesture.
- While the tab-drag widget is waiting to show itself (inside
VisibilityWaiter::Wait()), the compromised renderer sends aLocalFrameHost::StartDraggingIPC message. - 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.
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
- Enable the kInitialWebUI feature so the detach path waits for first paint.
- Compromise a renderer and open a second visible top-level window.
- Have the user start dragging a tab to detach it.
- While the drag widget waits to become visible, send a StartDragging message from the compromised renderer.
- 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.