Incorrect security UI in Omnibox (CVE-2026-5906)
A Chromium for Android regression caused the bottom-anchored Omnibox to disappear or render incorrectly when the virtual keyboard appeared, making the origin text unreadable. An attacker could exploit this to spoof the user's perceived origin, as the security cue is corrupted.
Originally disclosed on Chrome VRP
- Fix shipped in 54 days
- Executive Summary
A rendering regression was identified in Chromium for Android (arm64), causing the URL Bar (Omnibox) to disappear or render incorrectly when positioned at the bottom of the screen. The issue was introduced in Revision 1501003 during a structural migration of the toolbar container from OptimizedFrameLayout to CoordinatorLayout. This change conflicts with high-DPI resource handling on specific devices (e.g., Realme 12), leading to layout inflation errors and breaking the Trusted UI boundary.
- Issue Description
Affected Version: Chromium Builds starting from Revision 1501003.
Device Specifics: Verified on Realme 12 (Android 15), likely affects other high-DPI devices.
Trigger Condition: The issue manifests specifically when the "Bottom Toolbar" setting is enabled (or forced via flags), moving the URL bar to the bottom of the screen.
- Bisect & Regression Range
Using manual binary search (bisect) on Android_Arm64 snapshots, the regression was isolated to a specific range:
Last Known Good Revision: 1500987
First Bad Revision: 1501016
Culprit Commit Position: refs/heads/main@{#1501003}
- Identification of the Culprit
Commit Hash: e981dd46821f563acaa6a5a3d8fd51e046e311e2.
Title: [Toolbar] Rework hairline positioning.
Change Log: "Rework hairline positioning... This does require switching the toolbar container to be a CoordinatorLayout... Instead of manual manipulation."
- Technical Root Cause Analysis
The root cause is a logic failure in how the new CoordinatorLayout handles the toolbar's vertical positioning compared to the previous FrameLayout implementation, specifically when interacting with high-density display resources.
A. Structural Change The culprit commit replaced the root container of the toolbar in control_container.xml:
Removed: org.chromium.components.browser_ui.widget.ViewResourceFrameLayout
Added: androidx.coordinatorlayout.widget.CoordinatorLayout
Additional Evidence in ToolbarControlContainer.java: The file now explicitly casts layout params to CoordinatorLayout.LayoutParams in mutateLayoutParams(), confirming that the container strictly enforces the new layout hierarchy which fails to handle the Hi-DPI scaling correctly.
B. Logic Regression in ToolbarPositionController.java Upon inspecting the source code of ToolbarPositionController.java, specifically the updateCurrentPosition() method:
Removal of Explicit Offsets: The legacy code used to manually calculate and set the Y-translation (setTranslationY) based on screen height and offsets. This guaranteed the view was placed within visible bounds.
Reliance on Gravity: The new implementation relies entirely on CoordinatorLayout.LayoutParams and gravity anchors: // Code Snippet from ToolbarPositionController.java (New Logic) CoordinatorLayout.LayoutParams hairlineLayoutParams = mControlContainer.mutateHairlineLayoutParams();
// Logic relies solely on flipping gravity hairlineLayoutParams.anchorGravity = newControlsPosition == ControlsPosition.TOP ? Gravity.BOTTOM : Gravity.TOP;
LayoutParams layoutParams = mControlContainer.mutateLayoutParams(); int verticalGravity = newControlsPosition == ControlsPosition.TOP ? Gravity.TOP : Gravity.BOTTOM;
layoutParams.gravity = Gravity.START | verticalGravity;
C. The Conflict The reliance on Gravity.BOTTOM failed because of a preceding commit 1500950 (Enable hi-dpi resources).
The new Hi-DPI assets likely altered the measured height of the toolbar children.
CoordinatorLayout requires precise measurement passes (onMeasure). If the inner views (Omnibox icons) have mismatched dimensions due to the new resources, the CoordinatorLayout may calculate a zero height or push the view off-screen, whereas the old FrameLayout would have forced it to render regardless of measurement errors.
Security Impact Analysis: According to Chrome's security guidelines, a UI spoof is critical if it "convinces the user they are currently on origin A when in fact they are on origin B".
This regression (caused by CoordinatorLayout migration) actively corrupts the primary 'Security Cue' (the Origin/URL text) that a "reasonable and prudent user" relies on.
Specifically, the failure in CoordinatorLayout to handle Hi-DPI measurements causes the domain text view to be shifted off-screen or rendered with incorrect padding, effectively truncating the origin or leaving the URL bar blank during keyboard interaction. This renders the domain unreadable, denying the user the ability to verify the origin and directly facilitating the criteria mentioned in your guidelines.
Unlike a design choice, this is a code failure in ToolbarPositionController.java that breaks the trusted UI boundary involuntarily.
- Reproduction Steps
Install Chromium Android_Arm64 build 1501016 (or any build after 1501003).
Launch the browser.
Navigate to chrome://flags or Settings.
Enable "Bottom Toolbar" (or Android Bottom Toolbar flag).
Relaunch the browser and open any webpage.
Tap on an input field to trigger the virtual keyboard.
Observation: Upon triggering the virtual keyboard, the bottom-anchored Omnibox layout fails, causing the domain origin text to be either shifted off-screen, or rendered with zero height, making the origin unreadable.
- Proposed Fix / Recommendation
To resolve this regression, the CoordinatorLayout implementation in ToolbarPositionController.java must account for the safe area insets and potential measurement discrepancies caused by Hi-DPI assets.
Immediate Mitigation: Revert commit e981dd4 to restore OptimizedFrameLayout stability.
Long-term Fix: Modify updateCurrentPosition() to ensure a minimum valid height is enforced and that layoutParams.bottomMargin correctly accounts for the device's navigation bar/gesture area when Gravity.BOTTOM is applied.
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 a logic failure in the new CoordinatorLayout-based toolbar positioning, which relies on gravity anchors instead of explicit offsets and fails to handle high-DPI measurement discrepancies, causing the Omnibox to be pushed off-screen or rendered with zero height.
Impact
The corrupted security UI could convince a user they are on a different origin, facilitating spoofing attacks, though the issue is limited to specific devices and configurations.
What the attacker needed
Chromium Android build after 1501003; Bottom Toolbar enabled; High-DPI device (e.g., Realme 12); Virtual keyboard triggered
The fix
The fix should revert the culprit commit or modify the positioning logic to enforce a minimum height and account for safe area insets.
How it was found
- Install Chromium Android_Arm64 build 1501016 (or any build after 1501003).
- Launch the browser.
- Navigate to chrome://flags or Settings.
- Enable "Bottom Toolbar" (or Android Bottom Toolbar flag).
- Relaunch the browser and open any webpage.
- Tap on an input field to trigger the virtual keyboard.
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.
The address bar in a browser is a key security indicator: it shows which website you are on. A bug in Chromium for Android made this bar disappear or become unreadable when the keyboard opened, so users could not check the site's address. This could let an attacker trick someone into thinking they are on a different site.
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.