Insufficient validation of untrusted input in Input (CVE-2026-10938)
A logic flaw in the browser's input targeting code could let a compromised renderer route mouse clicks to a previously middle-clicked cross-origin frame without translating coordinates. This could allow cross-origin input injection and bypass Site Isolation.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 50 days
Flapjack, 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 RenderWidgetTargeter could potentially allow a compromised renderer to bypass Site Isolation by forcing the browser to route input events to a previously middle-clicked cross-origin frame. By triggering an autoscroll state via Mojo, the attacker can spoof event coordinates, leading to precise cross-origin input injection.
Affected files:
components/input/render_widget_targeter.cccomponents/input/render_widget_targeter.h
Estimated timestamp from git blame: 2020-04-03
Summary
A potential logic vulnerability exists in RenderWidgetTargeter that could allow a compromised renderer process to perform cross-origin input injection, bypassing Site Isolation. By manipulating the global autoscroll state and exploiting a stale target cache, an attacker could force the browser to route mouse events (such as clicks) to an arbitrary cross-origin RenderWidgetHostViewInput that was previously middle-clicked by the user, while also spoofing the coordinates of these events.
Technical Details
The RenderWidgetTargeter class manages input event targeting within a WebContents. To support middle-click autoscrolling, it caches the initial middle-click target in the middle_click_result_ member and uses a flag is_autoscroll_in_progress_ to determine when to use this cached target.
Three key conditions combine to create this potential vulnerability:
-
Stale Target Cache: When a user middle-clicks a view, it is stored in
middle_click_result_(components/input/render_widget_targeter.cc). When autoscroll ends (or if it never started but the user middle-clicked), the cache is only cleared under specific conditions. If an attacker triggersSetIsAutoScrollInProgress(true), the code specifically does not clear the cache (it only clears it onfalse). -
Mojo-Triggered Autoscroll State: A compromised renderer can invoke
AutoscrollStartvia theblink.mojom.WidgetHostMojo interface. This setsis_autoscroll_in_progress_ = trueglobally for theRenderWidgetTargeterassociated with the tab. -
Coordinate Transformation Failure: In
RenderWidgetTargeter::ResolveTargetingRequest, whenis_autoscroll_in_progress_is true, the code bypasses standard hit-testing and resolves the target to the cachedmiddle_click_result_. Crucially, it fails to transform the event's coordinates from the root view's space to the target view's space:C++ if (is_autoscroll_in_progress_) { result.target_location = request_target_location; }Because
request_target_locationholds the root view's coordinates, assigning it directly toresult.target_locationdispatches the event to the cross-origin target view using the root view's coordinate space.
Potential Exploitation Steps
Note: Our tooling agent does not have the ability to run code, so these are potential steps an attacker would follow.
- An attacker compromises a renderer process (e.g., via a separate V8 vulnerability).
- The compromised renderer hosts a page that embeds a sensitive cross-origin iframe (e.g., an account management page).
- The attacker tricks the user into middle-clicking anywhere on the cross-origin iframe (e.g., using a transparent overlay or a fake button). This populates the browser-side
middle_click_result_cache with the iframe'sRenderWidgetHostViewInput. - The compromised renderer sends an
AutoscrollStartIPC message via Mojo to the browser process, settingis_autoscroll_in_progress_totrue. - The attacker tricks the user into left-clicking at a specific coordinate
(X, Y)relative to the main window. This coordinate corresponds to the location of a sensitive element (like a "Delete Account" button) in the iframe's local coordinate space. - The browser routes the left-click. Because
is_autoscroll_in_progress_istrue, it bypasses hit-testing, pulls the iframe frommiddle_click_result_, and forwards the click using the raw(X, Y)coordinates without translating them. - The cross-origin iframe registers a click on the sensitive element, bypassing Site Isolation protections.
Suggested Fix
- State Validation: Ensure that
RenderWidgetTargeter::SetIsAutoScrollInProgress(true)validates that a valid middle-click autoscroll sequence is genuinely active (e.g., initiated by the browser handling a middle click, rather than blindly trusting the renderer's Mojo message). - Coordinate Transformation: In
RenderWidgetTargeter::ResolveTargetingRequest, ensure that if a cached target is used,request_target_locationis properly transformed into the target view's coordinate space usingdelegate_->FindTargetSynchronouslyAtPointor similar coordinate-mapping utilities, rather than directly copying the root coordinates.
Evaluated with Chrome root at commit: c0eb5541aebfa4ea08806eaf6e94bcc69f87ab2f
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 the autoscroll path trusts a renderer-supplied Mojo message to set a global flag, then reuses a cached middle-click target and copies root-view coordinates without transforming them into the target view's space.
Impact
A compromised renderer could inject clicks into a cross-origin frame and bypass Site Isolation, though the report is explicitly potential and unverified.
What the attacker needed
Compromised renderer process; victim middle-clicks a cross-origin iframe; victim left-clicks a chosen coordinate
The fix
The autoscroll state should be validated as genuinely browser-initiated, and cached targets should have coordinates transformed into the target view's space.
How it was found
- Compromise a renderer process, for example through a separate V8 bug.
- Host a page that embeds a sensitive cross-origin iframe.
- Trick the user into middle-clicking on the cross-origin iframe so the browser caches it as the middle-click target.
- Send an AutoscrollStart message over Mojo to set the autoscroll flag to true.
- Trick the user into left-clicking at a coordinate matching a sensitive element in the iframe.
- The browser routes the click to the cached iframe using untransformed root 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 browser keeps each website in its own separate sandbox so one site cannot reach into another. This report suggests a bug where, if one site is already broken into, it could trick the browser into sending a user's click to a different site's page. That would let the attacker press buttons on another site, such as an account 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.