Insufficient validation of untrusted input in Input (CVE-2026-9124)
A compromised renderer in a fenced frame or out-of-process iframe can send an unvalidated IPC to capture all mouse events from its embedder tab. This allows the attacker to observe user interaction coordinates outside its own bounds, enabling cross-site information disclosure and UI redressing.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 52 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A compromised renderer (e.g., a Fenced Frame or OOPIF) can potentially use the unvalidated WidgetInputHandlerHost::SetMouseCapture(true) Mojo IPC to capture all mouse events globally across its embedder's tab. Because these frames share a single RenderWidgetHostInputEventRouter with their embedder and coordinate transforms are not clamped, the attacker can observe user interactions outside its own bounds.
Affected files:
content/browser/renderer_host/render_widget_host_impl.cccomponents/input/render_widget_host_input_event_router.cccontent/browser/fenced_frame/fenced_frame.cc
Estimated timestamp from git blame: 2024-05-28
Summary
A potential vulnerability exists where a compromised renderer (such as an out-of-process iframe or a fenced frame) can hijack all mouse events (clicks, drags, moves) from its embedder. This is due to a lack of validation in the RenderWidgetHostImpl::SetMouseCapture IPC handler combined with the fact that these subframes share a single RenderWidgetHostInputEventRouter with their parent WebContentsImpl.
Technical Details
-
Shared Input Event Router: Fenced frames and OOPIFs are constructed such that their
render_widget_delegateleads back to the embedder'sWebContentsImpl(e.g.,content/browser/fenced_frame/fenced_frame.cc:61). Consequently,WebContentsImpl::GetInputEventRouter()returns a singleRenderWidgetHostInputEventRouterinstance that is shared across the entire frame tree. -
Unvalidated SetMouseCapture: A compromised renderer can send the
WidgetInputHandlerHost::SetMouseCapture(true)Mojo IPC at any time. The browser'sRenderWidgetHostImpl::SetMouseCaptureperforms no validation to ensure that the calling renderer is authorized to capture mouse events (e.g., verifying it currently has an active pointer down). It unconditionally callsSetMouseCaptureTargeton the shared input event router with the attacker's own view as the target. -
Event Routing Hijack: When the user clicks anywhere on the embedder page,
RenderWidgetHostInputEventRouter::FindMouseEventTargetdetermines the target. Becausemouse_capture_target_is set to the attacker's view andIsMouseButtonDown(event)is true forMouseDownevents, the router bypasses normal hit-testing and redirects the event to the attacker. -
Unclamped Coordinates: The event's coordinates are transformed into the attacker's local coordinate space using
TransformPointToCoordSpaceForView. Crucially, this transformation performs matrix math but does not clamp the resulting coordinates to the bounds of the capturing view. As a result, the attacker receives negative coordinates or coordinates exceeding their frame size, revealing the exact location of the user's interaction globally across the embedder page.
While DispatchMouseEvent clears capture on buttonless MouseMove events, an attacker can maintain capture by repeatedly calling the SetMouseCapture IPC, exploiting the typical timing gap between mouse movement and a user click.
Impact
This behavior violates the isolation guarantees of fenced frames and Site Isolation for out-of-process iframes. A compromised renderer can observe user interaction coordinates and drag paths outside its own boundaries, enabling cross-site information disclosure and facilitating UI redressing or clickjacking attacks.
Suggested Exploit Steps (Theoretical)
Note: These are theoretical steps, as we do not yet have the ability to run code to confirm them.
- Load a page containing a
<fencedframe>or OOPIF pointing to an attacker-controlled site. - From the subframe's compromised renderer, repeatedly invoke the
WidgetInputHandlerHost::SetMouseCapture(true)Mojo IPC. - The user clicks anywhere on the embedder page outside the subframe's area.
- The subframe's view receives the
MouseDownevent (along with subsequent dragMouseMoveandMouseUpevents), revealing the exact interaction coordinates relative to its origin.
Suggested Fix
There are two main areas to address:
- Validation: Validate the
SetMouseCapturerequest on the browser side before callingSetMouseCaptureTarget. The browser should verify that the requesting renderer actually has an active pointer down (or is otherwise authorized to capture) before granting capture. - Clamping: Ensure that coordinates sent to a capturing frame during
FindMouseEventTargetand subsequent dispatch are clamped to the bounds of that frame'sRenderWidgetHostView, preventing the leakage of global coordinate data.
Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. Please feel free to reach out to me if you have concerns or feedback.
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 browser does not validate that a renderer requesting mouse capture is authorised to do so, and it does not clamp the coordinates of captured events to the capturing frame's bounds.
Impact
A compromised renderer could observe user interaction coordinates and drag paths outside its own boundaries, enabling cross-site information disclosure and facilitating UI redressing or clickjacking attacks.
What the attacker needed
Attacker controls a fenced frame or OOPIF; victim interacts with the embedder page
The fix
The browser should validate that the requesting renderer has an active pointer down before granting mouse capture, and clamp coordinates to the capturing frame's bounds.
How it was found
- Load a page containing a fenced frame or out-of-process iframe pointing to an attacker-controlled site.
- From the subframe's compromised renderer, repeatedly invoke the SetMouseCapture IPC.
- The user clicks anywhere on the embedder page outside the subframe's area.
- The subframe receives the mouse down event and subsequent drag and up events, revealing the exact interaction coordinates.
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.
A web page can contain smaller embedded pages, like a fenced frame or an out-of-process iframe, which are supposed to be isolated from the main page. This report says that if an attacker controls such an embedded page, they can trick the browser into sending them all mouse clicks and movements from the main page, even those outside the embedded area. That lets the attacker learn where the user is clicking and potentially overlay fake buttons.
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.