Insufficient validation of untrusted input in Passwords (CVE-2026-17686)
A sandboxed iframe with an opaque origin but a precursor document URL could cause the browser to fetch saved passwords for that precursor origin as exact matches, bypassing cross-domain warnings. A compromised sandboxed renderer could then receive plaintext credentials after user interaction.
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 potential vulnerability in the Autofill manual fallback flow allows a compromised sandboxed iframe renderer process to access saved passwords of its precursor origin. Because the browser process uses the document URL instead of the opaque origin to query credentials, it fetches exact match credentials and bypasses cross-domain warning gates. Upon user interaction, the browser transmits the plaintext credentials directly to the sandboxed renderer process.
Affected files:
components/password_manager/core/browser/password_manual_fallback_flow.cccomponents/autofill/content/browser/content_autofill_driver.cccomponents/password_manager/core/browser/password_suggestion_generator.cccomponents/autofill/content/browser/bad_message.cc
Estimated timestamp from git blame: 2024-04-08
Potential Root Cause Analysis
A potential security boundary bypass exists within the Autofill and Password Manager manual fallback architecture. When a sandboxed iframe (<iframe sandbox="allow-scripts">) commits, it runs within an isolated renderer process with an opaque origin, but retains its precursor origin (e.g., https://victim.com) as its document URL.
1. Precursor-URL-keyed Credentials Query
In components/password_manager/core/browser/password_manual_fallback_flow.cc, the password manual fallback flow derives the credentials search key from the document URL rather than the committed origin:
const GURL origin_as_gurl = password_manager_driver_->GetLastCommittedURL();
password_manager::PasswordFormDigest form_digest(
password_manager::PasswordForm::Scheme::kHtml,
password_manager::GetSignonRealm(origin_as_gurl), origin_as_gurl);
For a sandboxed iframe hosted at https://victim.com/sb.html, GetLastCommittedURL() returns the document URL. The signon realm is parsed as https://victim.com/. Consequently, the browser queries the password store for victim.com credentials and treats them as an exact match (match_type = kExact).
2. Cross-Domain Warning Bypass
Because the credentials are categorized as an exact match, PasswordSuggestionGenerator::GetManualFallbackSuggestions (components/password_manager/core/browser/password_suggestion_generator.cc) does not mark the suggestions as cross-domain (is_cross_domain remains false).
Thus, when the user clicks a suggestion, PasswordManualFallbackFlow::EnsureCrossDomainPasswordUsageGetsConsent executes immediately without showing the cross-domain confirmation popup.
3. Delivery of Plaintext Secrets
Once the user selects a suggestion and any biometric checks pass, the browser uses PasswordAutofillAgent::FillPasswordSuggestionById to send the plaintext username and password over Mojo into the sandboxed frame's renderer process.
Potential Trigger Path
Note: These are potential steps; our tooling currently does not have the capability to execute code to verify a working proof of concept.
- A user saves a credential for
https://victim.comin their Chrome profile. - The user visits
https://victim.com, which embeds<iframe sandbox="allow-scripts" src="https://victim.com/sb.html">isolated in a separate sandboxed renderer process. - The attacker compromises the sandboxed iframe renderer process.
- The compromised renderer issues a
mojom::AutofillDriver::AskForValuesToFillIPC withtrigger_sourceset tokManualFallbackPasswordsand aPasswordSuggestionRequesttargeting a field in the frame. - The browser process bypasses validation because the top-level trigger source is allowed, and dispatches the request to
PasswordAutofillManager. PasswordManualFallbackFlowfetches the victim's saved credentials for the precursor URL (victim.com) as exact matches.- The user clicks the credentials in the Autofill popup.
- The browser process transmits the plaintext credentials directly to the sandboxed renderer over the frame's
PasswordAutofillAgentMojo interface.
Suggested Remediation
To remediate this issue, the browser process must strictly validate the privilege level of the calling frame before retrieving or filling credentials via the manual fallback flow:
- In
PasswordAutofillManager::ShowSuggestions, verify whether the driver's last committed origin is opaque (e.g.,password_manager_driver_->GetLastCommittedOrigin().opaque() == true). If it is opaque, restrict or completely disable the manual fallback flow for passwords. - Alternatively, ensure that
PasswordManualFallbackFlowusesGetLastCommittedOrigin()rather thanGetLastCommittedURL()to define the signon realm and form digest. Opaque origins should trigger the standard cross-domain verification and consent popup, alerting the user to the potential boundary crossing.
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
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 manual fallback flow derives the credential search key from the document URL rather than the committed origin, so an opaque-origin frame is treated as the precursor origin and its credentials are marked as exact matches.
Impact
A compromised sandboxed renderer could receive plaintext saved passwords for its precursor origin after the user selects a suggestion, without the cross-domain warning that would normally appear.
What the attacker needed
User has saved credentials for the site; site embeds a sandboxed iframe; attacker compromises the iframe renderer; user clicks a credential suggestion
The fix
The browser process should validate the calling frame's origin and either disable manual fallback for opaque origins or use the committed origin instead of the document URL so that cross-domain consent is required.
How it was found
- A user saves a credential for the victim site.
- The user visits the victim site, which embeds a sandboxed iframe isolated in a separate renderer process.
- The attacker compromises the sandboxed iframe renderer process.
- The compromised renderer sends an IPC request for manual fallback password suggestions.
- The browser fetches the victim's saved credentials for the precursor URL as exact matches.
- The user clicks the credentials in the Autofill popup, and the browser sends plaintext credentials to the sandboxed renderer.
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 a web page embeds another page in a sandboxed frame, the browser normally treats that frame as untrusted and gives it no origin. This report says the password manager still looked up saved passwords using the original site's address, so a compromised frame could get those passwords sent to it after the user clicked a suggestion.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.