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

Improper input validation in Autofill (CVE-2026-79288)

A logic error in AndroidAutofillProvider lets a malicious cross-origin iframe poison the autofill session's triggered origin by focusing its own WebAuthn field, so that FormForest's cross-origin check later permits credentials to be filled into the attacker's iframe instead of the victim's fields.

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 logic error in AndroidAutofillProvider allows a malicious cross-origin iframe to spoof the autofill session's triggered origin. By triggering a Credential Manager (CredMan) flow from an iframe, the attacker can set the session's origin to itself, causing subsequent credential filling to bypass FormForest cross-origin security checks.

Affected files:

  • components/android_autofill/browser/android_autofill_provider.cc
  • components/android_autofill/browser/android_autofill_manager.cc
  • components/android_autofill/browser/autofill_provider.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A vulnerability in AndroidAutofillProvider::OnFocusOnFormField allows a malicious cross-origin renderer to poison the triggered_origin of an active Autofill session. This bypasses the security checks in FormForest::IsSafeToFill, which are intended to prevent credentials from being filled into frames with an origin different from the one that triggered the Autofill session. By maliciously setting the triggered origin to its own, an attacker-controlled iframe can receive credentials intended for the top-level site.

Technical Details

When a page contains cross-origin iframes within a <form> element (or associated via the form attribute), Chrome's FormForest flattens the forms into a single, unified FormData object containing fields from multiple frames.

The issue resides in components/android_autofill/browser/android_autofill_provider.cc within the OnFocusOnFormField method. When a renderer sends a focus event IPC, the method checks if the Android Credential Manager (CredMan) should be shown. If so, it displays the CredMan UI and immediately updates the active session's current field:

C++
void AndroidAutofillProvider::OnFocusOnFormField(...) {
  std::optional<FieldInfo> field_to_focus = StartFocusChange(form, field);
  if (content::RenderFrameHost* rfh = GetRenderFrameHost(manager, field.host_frame());
      ShouldShowCredManForField(field, rfh) &&
      ShowCredManSheet(rfh, form.global_id(), field_to_focus)) {
    // Proactively update the current field and its origin.
    UpdateCurrentField(manager, form, field);  // <--- Vulnerable call
    return;
  }
  // ...
}

UpdateCurrentField blindly sets session_state_->current_field.origin based on the field parameter provided by the renderer IPC, without verifying that the field securely belongs to the session's originating context.

Furthermore, an existing security guard in OnAskForValuesToFill intended to prevent spoofing while the CredMan UI is visible (kIsShowing) actually locks in this poisoned origin. If the user attempts to interact with the victim's form to dismiss the CredMan UI, the subsequent AskForValuesToFill IPC is ignored, preventing the origin from being corrected to the legitimate frame.

When the Android Autofill service eventually provides credentials, AndroidAutofillProvider::OnAutofillAvailable uses the poisoned session_state_->current_field.origin as the triggered_origin. The fill request routes to FormForest::IsSafeToFill, which checks if the origin of the field being filled matches the triggered_origin. Because the triggered_origin was poisoned to the attacker's origin, FormForest strips the credentials from the victim's fields but successfully fills them into fields within the attacker's iframe.

Potential Attack Steps

Note: These are suggested steps to exploit the vulnerability; our tooling has not executed this as a live proof-of-concept.

  1. An attacker hosts a malicious iframe (https://attacker.com) embedded in a top-level page (https://victim.com) containing a login form. The iframe is structured such that it is flattened into the victim's form.
  2. The attacker iframe contains a webauthn-enabled input field and initiates a conditional WebAuthn request via JavaScript (navigator.credentials.get({ mediation: 'conditional', ... })) so that ShouldShowCredManForField will return true.
  3. The user focuses a username or password field in the top-level victim frame, starting an Autofill session with the legitimate origin.
  4. The attacker's iframe executes JavaScript to maliciously focus its own webauthn field. This triggers a FocusOnFormField IPC, poisoning the active session's origin to https://attacker.com via UpdateCurrentField and opening the CredMan UI.
  5. The user attempts to dismiss the CredMan UI by tapping back on the victim's form field. This triggers a new FocusOnFormField (which prompts the Android Autofill dropdown to appear) and an AskForValuesToFill IPC.
  6. Because the CredMan dismiss event has not fully processed (credman_sheet_status_ == kIsShowing), OnAskForValuesToFill ignores the IPC, leaving the session origin locked to https://attacker.com.
  7. The user selects a credential from the Android Autofill dropdown.
  8. FormForest receives the fill request with the poisoned triggered_origin. It denies filling into the victim's fields, but permits filling the plaintext credentials into the attacker's iframe fields, resulting in credential disclosure.

Suggested Fix

AndroidAutofillProvider::OnFocusOnFormField should validate that the provided field logically belongs to the current session_state_->form (e.g., ensuring field_to_focus has a valid value) before calling UpdateCurrentField. Alternatively, if CredMan is triggered by a cross-origin field that differs from the active session's context, the provider should start a completely new session rather than mutating the existing one's origin.

Evaluated with Chrome root at commit: 65b3256311f3ab6fb9870eaa522de7e6dd2663bb


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, OnFocusOnFormField calls UpdateCurrentField with a renderer-supplied field without verifying that the field belongs to the session's originating context, and a guard in OnAskForValuesToFill then prevents the poisoned origin from being corrected while the CredMan sheet is showing.

Impact

Plaintext credentials intended for the top-level site could be disclosed to the attacker's iframe, though the report notes the steps were suggested and not executed as a live proof-of-concept.

What the attacker needed

Victim visits attacker-controlled page; victim page embeds attacker iframe in a form; victim focuses a login field; victim selects a saved credential

The fix

OnFocusOnFormField should validate that the supplied field belongs to the current session's form before calling UpdateCurrentField, or start a new session when CredMan is triggered by a cross-origin field.

How it was found

  1. The attacker embeds a malicious iframe in a victim page whose login form is flattened together with the iframe's fields.
  2. The iframe contains a WebAuthn-enabled input and starts a conditional WebAuthn request so the CredMan sheet will be shown for it.
  3. The user focuses a username or password field in the victim's top-level frame, starting an autofill session with the legitimate origin.
  4. The iframe focuses its own WebAuthn field, which poisons the session origin to the attacker's origin and opens the CredMan UI.
  5. The user taps back on the victim's form field to dismiss the CredMan UI, but the resulting AskForValuesToFill is ignored while the sheet status is still showing.
  6. The user picks a credential from the Android Autofill dropdown, and FormForest fills it into the attacker's iframe fields while stripping it from the victim's fields.

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 login field, Chrome starts an autofill session and remembers which website started it. A security check then makes sure saved passwords only go into fields on that same website. Here, a malicious frame inside the page could trick Chrome into changing that remembered website to the attacker's, so the check let the password go into the attacker's frame.

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.