Incorrect authorization in Views (CVE-2026-87644)
Chrome's Windows non-client mouse handler defers processing of a title-bar click-hold, leaving native move/resize loop flags unset. A compromised renderer can then start an arbitrary drag-and-drop session with attacker-controlled payload while the user holds the title bar, potentially dropping that payload onto another application or the bookmarks bar.
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: Chrome's Windows non-client mouse handler defers processing WM_NCLBUTTONDOWN for HTCAPTION until a mouse move occurs to keep the UI responsive during a click-hold. During this deferral, neither the native move-resize loop nor menu loop flags are set, which allows a compromised renderer to bypass drag guards. An attacker can initiate an arbitrary drag-and-drop session with controlled payload while the user is click-holding the title bar.
Affected files:
ui/views/win/hwnd_message_handler.ccui/views/widget/desktop_aura/desktop_drag_drop_client_win.ccui/views/win/hwnd_message_handler.h
Estimated timestamp from git blame: 2015-12-11
Root Cause Analysis
When a user left-clicks and holds on the title bar (caption area) of a top-level Chrome window on Windows, the message WM_NCLBUTTONDOWN with wParam == HTCAPTION is generated. To keep page and Mojo dispatch responsive during a click-hold, HWNDMessageHandler::HandleMouseInputForCaption deliberately intercepts and handles this message:
// ui/views/win/hwnd_message_handler.cc
case WM_NCLBUTTONDOWN: {
if (w_param == HTCAPTION) {
left_button_down_on_caption_ = true;
caption_left_button_click_pos_.set_x(CR_GET_X_LPARAM(l_param));
caption_left_button_click_pos_.set_y(CR_GET_Y_LPARAM(l_param));
handled = true; // DefWindowProc is NOT called here
}
break;
}
Because handled is set to true, the default window procedure (::DefWindowProc) is suppressed. As a result, the OS does not enter the native move/resize loop, meaning:
WM_ENTERSIZEMOVEis never dispatched.WM_MOVINGandWM_SIZINGdo not fire, leavingg_in_move_resize_loopset tofalseinUserResizeMoveDetector.menu_depth_remains0as no menu loop is entered.
The ordinary UI message pump continues to run normally and processes Mojo IPCs from the renderer.
Normally, DesktopDragDropClientWin::StartDragAndDrop relies on desktop_host_->IsInNativeMoveResizeLoop() to reject dragging requests if the user is in the middle of a window drag or resize operation. However, during the HTCAPTION hold deferral, IsInNativeMoveResizeLoop() returns false since none of the native loops have technically started yet, and the private flag left_button_down_on_caption_ is not checked by the drag client. This allows the compromised renderer to successfully start an OLE drag-and-drop loop via ::DoDragDrop.
Since the physical mouse button is still held down by the user, DragSourceWin::QueryContinueDrag returns S_OK to continue dragging. When the user moves the mouse (intending to move the window), they instead drag the attacker-supplied payload and drop it wherever they release the button.
Potential Attack Path
Note: These are potential steps as our tooling agent does not currently have the ability to execute code and we do not have a working proof of concept.
- The user left-clicks and holds (without moving) on the empty caption/title bar of any Chrome window.
HWNDMessageHandler::HandleMouseInputForCaptionhandles the message, setsleft_button_down_on_caption_ = true, and suppresses the default window procedure. The ordinary UI message pump continues running.- While the button is held, a compromised renderer sends a Mojo message
LocalFrameHost::StartDraggingcontaining an attacker-controlled payload (e.g., ajavascript:URL bookmarklet or a virtual file) withevent_info.sourceset tokMouse. - The browser process receives this and calls
WebContentsViewAura::StartDragging. The renderer satisfies the bounds check by supplying a coordinate location inside its own visible WebContents. WebContentsViewAura::StartDraggingcallsDesktopDragDropClientWin::StartDragAndDrop.- The client evaluates
IsInNativeMoveResizeLoop(), which returnsfalsebecause no native move/resize or menu loops are active, bypassing the drag guards. ::DoDragDropis called with the attacker payload. The user’s hold keeps the drag active viaQueryContinueDragreturningS_OKforMK_LBUTTON.- The user moves and releases the mouse, dropping the attacker-controlled payload onto an arbitrary drop target (such as Windows Explorer, another Chrome window, or the bookmarks bar).
Suggested Remediation
To prevent this bypass, DesktopDragDropClientWin::StartDragAndDrop should reject mouse-initiated drag requests unless the browser has itself observed a left-button press captured within the initiating WebContents (similar to how touch drags are verified via is_touch_down()). Alternatively, HWNDMessageHandler should expose the state of left_button_down_on_caption_ so it can be OR'ed into the IsInNativeMoveResizeLoop() guard predicate in DesktopWindowTreeHostWin::IsInNativeMoveResizeLoop().
Evaluated with Chrome root at commit: 3947e01999a53d4e2382e39736cb79d79c7dffcf
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 caption click-hold handler suppresses the default window procedure, so the native move/resize loop never starts and the drag guard that checks for that loop returns false, allowing a renderer-initiated drag.
Impact
A compromised renderer could start a drag-and-drop with attacker-controlled content while the user holds the title bar, and the user might drop that content onto another application or the bookmarks bar; the report notes no working proof of concept was executed.
What the attacker needed
Compromised renderer; user holds title bar; user moves and releases mouse
The fix
The drag client should reject mouse-initiated drag requests unless the browser has observed a left-button press within the initiating WebContents, or the caption-hold state should be included in the native move/resize loop guard.
How it was found
- The user left-clicks and holds on the empty caption/title bar of a Chrome window.
- The caption handler sets a flag and suppresses the default window procedure, while the normal message pump keeps running.
- A compromised renderer sends a StartDragging message with an attacker-controlled payload.
- The browser calls StartDragging, which calls the desktop drag-drop client.
- The drag client checks for a native move/resize loop, gets false, and bypasses the drag guard.
- The drag-and-drop loop starts, and the user's held button keeps it active until they move and release the mouse, dropping the 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 click and hold the title bar of a window, the operating system normally enters a special mode for moving the window. This report says Chrome skips that mode in a way that lets a malicious webpage, if it has already broken out of its sandbox, start a drag-and-drop operation with content the attacker chooses. The user, still holding the mouse button, might then accidentally drop that content somewhere harmful.
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.