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

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.cc
  • components/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

  1. A user navigates to a top-level page (O_main).
  2. 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 the allow="autofill" permission policy.
  3. The user interacts with a field in Form A. The browser calls AndroidAutofillProvider::OnAskForValuesToFill (components/android_autofill/browser/android_autofill_provider.cc:211), which sets session_state_->current_field.origin to O_main and calls StartNewSession(manager, Form A, field).
  4. The user leaves Form A without completing the autofill. The session state remains active.
  5. 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.
  6. The browser receives the SelectControlSelectionChanged IPC, and AndroidAutofillProvider::OnSelectControlSelectionChanged is called for Form B.
  7. 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).
  8. Vulnerability: StartNewSession updates session_state_->form to Form B but completely fails to update session_state_->current_field. The current_field.origin remains stale at O_main.
  9. The Android Autofill service presents a suggestion UI for the select element. The user taps the suggestion.
  10. AndroidAutofillProvider::OnAutofillAvailable (components/android_autofill/browser/android_autofill_provider.cc:367) is invoked and calls FillOrPreviewForm using the stale session_state_->current_field.origin (O_main) as the triggered_origin.
  11. The fill request reaches FormForest::GetRendererFormsOfBrowserFields. The IsSafeToFill lambda (components/autofill/core/browser/foundations/form_forest.cc:603) evaluates the security policy for the fields in O_sibling.
  12. Because the triggered_origin (O_main) matches the main frame origin, and the target frame has allow="autofill", the check erroneously passes. The browser fills sensitive data into O_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.

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 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

  1. 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.
  2. User interacts with a field in the main frame form, setting the session origin to the main frame.
  3. User leaves the form without completing autofill, keeping the session active.
  4. Attacker's iframe changes a select element in the cross-frame form, triggering a new session.
  5. The new session updates the form but not the current field origin, leaving it stale.
  6. 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.

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.