Insufficient validation of untrusted input in Compositing (CVE-2026-7360)
A compromised renderer can supply a spoofed FrameSinkId in hit-test data, which the browser fails to validate as a descendant of the submitting frame. This allows the attacker to redirect user clicks to any cross-origin frame within the same tab, enabling invisible clickjacking against sensitive UI elements.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 36 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A compromised renderer can redirect user input events to any cross-origin frame within the same tab by supplying a spoofed FrameSinkId. The browser fails to validate that the provided FrameSinkId in hit-test data is a valid descendant in the frame tree, enabling precise invisible clickjacking against sensitive UI elements.
Affected files:
components/viz/service/hit_test/hit_test_manager.cccomponents/input/render_widget_host_input_event_router.cccomponents/input/render_widget_targeter.cc
Estimated timestamp from git blame: 2023-03-28
Summary
A logic vulnerability in Chrome's hit-testing mechanism potentially allows a compromised renderer process to redirect user input (such as mouse clicks) to any cross-origin frame within the same WebContents at coordinates of the attacker's choosing. By supplying a foreign FrameSinkId that the browser fails to validate against the frame tree, an attacker can perform "invisible clickjacking," where a user's click in the attacker's frame is delivered to a sensitive UI element in a different frame (e.g., a parent frame or a sibling OOPIF).
Root Cause
The issue stems from missing descendant validation in the hit-testing and input routing components:
HitTestManager::ValidateHitTestRegionList(components/viz/service/hit_test/hit_test_manager.cc):
When a renderer submits a HitTestRegionList, the validation logic iterates through regions but fails to ensure that each region->frame_sink_id is actually a descendant of the submitting surface's FrameSinkId. A TODO in the code explicitly notes this gap: // TODO(gklassen): Ensure that |region->frame_sink_id| is a child of |frame_sink_id|. (line 138). If the client_id is non-zero, it is passed through without being rewritten to the renderer's own ID.
RenderWidgetHostInputEventRouter::FindViewFromFrameSinkId(components/input/render_widget_host_input_event_router.cc):
This function resolves a FrameSinkId to a view using a flat owner_map_ which is scoped per WebContents. It does not perform any tree-position checks to verify that the resolved view is a valid target for the frame that initiated the hit-test response.
Potential Attack Vectors
Please note: These are suggested steps, as our setup does not yet have the ability to run code to produce a working proof-of-concept.
Sync-path Variant:
- An attacker with a compromised renderer hosts an OOPIF on a page containing a victim frame.
- The attacker crafts a
HitTestRegionwithin itsHitTestRegionListcovering its bounds. - The attacker sets
flagstokHitTestMine | kHitTestMouse(unsettingkHitTestAskandkHitTestChildSurface). - The
frame_sink_idis set to theFrameSinkIdof the victim frame. - The
transformis set to a matrix mapping the user's click coordinates within the attacker's frame to specific coordinates in the victim frame's space. - Because
kHitTestAskis unset, the browser processes this region as a leaf target. When the user clicks within the attacker's bounds,HitTestQuery::FindTargetInRegionForLocationreturns the attacker-supplied foreignFrameSinkIdand transformed coordinates. RenderWidgetHostInputEventRouter::FindViewAtLocationresolves the target via the uncheckedowner_map_and dispatches the click to the victim frame.
Async-path Variant:
In cases requiring asynchronous hit-testing, the InputTargetClient::FrameSinkIdAt IPC response from the renderer returns a FrameSinkId and a local_point. RenderWidgetTargeter::FoundFrameSinkId calls FindViewFromFrameSinkId using this renderer-supplied ID without validating that it belongs to a descendant. This allows the renderer to direct the input event to any view within the same tab.
Impact
This is a potential Site Isolation bypass for user-input routing. An attacker can precisely deliver trusted input events to cross-origin frames without needing to position the victim frame under the cursor or use visual overlays. This can be used to trigger sensitive actions, such as clicking payment buttons, permission prompts, or OAuth consent buttons, provided the attacker can predict or discover the target's FrameSinkId and the user interacts with the attacker's frame.
Suggested Fix
- In
HitTestManager::ValidateHitTestRegionList, implement the missing validation logic to ensure that everyFrameSinkIdspecified in aHitTestRegionis a legitimate descendant of the submittingSurfaceId'sFrameSinkId. - Similarly, validate the
FrameSinkIdreturned via the asynchronousInputTargetClient::FrameSinkIdAtIPC inRenderWidgetTargeter::FoundFrameSinkIdor the caller, verifying it against the frame tree topology before routing events to it.
Evaluated with Chrome root at commit: bb48272cafb7e24c93f55ef40da398cd206ee651
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
Likely the hit-testing and input routing components lack validation that a renderer-supplied FrameSinkId belongs to a descendant of the submitting frame, as noted by a TODO comment in the code.
Impact
This is a potential Site Isolation bypass for user-input routing, allowing an attacker to deliver trusted input events to cross-origin frames and trigger sensitive actions, provided the attacker can predict or discover the target's FrameSinkId and the user interacts with the attacker's frame.
What the attacker needed
Compromised renderer; user interacts with attacker's frame; attacker knows victim FrameSinkId
The fix
The fix should implement validation to ensure that every FrameSinkId in a HitTestRegion is a legitimate descendant of the submitting SurfaceId's FrameSinkId, and similarly validate the FrameSinkId returned via the asynchronous InputTargetClient::FrameSinkIdAt IPC.
How it was found
- An attacker with a compromised renderer hosts an OOPIF on a page containing a victim frame.
- The attacker crafts a HitTestRegion within its HitTestRegionList covering its bounds.
- The attacker sets flags to kHitTestMine | kHitTestMouse (unsetting kHitTestAsk and kHitTestChildSurface).
- The frame_sink_id is set to the FrameSinkId of the victim frame.
- The transform is set to a matrix mapping the user's click coordinates within the attacker's frame to specific coordinates in the victim frame's space.
- Because kHitTestAsk is unset, the browser processes this region as a leaf target and dispatches the click to the victim frame.
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 on a web page, the browser uses a hit-testing system to figure out which part of which frame should receive the click. This report found that a malicious renderer process (the part of the browser that draws a page) could lie about which frame should get the click, sending it to a different frame without the user's knowledge. That could let an attacker trick a user into clicking buttons in another site, like a payment or permission prompt.
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.