Insufficient validation of untrusted input in DataTransfer (CVE-2026-13990)
Coordinate validation for drag-and-drop on Windows only checks whether the renderer-supplied location lies within the web content's screen bounds, ignoring window occlusion. A compromised renderer could spoof touch-drag coordinates so that injected OS-level mouse events land on a permission bubble and click its allow button.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 45 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: Coordinate validation for drag-and-drop on Aura fails to account for window occlusion by top-level HWNDs on Windows. A compromised renderer can potentially exploit this by spoofing touch-drag coordinates to target permission bubbles. This triggers OS-level mouse event injection that is routed to the topmost window, potentially granting sensitive permissions.
Affected files:
content/browser/web_contents/web_contents_view_aura.ccui/views/widget/desktop_aura/desktop_drag_drop_client_win.ccui/views/widget/desktop_aura/desktop_window_tree_host_win.ccui/base/win/event_creation_utils.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
A potential vulnerability exists in the coordinate validation logic of WebContentsViewAura::StartDragging that allows a compromised renderer to spoof input events on Windows. The current geometric bounds check does not account for window z-order or occlusion. On Windows, when a drag is initiated via touch, the browser injects synthetic OS-level mouse events. If the targeted coordinates are geometrically within the WebContents bounds but are occluded by a top-level permission bubble, the OS routes the injected events to the bubble, resulting in a synthetic click.
Technical Details
-
Insufficient Coordinate Validation: In
content/browser/web_contents/web_contents_view_aura.cc,StartDraggingvalidates the renderer-supplied location usingcontent_native_view->GetBoundsInScreen().Contains(event_info.location). This is a 2D geometric check that does not verify if the location is actually visible or if it is occluded by another window. Permission prompts in Chrome are separate top-level HWNDs that often overlap the content area. -
Windows Input Injection: On Windows,
DesktopDragDropClientWin::StartDragAndDrophandles touch-initiated drags by callingDesktopWindowTreeHostWin::StartTouchDrag. This function usesui::SendMouseEvent, which invokes the Windows API::SendInputto injectMOUSEEVENTF_LEFTDOWNandMOUSEEVENTF_LEFTUPevents at the specified screen coordinates. Because these are injected as system-level mouse events, the Windows OS routes them to the topmost window at that location—the permission bubble. -
Protection Bypasses: The primary defense against rapid/unintended interactions is the
InputEventActivationProtector. However, this protection is time-based (checking if interaction occurs within ~500ms of the UI showing). A compromised renderer can bypass this by simply waiting for the interval to pass before triggering the malicious IPC.
Potential Reproduction Steps
- Use a compromised renderer to request a sensitive permission (e.g., Geolocation).
- Wait for more than 500ms to bypass
InputEventActivationProtector. - Display a decoy "Tap to continue" element in the web content at a location not covered by the prompt.
- When the user touches the decoy element (satisfying the browser's
is_touch_downrequirement), the renderer sends aLocalFrameHost.StartDraggingIPC. - The IPC contains
event_info.source = kTouchandevent_info.locationset to the screen coordinates of the permission prompt's "Allow" button. - The browser processes the drag, injecting system-level mouse events that the OS routes to the permission bubble, granting the permission.
Suggested Fix
Coordinate validation in WebContentsViewAura::StartDragging should be made occlusion-aware. Before initiating a drag or injecting events, the browser should verify that the targeted coordinates actually correspond to the WebContents view and are not occluded by a top-level window. On Windows, this could involve using ::WindowFromPoint or similar APIs to ensure the target HWND matches the expected content_native_view.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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
The drag start location is validated only with a 2D bounds check that does not consider whether the point is occluded by another top-level window.
Impact
A compromised renderer could grant sensitive permissions without genuine user consent, though the attack requires a compromised renderer and a user touch on a decoy element.
What the attacker needed
Compromised renderer; Windows platform; user touches a decoy element; wait over 500ms after prompt
The fix
Coordinate validation in StartDragging should be made occlusion-aware, for example by checking with WindowFromPoint that the target window matches the content view before injecting events.
How it was found
- A compromised renderer requests a sensitive permission such as geolocation.
- It waits longer than the activation protector interval.
- It shows a decoy tap target in the page away from the prompt.
- The user touches the decoy, and the renderer sends a StartDragging IPC with touch source and the prompt's allow-button coordinates.
- The browser injects system-level mouse events that the OS routes to the permission bubble, granting the permission.
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 a web page, the browser checks that the drag started inside the page. On Windows, a touch drag makes the browser send fake mouse clicks at the drag's coordinates. The check only looks at whether the coordinates are inside the page's rectangle, not whether another window, like a permission pop-up, is sitting on top. A malicious page could therefore make the fake clicks land on the pop-up's allow button.
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.