Policy bypass in Android Autofill (CVE-2026-11291)
AndroidAutofillProvider fails to update the current field's origin when starting a new session via a select control change, leaving a stale origin. A malicious subframe can exploit this to bypass cross-origin fill policies and trigger autofill into a privileged sibling frame.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 50 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 without the Chrome Security team.
Overview: AndroidAutofillProvider fails to update the current field's origin when starting a new session via a select control change. This leaves a stale origin in the session state, which can be exploited by a malicious subframe to bypass cross-origin fill policies in FormForest.
Affected files:
components/android_autofill/browser/android_autofill_provider.cccomponents/android_autofill/browser/android_autofill_provider.h
Estimated timestamp from git blame: 2025-01-08
Overview
In AndroidAutofillProvider, the session_state_ tracks the current_field being interacted with, including its origin. This origin is later used as the triggered_origin when data is returned by the Android Autofill service to be filled into the form.
A vulnerability exists because session_state_->current_field is updated in OnAskForValuesToFill but is not updated when a new session is started via OnSelectControlSelectionChanged. If a user interacts with a field in the main frame, and a malicious cross-origin subframe subsequently triggers a new session via a <select> control change, the current_field.origin remains set to the stale main frame origin. This stale origin is passed down to FormForest::IsSafeToFill, satisfying its security checks and allowing the malicious subframe to trigger autofill into a privileged sibling frame.
Potential Exploitation Steps
- A user navigates to a top-level page (
O_main). - The page contains two forms: Form A (entirely in the main frame) and Form B (a cross-frame form). Form B wraps a malicious iframe (
O_attacker) and a privileged sibling iframe (O_sibling) that has theallow="autofill"permission policy. - The user interacts with a field in Form A. The browser calls
AndroidAutofillProvider::OnAskForValuesToFill(components/android_autofill/browser/android_autofill_provider.cc:211), which setssession_state_->current_field.origintoO_mainand callsStartNewSession(manager, Form A, field). - The user leaves Form A without completing the autofill. The session state remains active.
- The attacker's iframe (
O_attacker) uses a script (e.g., following transient user activation) to change the selection of a<select>element within its portion of Form B. - The browser receives the
SelectControlSelectionChangedIPC, andAndroidAutofillProvider::OnSelectControlSelectionChangedis called for Form B. IsLinkedForm(Form B)returns false because the current session is linked to Form A. Thus,StartNewSession(manager, Form B, field)is called (components/android_autofill/browser/android_autofill_provider.cc:481).- Vulnerability:
StartNewSessionupdatessession_state_->formto Form B but completely fails to updatesession_state_->current_field. Thecurrent_field.originremains stale atO_main. - The Android Autofill service presents a suggestion UI for the select element. The user taps the suggestion.
AndroidAutofillProvider::OnAutofillAvailable(components/android_autofill/browser/android_autofill_provider.cc:367) is invoked and callsFillOrPreviewFormusing the stalesession_state_->current_field.origin(O_main) as thetriggered_origin.- The fill request reaches
FormForest::GetRendererFormsOfBrowserFields. TheIsSafeToFilllambda (components/autofill/core/browser/foundations/form_forest.cc:603) evaluates the security policy for the fields inO_sibling. - Because the
triggered_origin(O_main) matches the main frame origin, and the target frame hasallow="autofill", the check erroneously passes. The browser fills sensitive data intoO_sibling, bypassing the cross-origin fill policy which should have used the true interaction origin (O_attacker) and blocked the fill.
Suggested Fix
[Removed speculative fix]
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
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. 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 session state's current field origin is not updated when a new session starts via a select control change, so a stale origin is used for security checks.
Impact
A malicious subframe could bypass cross-origin fill policies and cause sensitive data to be filled into a privileged sibling frame, but the attack requires user interaction and specific frame permissions.
What the attacker needed
User interacts with a field in the main frame; Attacker controls a cross-origin iframe; Privileged sibling iframe has allow="autofill"; User taps autofill suggestion
The fix
The session state's current field origin should be updated when starting a new session via a select control change.
How it was found
- User navigates to a top-level page with two forms: one in the main frame and one cross-frame containing a malicious iframe and a privileged sibling iframe.
- User interacts with a field in the main frame form, setting the session origin to the main frame.
- User leaves the form without completing autofill, keeping the session active.
- Attacker's iframe changes a select element in the cross-frame form, triggering a new session.
- The new session updates the form but not the current field origin, leaving it stale.
- User taps the autofill suggestion, and the browser fills data into the privileged sibling frame because the stale origin passes the security check.
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.
Autofill helps you fill forms quickly, but it should only fill data into the right website. This bug lets a bad website trick the browser into filling your data into a different, trusted part of the page. The browser remembers the wrong website when you change a dropdown, so it thinks it's safe to fill.
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.