Inappropriate implementation Passwords (CVE-2026-12032)
A sandboxed same-site iframe on Android could have its form treated as belonging to the parent origin when TouchToFill looked up saved credentials, because the lookup used a URL-derived tuple origin instead of the frame's opaque committed origin. If the sandboxed renderer were already compromised, the user selecting a suggestion could send the parent site's plaintext username and password into that renderer process.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 13 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 Android's TouchToFill password suggestions allows a compromised same-site sandboxed iframe to bypass security boundaries and access parent origin credentials. The issue stems from precursor origin confusion where the browser queries saved credentials using a precursor-derived tuple origin instead of the frame's actual committed origin. This can allow a process-isolated sandboxed renderer to trigger TouchToFill and obtain the parent's plaintext credentials.
Affected files:
chrome/browser/password_manager/chrome_password_manager_client.cccomponents/password_manager/core/browser/password_manager.cc
Estimated timestamp from git blame: 2019-07-31
Root Cause Analysis
In chrome/browser/password_manager/chrome_password_manager_client.cc inside the Android-only ContinueShowKeyboardReplacingSurface function (which handles TouchToFill), the code retrieves credentials from the cache using a precursor-derived origin of the document's URL rather than the driver frame's actual committed origin:
// chrome/browser/password_manager/chrome_password_manager_client.cc:684-687
base::span<const password_manager::UiCredential> password_credentials =
credential_cache_
.GetCredentialStore(URLToOrigin(driver->GetLastCommittedURL()))
.GetCredentials();
Here, URLToOrigin is implemented as:
// chrome/browser/password_manager/chrome_password_manager_client.cc:228-230
url::Origin URLToOrigin(GURL url) {
return url::Origin::Create(url.DeprecatedGetOriginAsURL());
}
DeprecatedGetOriginAsURL() strips path components and creates a tuple origin (e.g., https://victim.com), discarding the opaque origin wrapper associated with sandboxed frames. This leads to precursor origin confusion: a sandboxed iframe with an opaque origin is treated as having its parent's non-opaque tuple origin, matching the credential key populated by the main frame.
To display suggestions, TouchToFill requires a valid PasswordFormManager to be registered for the frame's driver. Normally, a sandboxed frame is prevented from initializing a PasswordFormManager because standard renderer-driven IPC messages (such as PasswordFormsParsed or PasswordFormsRendered) undergo security validation in ContentPasswordManagerDriver via HasValidURL(), which checks process capability under IsAccessAllowedForSandboxedProcess and drops the messages.
However, the browser's asynchronous server prediction path bypasses this mechanism. When the browser receives Autofill server predictions for the sandboxed iframe's form, ChromePasswordManagerClient::PropagatePredictionsToPasswordManager is called on the browser side. This invokes PasswordManager::ProcessAutofillPredictions (in components/password_manager/core/browser/password_manager.cc lines 1777–1844), which is entirely browser-initiated and does not perform HasValidURL() or ChildProcessSecurityPolicy validation. If the server predictions classify the form as a potential credential or username-first flow, ProcessAutofillPredictions invokes CreateFormManager to instantiate and cache a PasswordFormManager for the sandboxed iframe's driver.
When the sandboxed frame subsequently triggers a suggestion request, the browser successfully retrieves the main frame's cached credentials due to precursor origin confusion. If the user selects a credential, driver_->FillSuggestion transmits the plaintext username and password straight to the process-isolated sandboxed renderer process.
Potential Steps to Trigger / Exploit Flow
Note: These are suggested/potential steps as our tooling agent does not have the ability to execute code to verify a functional proof of concept.
- A user visits a target page
https://victim.comon an Android device with partial-site-isolation enabled. The user has saved credentials forhttps://victim.comcached incredential_cache_via the main frame. - The main page embeds an attacker-controlled same-site sandboxed iframe:
<iframe sandbox="allow-scripts" src="https://victim.com/ugc.html">. - The sandboxed iframe is isolated in its own dedicated sandboxed renderer process under
kIsolateSandboxedIframesdue to its opaque origin. - An attacker with a renderer compromise primitive (Renderer RCE) in the sandboxed process renders a login-like form and focuses the field.
- The browser-side Autofill engine processes predictions for the form and asynchronously triggers
ProcessAutofillPredictionsinPasswordManager, registering aPasswordFormManagerfor the sandboxed iframe's driver and bypassingHasValidURL()checks. - The compromised renderer sends an
AskForValuesToFillMojo request. TouchToFill displays the parent's credentials becauseURLToOrigin(driver->GetLastCommittedURL())matcheshttps://victim.cominstead of evaluating to an opaque origin. - Once the user taps the credential entry,
driver_->FillSuggestionis executed, sending the plaintext username and password across the process boundary to the compromised sandboxed renderer process.
Suggested Fix
To prevent precursor origin confusion and preserve sandboxed iframe boundaries, the credential cache lookups in ContinueShowKeyboardReplacingSurface should use the frame's committed origin instead of converting its URL.
Update chrome/browser/password_manager/chrome_password_manager_client.cc to query the credential store using the driver's last committed origin:
base::span<const password_manager::UiCredential> password_credentials =
credential_cache_
.GetCredentialStore(driver->GetLastCommittedOrigin())
.GetCredentials();
Because a sandboxed iframe's committed origin is opaque, this lookup will safely fail to match the non-opaque https://victim.com key in credential_cache_, preventing any credentials from being retrieved or leaked.
Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040
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 TouchToFill credential lookup converted the frame's URL into a tuple origin, discarding the opaque origin of a sandboxed frame, and the browser-initiated autofill prediction path created a form manager without the sandbox URL validation applied to renderer messages.
Impact
A compromised sandboxed renderer could obtain the parent origin's plaintext credentials, but only if the user taps the TouchToFill suggestion, and the report notes the steps are potential and were not executed.
What the attacker needed
Android device; partial-site-isolation enabled; saved credentials for the parent site; attacker-controlled same-site sandboxed iframe
The fix
The credential cache lookup should use the driver's last committed origin instead of converting its URL, so an opaque sandboxed origin fails to match the parent's credentials; the text does not say this was fixed.
How it was found
- A user on Android with saved credentials for a site visits that site, caching the credentials under the main frame.
- The page embeds an attacker-controlled same-site sandboxed iframe.
- The sandboxed iframe is placed in its own isolated renderer process because of its opaque origin.
- An attacker with a renderer compromise in that process renders a login-like form and focuses the field.
- Browser-side autofill predictions register a password form manager for the sandboxed frame, bypassing the usual URL validation.
- The compromised renderer requests suggestions, TouchToFill shows the parent's credentials, and a user tap sends the plaintext credentials into the sandboxed process.
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.
A sandboxed iframe is a page embedded inside another page that the browser deliberately treats as untrusted, giving it an 'opaque' identity so it cannot claim to be the surrounding site. Here the password suggestion feature on Android worked out which saved logins to offer by looking at the iframe's web address rather than that untrusted identity, so it offered the surrounding site's logins. If an attacker already controlled code inside that iframe, tapping a suggestion could hand them the real password.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.