Incorrect authorization in Input (CVE-2026-79248)
A logic flaw in input event routing allows a compromised subframe (Guest View or Fenced Frame) to bypass main-frame restrictions and inject MouseUp events into the cross-origin embedder at attacker-controlled coordinates. This could trigger sensitive onmouseup handlers in the embedder.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 4 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 without the Chrome Security team. Please see go/chrome-ai-generated-security-bugs-faq for more information.
Overview: A logic flaw in input event routing allows Fenced Frames and Guest Views to bypass main-frame restrictions and enable autoscroll event duplication. When enabled, a MouseUp event targeting the subframe is duplicated to the embedder without reverse coordinate transformation. This allows a compromised subframe to trigger onmouseup handlers at attacker-controlled coordinates in the cross-origin embedder.
Affected files:
components/input/render_widget_host_input_event_router.cccontent/browser/renderer_host/render_widget_host_impl.cc
Estimated timestamp from git blame: 2023-12-14
Summary
A potential logic vulnerability exists in the browser's input event routing mechanism that allows a compromised renderer (specifically Guest main frames or Fenced Frame main frames) to inject cross-origin MouseUp events into its embedder. This occurs due to insufficient caller validation in RenderWidgetHostImpl::SetAutoscrollSelectionActiveInMainFrame and a coordinate transformation bug in RenderWidgetHostInputEventRouter::DispatchMouseEvent.
Technical Details
When a renderer performs an autoscroll-for-selection operation, it notifies the browser to duplicate subsequent MouseUp events to the root view. This ensures the top-level page knows the mouse was released even if it happens outside the scrolling iframe. The notification is sent via the WidgetInputHandlerHost::SetAutoscrollSelectionActiveInMainFrame Mojo message, handled by RenderWidgetHostImpl::SetAutoscrollSelectionActiveInMainFrame.
// content/browser/renderer_host/render_widget_host_impl.cc
void RenderWidgetHostImpl::SetAutoscrollSelectionActiveInMainFrame(
bool autoscroll_selection) {
// If there is no |owner_delegate|, this is not a main frame.
if (!owner_delegate()) {
mojo::ReportBadMessage(...);
return;
}
// ...
delegate_->GetInputEventRouter()->RootViewReceivesMouseUpIfNecessary(
autoscroll_selection);
}
The if (!owner_delegate()) check is intended to restrict this call to the outermost main frame. However, Guest main frames (e.g., <webview>) and Fenced Frame main frames possess their own FrameTree and RenderViewHostImpl, meaning they have a non-null owner_delegate_. This allows a compromised subframe renderer to bypass the check and set the root_view_receive_additional_mouse_up_ flag on the shared RenderWidgetHostInputEventRouter.
When a MouseUp event subsequently occurs within the compromised frame, the router duplicates the event to the root view:
// components/input/render_widget_host_input_event_router.cc
void RenderWidgetHostInputEventRouter::DispatchMouseEvent(...) {
// ...
blink::WebMouseEvent event = mouse_event;
event.SetPositionInWidget(target_location->x(), target_location->y());
target->ProcessMouseEvent(event, latency);
if (root_view_receive_additional_mouse_up_ && target != root_view &&
mouse_event.GetType() == blink::WebInputEvent::Type::kMouseUp) {
root_view->ProcessMouseEvent(event, latency);
}
}
Crucially, the event passed to root_view->ProcessMouseEvent at line 715 has already been transformed into the target subframe's local coordinate space at line 697. Because the root_view (embedder) interprets these coordinates relative to its own top-left origin, the compromised renderer can inject MouseUp events at attacker-controlled positions within the embedder. The injectible coordinates are bounded by (0 <= x <= subframe_width, 0 <= y <= subframe_height).
Potential Attack Steps
- An attacker compromises a Fenced Frame or Guest View renderer process embedded on a target site.
- The compromised renderer sends the
SetAutoscrollSelectionActiveInMainFrame(true)Mojo IPC. - The attacker positions UI elements in their subframe to entice a user click at specific local coordinates
(x, y). - When the user clicks and releases the mouse over the subframe, the browser routes the
MouseUpto the subframe normally. - Due to the manipulated flag, the browser also routes a
MouseUpevent to the embedder. - The embedder's renderer receives a
MouseUpat coordinates(x, y)relative to its own origin, potentially triggering sensitiveonmouseupevent handlers.
(Note: A full DOM click event is typically not synthesized by Blink because the embedder never received the corresponding MouseDown, limiting the impact to raw pointer/mouse release handlers.)
Suggested Fix
Validation should be tightened to ensure only the primary main frame can enable this state. A robust check would be to verify that the requesting widget is not for a child frame:
if (!owner_delegate() || GetView()->IsRenderWidgetHostViewChildFrame()) {
mojo::ReportBadMessage(...);
return;
}
Alternatively, delegate_->IsWidgetForPrimaryMainFrame(this) could be used if appropriate.
Additionally, DispatchMouseEvent should be fixed so that if an event must be duplicated to the root view, it uses coordinates transformed into the root view's coordinate space (or simply uses the original mouse_event which is already in root coordinates), rather than the target's local coordinates.
Evaluated with Chrome root at commit: 661452647ddb2827305122ff3273bd5dea403f09
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. 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 insufficient caller validation in SetAutoscrollSelectionActiveInMainFrame allows non-main frames to set a flag, and DispatchMouseEvent duplicates the event using the subframe's local coordinates instead of the root view's coordinates.
Impact
A compromised subframe could trigger onmouseup handlers in the cross-origin embedder at attacker-controlled coordinates, though a full DOM click event is typically not synthesized, limiting the impact to raw pointer/mouse release handlers.
What the attacker needed
Compromised subframe renderer; user clicks in subframe
The fix
Validation should be tightened to ensure only the primary main frame can enable this state, and DispatchMouseEvent should use coordinates transformed into the root view's coordinate space when duplicating events.
How it was found
- An attacker compromises a Fenced Frame or Guest View renderer process embedded on a target site.
- The compromised renderer sends the SetAutoscrollSelectionActiveInMainFrame(true) Mojo IPC.
- The attacker positions UI elements in their subframe to entice a user click at specific local coordinates (x, y).
- When the user clicks and releases the mouse over the subframe, the browser routes the MouseUp to the subframe normally.
- Due to the manipulated flag, the browser also routes a MouseUp event to the embedder.
- The embedder's renderer receives a MouseUp at coordinates (x, y) relative to its own origin, potentially triggering sensitive onmouseup event handlers.
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, the browser sends mouse events to the right part of the page. A security check was supposed to stop a malicious embedded frame from sending fake mouse-release events to the main page. Because the check was too loose, a compromised frame could send a mouse-release event to the main page at a position the attacker chooses, potentially triggering actions on the main page.
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.