Inappropriate implementation in Autofill (CVE-2026-13826)
A logic error in Android Autofill updates the session origin before checking whether the Credential Manager UI is showing, so a compromised renderer can spoof the origin of an active session. This could let an attacker bypass cross-origin Autofill checks and leak sensitive user data into attacker-controlled fields.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 48 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential logic error in AndroidAutofillProvider::OnAskForValuesToFill allows a compromised renderer to spoof the triggered origin of an active Autofill session. This occurs because the internal session origin is updated before checking the status of the Credential Manager UI, leading to state desynchronization. This could potentially allow an attacker to bypass cross-origin Autofill security policies and leak sensitive user data.
Affected files:
components/android_autofill/browser/android_autofill_provider.cccomponents/android_autofill/browser/android_autofill_manager.cccomponents/autofill/content/browser/content_autofill_driver.cccomponents/autofill/core/browser/foundations/form_forest.cc
Estimated timestamp from git blame: 2024-09-18
Root Cause Analysis
The potential vulnerability is located in AndroidAutofillProvider::OnAskForValuesToFill within components/android_autofill/browser/android_autofill_provider.cc. The function updates the session_state_->current_field.origin before performing an early-return check for the Credential Manager (CredMan) UI status.
// components/android_autofill/browser/android_autofill_provider.cc
void AndroidAutofillProvider::OnAskForValuesToFill(...) {
// ...
if (!session_state_) {
session_state_.emplace();
}
// ...
UpdateCurrentField(manager, form, field); // Updates origin unconditionally
if (credman_sheet_status_ == CredManBottomSheetLifecycle::kIsShowing) {
return; // Early return if CredMan UI is showing
}
if (!IsLinkedForm(form)) {
StartNewSession(manager, form, field); // Resets manager and form data
}
}
When UpdateCurrentField is called, session_state_->current_field.origin is overwritten with the origin provided in the renderer's IPC. If credman_sheet_status_ is kIsShowing, the function returns before StartNewSession (or Reset) can be called. This results in a state where session_state_->current_field.origin reflects a new origin, while session_state_->manager and session_state_->form still point to the previous, legitimate session.
Potential Exploit Scenario
An attacker with control over a renderer (e.g., via a compromised subframe or a malicious site) could potentially follow these steps:
- A user interacts with a legitimate form (e.g., a login form in a bank's iframe) that triggers a CredMan passkey selection UI.
AndroidAutofillProviderinitializes a session for the bank's origin. - While the CredMan UI is visible, a compromised renderer sends a malicious
AskForValuesToFillIPC for a field under the attacker's control. AndroidAutofillProvider::OnAskForValuesToFillupdates the session's origin to the attacker's origin but returns early due to the active CredMan UI, leaving the bank's manager and form active in the session state.- The user dismisses CredMan and selects a standard password autofill suggestion for the bank's form from the keyboard accessory.
- The browser executes the fill operation using the desynchronized state, passing the attacker's origin as the
triggered_origintoFormForest::IsSafeToFill. - Security checks in
FormForest::IsSafeToFill(Clause 2 or 4) are bypassed because the spoofedtriggered_originmatches the attacker's fields in the form structure, causing sensitive data to be leaked into the attacker's fields.
Suggested Fix
To prevent this desynchronization, the update to the session's field state should be performed after the CredMan status check, or the entire state should be properly reset/updated before the early return. Specifically, consider moving the call to UpdateCurrentField after the check for credman_sheet_status_ == kIsShowing.
Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e
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
The session's current field origin is updated before an early return for the Credential Manager UI, leaving the origin out of sync with the stored manager and form.
Impact
A compromised renderer could bypass cross-origin Autofill protections and cause sensitive user data to be leaked into attacker-controlled fields.
What the attacker needed
Compromised renderer or malicious site; victim interacts with a legitimate form; Credential Manager UI is showing; victim selects an autofill suggestion
The fix
The update to the session's field state should happen after the Credential Manager status check, or the state should be reset before the early return.
How it was found
- A user interacts with a legitimate form that triggers the Credential Manager passkey UI, starting a session for that origin.
- While the UI is visible, a compromised renderer sends an AskForValuesToFill message for a field it controls.
- The provider updates the session origin to the attacker's origin but returns early because the UI is showing.
- The user dismisses the UI and selects a standard password autofill suggestion for the legitimate form.
- The fill uses the desynchronised state, passing the attacker's origin to the safety check.
- The safety check is bypassed and sensitive data is placed into the attacker'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.
Autofill is the browser feature that fills in passwords and other details for you. The browser normally checks that a form belongs to the same website before filling it, to stop one site stealing another site's saved data. Here, a timing mistake means a malicious page could make the browser think a form belongs to it, so saved data might be placed into the wrong fields.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.