Skip to content
Info disclosure Advisory Advanced CVE-2026-17686

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.cc
  • components/autofill/content/browser/content_autofill_driver.cc
  • components/password_manager/core/browser/password_suggestion_generator.cc
  • components/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:

C++
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.

  1. A user saves a credential for https://victim.com in their Chrome profile.
  2. 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.
  3. The attacker compromises the sandboxed iframe renderer process.
  4. The compromised renderer issues a mojom::AutofillDriver::AskForValuesToFill IPC with trigger_source set to kManualFallbackPasswords and a PasswordSuggestionRequest targeting a field in the frame.
  5. The browser process bypasses validation because the top-level trigger source is allowed, and dispatches the request to PasswordAutofillManager.
  6. PasswordManualFallbackFlow fetches the victim's saved credentials for the precursor URL (victim.com) as exact matches.
  7. The user clicks the credentials in the Autofill popup.
  8. The browser process transmits the plaintext credentials directly to the sandboxed renderer over the frame's PasswordAutofillAgent Mojo 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:

  1. 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.
  2. Alternatively, ensure that PasswordManualFallbackFlow uses GetLastCommittedOrigin() rather than GetLastCommittedURL() 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.

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 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

  1. A user saves a credential for the victim site.
  2. The user visits the victim site, which embeds a sandboxed iframe isolated in a separate renderer process.
  3. The attacker compromises the sandboxed iframe renderer process.
  4. The compromised renderer sends an IPC request for manual fallback password suggestions.
  5. The browser fetches the victim's saved credentials for the precursor URL as exact matches.
  6. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.