Insufficient validation of untrusted input in Autofill (CVE-2026-13995)
The Android Autofill UI can be positioned outside the WebView's visible area because renderer-supplied form field bounds are not clamped to the container view. A malicious renderer could spoof native browser UI or perform credential tapjacking by aligning Autofill suggestions with native buttons.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 45 days
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 vulnerability in Chromium for Android allows the system Autofill UI to be positioned outside the WebView's visible area by providing unvalidated form field bounds. This occurs because renderer-supplied coordinates are transformed to screen space without being clamped or intersected with the WebView's boundaries. An attacker could leverage this to spoof native UI elements, such as the address bar, or perform credential tapjacking attacks.
Affected files:
components/android_autofill/browser/java/src/org/chromium/components/autofill/AutofillProvider.javacomponents/android_autofill/browser/android_autofill_provider.cccomponents/autofill/core/common/mojom/autofill_types_mojom_traits.cccomponents/autofill/core/common/autofill_data_validation.cccomponents/autofill/content/browser/content_autofill_driver.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Potential Vulnerability: Unclamped Android Autofill Bounds
A vulnerability is suspected in the Android implementation of Autofill where renderer-supplied FormFieldData::bounds are passed to the Android framework without proper validation or clamping against the WebView's visible content area. This enables a malicious or compromised renderer to anchor the trusted system Autofill UI (FillUI) outside the WebView's designated region, potentially overlapping native browser UI components.
Root Cause Analysis
The transformation of field coordinates from the renderer to the Android system lacks clipping at several stages:
- Mojo Traits: In
components/autofill/core/common/mojom/autofill_types_mojom_traits.cc, the bounds are read from the renderer-supplied Mojo message without any range validation or viewport checks. - Coordinate Lifting: In
components/autofill/content/browser/content_autofill_driver.cc, theLiftfunction transforms coordinates from local frame space to the root frame space but does not intersect the resulting rectangle with the visible viewport. - Android Provider (C++): In
components/android_autofill/browser/android_autofill_provider.cc, theToClientAreaBoundmethod adds the container view's offset but does not validate if the field is actually visible. - Java Implementation: The final conversion to screen-space coordinates occurs in
AutofillProvider.java(lines 813-828). ThetransformToWindowBoundsWithOffsetYmethod performs scaling and translation based on themContainerView's screen location but fails to clamp the resultingRectto themContainerView's boundaries.
Because of this, the Android AutofillManager can be notified of a "virtual view" entry at coordinates that lie outside the WebView. The system then displays the Autofill suggestion picker at those coordinates.
Potential Impact
The Android Autofill UI is a system-owned window and is trusted by the user. By positioning this UI outside the WebView, a malicious renderer could:
- Spoof Primary Security UI: Overlap the browser's Omnibox or origin indicator to misrepresent the current site's identity.
- Credential Tapjacking: Align Autofill suggestion rows with native UI buttons (e.g., a 'Cancel' or 'OK' button in the app). A user attempting to tap the native button might inadvertently select an Autofill suggestion, filling their credentials into an attacker-controlled form.
Suggested Reproduction Steps (Potential)
Note: These steps are based on code analysis; our tooling cannot currently execute them to provide a verified PoC.
- On an Android device, enable a third-party Autofill service.
- Load a malicious page where an
<input>field is positioned at negative coordinates via CSS (e.g.,position: fixed; top: -150px;). - Programmatically focus the field or use a label to trigger focus.
- Observe that the system Autofill picker is displayed above the WebView, potentially overlapping the native browser toolbar.
Suggested Fix
The browser process must validate that the absBound passed to AutofillManager.notifyViewEntered is contained within the visible bounds of the WebView. This validation should ideally be implemented in AutofillProvider.java or android_autofill_provider.cc by intersecting the field bounds with the container's visible rectangle. If the field is entirely outside the visible area, the notification to the Android Autofill system should be suppressed.
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.
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 does not clamp or intersect renderer-supplied form field coordinates with the WebView's visible area before passing them to the Android Autofill system.
Impact
A malicious renderer could spoof the browser's address bar or origin indicator, or perform credential tapjacking by aligning Autofill suggestions with native buttons, though the report notes these steps are based on code analysis and not yet verified.
What the attacker needed
Android device; third-party Autofill service enabled; malicious page with off-screen field
The fix
The browser process should validate that the field bounds are contained within the WebView's visible rectangle and suppress the Autofill notification if the field is entirely outside the visible area.
How it was found
- Enable a third-party Autofill service on an Android device.
- Load a page with an input field positioned at negative coordinates using CSS.
- Focus the field programmatically or via a label.
- Observe the Autofill picker appearing above the WebView, possibly overlapping the browser toolbar.
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 tap a form field on a phone, the system shows a suggestion box to fill in your details. This report says a malicious webpage could tell the browser the field is somewhere else on the screen, so the suggestion box appears over the browser's address bar or over a button. That could trick you into tapping a suggestion when you meant to tap something else.
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.