Skip to content
Access control Advisory Advanced CVE-2026-17794

Insufficient validation of untrusted input in Mobile (CVE-2026-17794)

The browser process did not validate the range of top-controls metadata sent by the renderer, allowing a compromised renderer to move the URL bar off-screen. An attacker could then paint a fake origin in the web content, spoofing any site.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 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: A potential URL bar spoofing vulnerability exists in Chrome for Android where a compromised renderer can move the authoritative browser UI off-screen. This is due to a lack of range validation for top-controls metadata in the browser process. An attacker can use this to hide the real URL bar and paint a fake origin in the web content.

Affected files:

  • chrome/android/java/src/org/chromium/chrome/browser/fullscreen/BrowserControlsManager.java
  • content/browser/renderer_host/render_widget_host_view_android.cc
  • cc/mojom/render_frame_metadata_mojom_traits.cc
  • chrome/browser/browser_controls/android/java/src/org/chromium/chrome/browser/browser_controls/TopControlsStacker.java
  • chrome/browser/android/compositor/layer/toolbar_layer.cc
  • chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/StaticLayout.java
  • chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.cc

Estimated timestamp from git blame: 2018-05-15

Summary

A compromised renderer process can potentially perform a complete URL bar and origin spoof on Chrome for Android. By providing crafted cc::mojom::RenderFrameMetadata values, an attacker can displace the security-critical browser-rendered URL bar off-screen while positioning malicious web content in its place. This is possible because the browser process does not adequately validate the range or sanity of renderer-supplied control offsets.

Vulnerability Details

The vulnerability exists in the handling of top-controls metadata sent from the renderer to the browser:

  1. Missing Mojo Validation: In cc/mojom/render_frame_metadata_mojom_traits.cc, the top_controls_height and top_controls_shown_ratio fields are deserialized as raw floats without range checks. A compromised renderer can provide extreme or negative values.

  2. Malformed Offset Calculation (C++): In content/browser/renderer_host/render_widget_host_view_android.cc, the browser calculates a translation offset (top_translate) using the formula: top_translate = (top_controls_height * top_controls_shown_ratio) - top_controls_height. By supplying a large negative height (e.g., -10000.0) and a zero ratio, a renderer triggers a large positive offset (+10000.0).

  3. Incomplete Clamping (Java): This malformed offset is passed via JNI to BrowserControlsManager.java. In the setPositionsForTab method, the code applies a lower-bound clamp (Math.max(topControlsOffset, -getTopControlsHeight())) to prevent the controls from moving too far up, but it fails to apply an upper-bound clamp. Consequently, the large positive offset (10000) persists.

  4. UI Displacement and Hiding: This offset causes the browser to translate the Android View-based toolbar 10000 pixels down (off-screen). Additionally, since the browser calculates a "hidden ratio" greater than zero, it may set the real toolbar view to INVISIBLE. Meanwhile, the web content is positioned at Y=0. The renderer can then fill the space where the omnibox should be with its own content, mimicking a legitimate browser UI.

Impact

This is a high-severity security boundary bypass. The browser-process-rendered URL bar is the authoritative source of truth for a site's identity. If it can be hidden or replaced by web content, a compromised renderer can effectively spoof any origin (e.g., a login page for a financial institution) to the user.

Potential Reproduction Steps

  1. Gain control of a renderer process (precondition).
  2. Manually send a cc::mojom::RenderFrameMetadata Mojo message to the browser with top_controls_height = -10000.0f and top_controls_shown_ratio = 0.0f.
  3. Observe that the legitimate URL bar is shifted off-screen or disappears.
  4. The renderer can now paint a fake UI in the top area of the screen where the omnibox normally resides.

Suggested Fix

  1. Implement strict range validation in cc/mojom/render_frame_metadata_mojom_traits.cc. Ensure top_controls_height is non-negative and top_controls_shown_ratio is finite and within the [0, 1] range.
  2. Add an upper-bound clamp in BrowserControlsManager.java (e.g., Math.min(topControlsOffset, 0)) to ensure the controls cannot be moved downward beyond their resting position.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 browser process failed to validate the range of renderer-supplied top-controls height and shown ratio, and only applied a lower-bound clamp to the resulting offset.

Impact

A compromised renderer could spoof any origin by hiding the real URL bar and displaying fake browser UI, potentially tricking users into entering credentials on a phishing page.

What the attacker needed

Compromised renderer process

The fix

The issue should be fixed by adding strict range validation for the metadata fields and an upper-bound clamp on the offset in the Java code.

How it was found

  1. Gain control of a renderer process.
  2. Send a crafted RenderFrameMetadata Mojo message with a large negative top controls height and zero shown ratio.
  3. Observe the legitimate URL bar shifted off-screen or disappearing.
  4. Paint a fake UI in the top area where the omnibox normally resides.

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.

In Chrome, the address bar is drawn by a trusted part of the browser, not by the web page, so you can trust the URL you see. This report shows that a malicious web page (if it could break out of its sandbox) could send bad numbers to the browser that push the real address bar off the screen. Then the page could draw a fake address bar showing any website it wants, tricking you into thinking you are on a legitimate site.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.