Skip to content
Info disclosure Advisory Intermediate CVE-2026-17840

Incorrect security UI in Passwords (CVE-2026-17840)

The OS biometric prompt for filling an HTTP-auth credential showed the top-level page's origin instead of the origin of the cross-origin iframe that issued the authentication challenge. An attacker could make the prompt claim the credential was for a victim site while the credential was actually for the attacker's site, misleading the user into approving the fill.

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: When filling an HTTP-auth credential that requires biometric re-authentication on desktop platforms (macOS, Windows, and ChromeOS), the OS biometric prompt displays the top-level page origin instead of the subframe's challenger origin. This creates a potential origin-confusion vulnerability in trusted OS UI, where a user may authorize password autofill believing it is for the top-level site when it is actually filled for a cross-origin iframe.

Affected files:

  • components/password_manager/core/browser/http_auth_manager_impl.cc
  • chrome/browser/password_manager/chrome_password_manager_client.cc

Estimated timestamp from git blame: 2025-10-23

Root Cause

In HttpAuthManagerImpl::Autofill(), the message shown in the OS biometric prompt (Touch ID, Windows Hello, or ChromeOS fingerprint) is built using the per-WebContents client's last-committed URL (which returns the primary main-frame URL) rather than the HTTP-auth challenger origin to which the credential is keyed.

Specifically, in components/password_manager/core/browser/http_auth_manager_impl.cc around line 120:

C++
std::u16string message;
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS)
const std::u16string origin = base::UTF8ToUTF16(
    GetShownOrigin(url::Origin::Create(client_->GetLastCommittedURL())));
message =
    l10n_util::GetStringFUTF16(IDS_PASSWORD_MANAGER_FILLING_REAUTH, origin);
#endif
authenticator_->AuthenticateWithMessage(message, std::move(filling_callback));

client_ is an instance of ChromePasswordManagerClient (one per WebContents), and its GetLastCommittedURL() method returns the top-level main frame's URL (see chrome/browser/password_manager/chrome_password_manager_client.cc around line 1144):

C++
const GURL& ChromePasswordManagerClient::GetLastCommittedURL() const {
  return web_contents()->GetLastCommittedURL();
}

Meanwhile, the target credential and form_manager_ are bound to the challenger origin (e.g., https://attacker.example). The challenger origin is available within Autofill() as url::Origin::Create(preferred_match.url) and form_manager_->GetURL(), but is not utilized for the prompt message construction.

Potential Impact

This is a potential CWE-346 origin-confusion vulnerability in highly trusted OS-rendered UI (such as macOS Touch ID or Windows Hello prompts). Because the prompt text is derived from the top-frame origin rather than the bound credential, the OS dialog informs the user "Google Chrome is trying to fill your password on victim.example" while the credential queued for filling is actually for attacker.example and will be delivered to a LoginView that submits to attacker.example.

Note that this does not allow direct cross-origin credential theft (e.g., filling a victim.example credential on attacker.example) because OnReauthCompleted() contains post-biometric checks that verify the credential origin against the observed/challenger origin. However, it completely misrepresents which site is receiving the autofilled credentials within the OS security prompt.

Potential Steps to Trigger (unverified by automated execution)

  1. A user enables "Use [Touch ID / Windows Hello / fingerprint] when filling passwords" in chrome://password-manager/settings.
  2. The user has a saved HTTP Basic-auth credential for https://attacker.example.
  3. The user navigates to https://victim.example, which embeds a cross-origin subframe pointing to https://attacker.example/protected.
  4. The subframe returns a 401 WWW-Authenticate challenge.
  5. Chrome's login delegate flow is triggered, and PasswordFormManager fetches the saved credential for https://attacker.example.
  6. HttpAuthManagerImpl::Autofill() is invoked. The prompt origin is derived from web_contents()->GetLastCommittedURL() (which is https://victim.example).
  7. The OS modal displays "Google Chrome is trying to fill your password on victim.example" while the actual credential being released is for attacker.example.
  8. Upon biometric authorization, the saved attacker.example credential is auto-filled and sent to the attacker domain, despite the OS prompt claiming it was for victim.example.

Suggested Fix

Update HttpAuthManagerImpl::Autofill() in components/password_manager/core/browser/http_auth_manager_impl.cc to construct the prompt message using the origin of the matched credential/form rather than client_->GetLastCommittedURL():

C++
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS)
  const std::u16string origin = base::UTF8ToUTF16(
      GetShownOrigin(url::Origin::Create(preferred_match.url)));
  message =
      l10n_util::GetStringFUTF16(IDS_PASSWORD_MANAGER_FILLING_REAUTH, origin);
#endif

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.

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

The prompt message was built from the browser tab's last committed URL (the top-level page) rather than from the origin of the credential being filled.

Impact

The OS security prompt could misrepresent which site receives the autofilled credential, though post-biometric checks prevent direct cross-origin credential theft.

What the attacker needed

Biometric re-auth enabled; saved HTTP-auth credential for attacker site; victim site embeds attacker subframe

The fix

The prompt message should be built from the origin of the matched credential or form rather than the top-level page URL.

How it was found

  1. The user enables biometric re-authentication for password filling in Chrome settings.
  2. The user has a saved HTTP Basic-auth credential for the attacker's site.
  3. The user visits a victim site that embeds a cross-origin subframe pointing to the attacker's protected page.
  4. The subframe returns a 401 authentication challenge.
  5. Chrome fetches the saved credential for the attacker's site and invokes the autofill path.
  6. The OS prompt shows the victim site's origin while the credential for the attacker's site is released after biometric approval.

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 website asks for a username and password using a built-in browser login box, Chrome can save that password. If you turn on extra protection, Chrome asks for your fingerprint or face before it fills the password. This report says that prompt named the wrong website: it showed the page you were looking at, not the hidden frame that was actually asking for the password. So you could approve a fill thinking it was for one site when it was really for another.

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.