Inappropriate implementation in Passwords (CVE-2026-18010)
The Move-Passwords promo card in chrome://password-manager inserted the signed-in account's email into a localised description string without HTML escaping, then rendered it as HTML after a permissive sanitiser. An attacker who could tamper with the account email (via a compromised network process) could inject links or basic formatting into trusted first-party browser UI for spoofing or phishing.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 50 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 sanitizer-bounded HTML injection vulnerability exists in the chrome://password-manager WebUI's Move-Passwords promo card. By manipulating the primary account email via a compromised network process, a remote attacker can inject arbitrary links or basic formatting elements into the promo card description. This allows UI spoofing and link injection inside trusted, first-party Chrome WebUI pages.
Affected files:
chrome/browser/ui/webui/password_manager/promo_cards/move_passwords_promo.ccchrome/browser/resources/password_manager/promo_cards/promo_card.tschrome/browser/resources/password_manager/promo_cards/promo_card.html
Estimated timestamp from git blame: 2024-01-09
Potential Sanitizer-Bounded HTML Link Injection into chrome://password-manager Promo Card
Summary
A potential sanitizer-bounded HTML injection vulnerability exists in the chrome://password-manager WebUI's Move-Passwords promo card. By manipulating the primary account's email via a compromised network process, a remote attacker can potentially inject arbitrary links or basic HTML elements into the promo card description, enabling UI spoofing or phishing inside trusted browser UI.
Root Cause Analysis
In chrome/browser/ui/webui/password_manager/promo_cards/move_passwords_promo.cc at lines 124-133, MovePasswordsPromo::GetDescription() constructs the promo card's description by substituting the signed-in account's email into a localized string:
std::u16string MovePasswordsPromo::GetDescription() const {
CHECK(profile_);
return base::FeatureList::IsEnabled(switches::kPasswordUploadUiUpdate)
? l10n_util::GetPluralStringFUTF16(...)
: l10n_util::GetStringFUTF16(
IDS_PASSWORD_MANAGER_UI_MOVE_PASSWORDS_PROMO_CARD_DESCRIPTION,
GetPrimaryAccountEmailFromProfile(profile_));
}
The helper function GetPrimaryAccountEmailFromProfile() returns the primary account's email directly:
std::u16string GetPrimaryAccountEmailFromProfile(Profile* profile) {
...
return base::UTF8ToUTF16(
identity_manager->GetPrimaryAccountInfo(signin::ConsentLevel::kSignin)
.email);
}
Because the email is substituted into the localized template via raw placeholder replacement (l10n_util::GetStringFUTF16), any HTML tags present in the email string are preserved without escaping.
When the user visits chrome://password-manager, PromoCardsHandler retrieves the available promo cards and returns the formatted description to the WebUI frontend via WebUI message passing (chrome/browser/ui/webui/password_manager/promo_cards_handler.cc:46-55).
On the frontend, promo_card.html renders the description via inner-h-t-m-l:
<div id="description" class="cr-primary-text label"
inner-h-t-m-l="[[getDescription_(promoCard)]]"></div>
And promo_card.ts filters the description using sanitizeInnerHtml() (which calls parseHtmlSubset() in ui/webui/resources/js/parse_html_subset.ts):
private getDescription_(): TrustedHTML {
return sanitizeInnerHtml(this.promoCard.description);
}
Because parseHtmlSubset permits standard formatting tags (e.g., <a>, <b>, <i>), and allows href attributes on <a> tags starting with chrome:// or https://, any anchor tags injected into the email string will survive sanitization and be rendered as clickable, live links within trusted first-party UI.
Suggested/Potential Exploit Scenario
Note: These are suggested/potential steps; our tooling doesn't yet have the ability to run code.
- An attacker compromises the network process (representing the standard threat model boundary for network-to-browser exploits).
- When the user's browser requests profile info from the Gaia
/userinfoendpoint, the attacker intercepts the response and returns a crafted JSON payload containing a malicious"email"field containing HTML, for example:"email": "<a href='https://attacker.example/'>Verify your account</a>" - The browser process ingests the payload via
AccountInfoFromUserInfo()(components/signin/internal/identity_manager/account_info_util.cc), accepts it without format validation, and updates the primary account email. - When the user opens
chrome://password-manager(assuming they have at least one device-only password, makingMovePasswordsPromo::ShouldShowPromo()true), the page fetches and displays the card. - The description renders with a live, functional, first-party-styled link pointing to
https://attacker.example/or a sensitive internal page likechrome://settings/resetProfileSettings.
Suggested Fix
The email address must be escaped before being substituted into the localized string template.
In chrome/browser/ui/webui/password_manager/promo_cards/move_passwords_promo.cc, include base/strings/escape.h and wrap the email in base::EscapeForHTML() before formatting:
#include "base/strings/escape.h"
...
l10n_util::GetStringFUTF16(
IDS_PASSWORD_MANAGER_UI_MOVE_PASSWORDS_PROMO_CARD_DESCRIPTION,
base::EscapeForHTML(GetPrimaryAccountEmailFromProfile(profile_)))
Alternatively, formatting can be refactored to perform the substitution on the WebUI/TypeScript side where htmlEscape or other WebUI sanitization routines can be applied.
Evaluated with Chrome root at commit: b2fea2e31df308d0f04e4ae47def4c4f939ee141
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 account email was substituted into a localised string with raw placeholder replacement and never HTML-escaped before being rendered through innerHTML, relying only on a sanitiser that permits anchor and formatting tags.
Impact
An attacker could inject links or basic formatting into trusted first-party Chrome UI, enabling UI spoofing or phishing, but only after already compromising the network process; the sanitiser limits injection to permitted tags and chrome:// or https:// links.
What the attacker needed
Compromised network process; at least one device-only password; victim opens chrome://password-manager
The fix
The email should be escaped with an HTML escape helper before being substituted into the localised string, or the substitution should move to the frontend where escaping is applied.
How it was found
- Compromise the network process to reach the assumed threat-model boundary.
- Intercept the response from the Gaia userinfo endpoint and return a crafted email field containing HTML.
- The browser accepts the payload without format validation and updates the primary account email.
- Open chrome://password-manager with at least one device-only password so the promo card is shown.
- The description renders with a live first-party-styled link to the attacker's page or an internal chrome:// page.
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.
Chrome's password manager page shows a small promo card that includes your account email. The page treated that email as HTML markup rather than plain text, so if someone could change the email to contain a link, the page would draw a real clickable link inside trusted browser settings. The report is a theoretical analysis: the attacker would first need to already control the browser's network process, which is a serious compromise in itself.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.