Inappropriate implementation in Passwords (CVE-2026-17715)
A sandboxed iframe's form was stamped with the precursor URL instead of its opaque origin, so the password manager fetched and cached saved credentials for that site. If the user accepted a suggestion, the cleartext password was sent back to the sandboxed renderer where attacker script could read it.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 52 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 logic bypass in Chrome's password manager allows sandboxed iframes to retrieve saved credentials matching their precursor URL. Because the form URL is stamped with the document precursor URL rather than the opaque committed origin, the browser may fetch and store cleartext credentials in the sandboxed driver's cache. A subsequent suggestion acceptance allows the sandboxed renderer to access and exfiltrate the victim's cleartext credentials.
Affected files:
chrome/browser/password_manager/chrome_password_manager_client.cccomponents/password_manager/content/browser/content_password_manager_driver.cccomponents/autofill/content/browser/content_autofill_driver.cccomponents/password_manager/core/browser/password_autofill_manager.cccomponents/password_manager/core/browser/password_form_digest.cc
Estimated timestamp from git blame: 2019-08-30
Root Cause Analysis
In components/autofill/content/browser/content_autofill_driver.cc, the function Lift(ContentAutofillDriver&, FormData) populates form.url() from RenderFrameHost::GetLastCommittedURL()—the document precursor URL—rather than the committed origin:
GURL unstripped_url = rfh.GetLastCommittedURL();
if (unstripped_url.SchemeIs(url::kAboutScheme)) {
unstripped_url = rfh.GetLastCommittedOrigin().GetURL();
}
form.set_url(StripAuthAndParams(unstripped_url));
For a document loaded inside an <iframe sandbox> or under a CSP sandbox directive, GetLastCommittedURL() returns the precursor URL (e.g., https://victim.com/...), while GetLastCommittedOrigin() returns an opaque origin.
When Autofill server predictions are received, ChromePasswordManagerClient::PropagatePredictionsToPasswordManager routes these predictions to the per-frame ContentPasswordManagerDriver without validating origin access permissions:
// chrome/browser/password_manager/chrome_password_manager_client.cc
auto* driver = ContentPasswordManagerDriver::GetForRenderFrameHost(rfh);
// Missing check: driver->HasValidURL()
password_manager_.ProcessAutofillPredictions(driver, renderer_form, ...);
Unlike other renderer-facing entry points in ContentPasswordManagerDriver which early-return if !HasValidURL(), this propagation path is completely un-gated. As a result, the PasswordFormManager is constructed with the precursor-derived victim.com URL and queries the database for credentials associated with https://victim.com.
Once retrieved, the cleartext credentials are cached inside the sandboxed driver's PasswordAutofillManager::fill_data_. When the user focuses the field and accepts the suggestion, the password manager dispatches FillPasswordSuggestion over IPC directly to the sandboxed renderer, bypassing the sandboxed process isolation.
Potential Attack Scenario
- A victim's browser has saved credentials for
https://victim.com. - The victim visits
https://victim.com/u/attacker.htmlwhich is served withContent-Security-Policy: sandbox allow-scripts allow-forms(or is embedded on an untrusted page inside a sandboxed iframe pointing to the precursor URL). - The sandboxed iframe contains a simple form structured to trigger an Autofill server prediction (e.g., a username-first login pattern).
- The browser process receives the form, stamps its URL as
https://victim.com/...duringLift(), and retrieves the corresponding server prediction. - The browser initiates a credentials fetch for the precursor origin, caching the cleartext credentials in the sandboxed frame's
PasswordAutofillManager. - The user clicks the field and selects their username suggestion from the dropdown.
- The browser process transmits the cleartext password back to the sandboxed renderer where attacker-controlled JavaScript reads and exfiltrates the credential.
Note: These are potential steps based on manual source code analysis; our automated tooling does not currently have the capability to run code to confirm behavior.
Suggested Remediation
Ensure that ChromePasswordManagerClient::PropagatePredictionsToPasswordManager verifies that the target frame has permission to access the credentials before propagating predictions. Specifically, verify origin-access permissions via driver->HasValidURL() before invoking ProcessAutofillPredictions or ProcessClassificationModelPredictions:
if (!driver->HasValidURL()) {
continue;
}
Evaluated with Chrome root at commit: 3947e01999a53d4e2382e39736cb79d79c7dffcf
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 form URL was taken from the frame's last committed URL (the precursor) rather than its committed origin, and the prediction propagation path lacked the HasValidURL() gate used by other entry points.
Impact
A sandboxed renderer could obtain the victim's cleartext saved password, though the report notes the steps are unconfirmed source-code analysis and require the user to accept a suggestion.
What the attacker needed
Saved credentials for the target site; victim visits attacker-controlled page; user accepts a suggestion
The fix
The propagation path should check that the target frame has a valid URL before processing predictions, as the report suggests.
How it was found
- Victim has saved credentials for the site and visits a page served with a sandbox CSP or embedded in a sandboxed iframe.
- The sandboxed frame contains a form shaped to trigger an Autofill server prediction.
- The browser stamps the form URL with the precursor URL and fetches the matching prediction.
- The browser fetches credentials for the precursor origin and caches them in the sandboxed frame's password autofill manager.
- The user clicks the field and selects the username suggestion.
- The cleartext password is sent to the sandboxed renderer, where attacker script reads and exfiltrates it.
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 inside a page that the browser treats as untrusted, so it should not be able to reach data belonging to the site around it. Here the browser labelled the iframe's form with the outer site's address instead of the untrusted origin, so the password manager looked up and cached that site's saved passwords. When the user picked a saved login, the password was handed to the untrusted frame, where script could steal it.
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.