Improper input validation in FindInPage (CVE-2026-79272)
A bounds check in the browser process only verified that a renderer-supplied rectangle intersected the sender's view, while the later hit-test used the rectangle's centre point. A compromised cross-origin renderer could therefore place that centre at arbitrary main-frame coordinates and infer the presence and size of layout elements there.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: An incomplete validation check in RenderWidgetHostImpl::ZoomToFindInPageRectInMainFrame may allow a compromised cross-origin renderer to bypass viewport bounds checks. By providing a specifically sized, extremely large rectangle, the renderer can pass the Intersects validation check while placing its center point at arbitrary coordinates in the parent frame. This can potentially leak cross-origin layout presence and dimensions through observable page scale or scroll changes.
Affected files:
content/browser/renderer_host/render_widget_host_impl.cc
Estimated timestamp from git blame: 2026-04-09
Root Cause Analysis
In RenderWidgetHostImpl::ZoomToFindInPageRectInMainFrame (located in content/browser/renderer_host/render_widget_host_impl.cc), the browser validates that the renderer-supplied rect_to_zoom overlaps with the sender's view bounds to prevent cross-origin hit-testing:
void RenderWidgetHostImpl::ZoomToFindInPageRectInMainFrame(
const gfx::Rect& rect_to_zoom) {
if (!view_) {
return;
}
gfx::Rect view_local_bounds(view_->GetViewBounds().size());
if (!view_local_bounds.IsEmpty() &&
!view_local_bounds.Intersects(rect_to_zoom)) {
return;
}
...
However, the validation only ensures that the rect intersects the view bounds. The downstream hit-test in the main-frame renderer (WebViewImpl::ZoomToFindInPageRect in third_party/blink/renderer/core/exported/web_view_impl.cc) uses the center point of the transformed rect, rather than the entire rect bounds.
By supplying an extremely large rect that overlaps its own local view bounds (e.g., at the subframe's local origin (0,0)) but has its center point placed at arbitrary main-frame coordinates, a compromised subframe renderer can bypass this check. The unclipped rect is transformed to the root view and forwarded directly to the main-frame renderer, leaving the target center point intact.
Potential Downstream Execution & Oracle Mechanism
Once the main frame receives the request, it executes a hit-test via WebViewImpl::ZoomToFindInPageRect:
void WebViewImpl::ZoomToFindInPageRect(const gfx::Rect& rect_in_root_frame) {
DCHECK(MainFrameImpl());
gfx::Rect block_bounds =
MainFrameImpl()->FrameWidgetImpl()->ComputeBlockBound(
gfx::Point(rect_in_root_frame.x() + rect_in_root_frame.width() / 2,
rect_in_root_frame.y() + rect_in_root_frame.height() / 2),
true); // ignore_clipping = true
...
Since ignore_clipping is true, the hit-test ignores visual viewport restrictions. A subframe could potentially probe the main frame using these steps:
- Calculate target coordinates $(P_x, P_y)$ in the main frame.
- Construct an unconstrained
rect_to_zoomsuch that it contains the subframe's own local origin but centers at the targeted coordinates. - Send the Mojo IPC message
ZoomToFindInPageRectInMainFrame(rect_to_zoom)to the browser. - Observe whether a layout zoom or scroll animation is triggered (e.g., via
IntersectionObserveror resizing events in the subframe) to infer the presence and size of containing block elements at the probed coordinates.
Note: These steps are based on static analysis of the coordinate transformations and validation paths; our automated security analysis tools do not currently have the capability to execute interactive exploitation code to confirm runtime behavior.
Suggested Remediation
To address this potential leak, the browser process should constrain the sender-provided rect to its local view bounds before transformation. This can be achieved by explicitly intersecting or clipping rect_to_zoom with view_local_bounds, or by verifying that the rect is fully contained within the view bounds using Contains() rather than Intersects():
if (!view_local_bounds.IsEmpty() &&
!view_local_bounds.Contains(rect_to_zoom)) {
return;
}
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
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 validation used an intersection test on the whole rectangle while the downstream hit-test used only the rectangle's centre, so an oversized rectangle could pass the check with its centre outside the sender's bounds.
Impact
A compromised renderer could potentially leak cross-origin layout presence and dimensions; the report is based on static analysis only and the behaviour was not confirmed at runtime.
What the attacker needed
Compromised renderer process; static analysis only, not confirmed
The fix
The browser should clip the supplied rectangle to the sender's view bounds, or require full containment rather than mere intersection, before transforming it.
How it was found
- Pick target coordinates in the main frame.
- Build an oversized rectangle that contains the subframe's own origin but is centred on the target.
- Send the zoom-to-find-in-page message to the browser.
- Watch for a zoom or scroll change to infer what sits at the target.
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 frames from other sites, and the browser is supposed to stop one frame from learning about another site's content. Here a check only asked whether a rectangle overlapped the frame's own area, but the code that followed used the rectangle's middle point, which could sit anywhere. So a malicious frame could probe where things sit on the page and guess their size.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.