Inappropriate implementation in Passwords (CVE-2026-17833)
Chrome's password generation used the top-level frame's origin instead of the subframe's origin when fetching password requirements, so an attacker could seed weak requirements for their own domain and have those applied to a victim site embedded in an iframe. This could cause a weak or predictable password to be generated and saved for the victim site.
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 Chrome's password generation logic allows cross-origin password requirements to leak and be influenced by an embedding main frame. When generating a password in a subframe, Chrome erroneously retrieves password requirements using the top-level main frame's origin instead of the subframe's origin. An attacker could potentially abuse this to force weak or predictable password generation requirements on embedded victim subframes.
Affected files:
chrome/browser/ui/passwords/password_generation_popup_controller_impl.ccchrome/browser/touch_to_fill/password_manager/password_generation/android/touch_to_fill_password_generation_controller.cc
Estimated timestamp from git blame: 2018-06-12
Detailed Writeup
Root Cause Analysis
During password generation in cross-origin frames, Chrome queries the PasswordRequirementsService to retrieve requirements specifications (PasswordRequirementsSpec) used to constrain the generated password length and alphabet. However, both the desktop popup controller and the Android Touch-to-Fill controller erroneously pass the tab's top-level primary main-frame origin to the generation helper rather than the origin of the subframe initiating the request.
Specifically, in chrome/browser/ui/passwords/password_generation_popup_controller_impl.cc:
void PasswordGenerationPopupControllerImpl::GeneratePasswordValue(
PasswordGenerationType generation_type) {
if (current_generated_password_.empty() || state_ != kOfferGeneration) {
current_generated_password_ =
driver_->GetPasswordGenerationHelper()->GeneratePassword(
web_contents()->GetLastCommittedURL().DeprecatedGetOriginAsURL(), // <-- Main frame origin is used
generation_type, form_signature_, field_signature_, max_length_);
}
}
Similarly, in chrome/browser/touch_to_fill/password_manager/password_generation/android/touch_to_fill_password_generation_controller.cc:
std::u16string generated_password =
frame_driver_->GetPasswordGenerationHelper()->GeneratePassword(
web_contents_->GetLastCommittedURL().DeprecatedGetOriginAsURL(), type, // <-- Main frame origin is used
generation_element_data_.form_signature, ...);
On iOS, in components/password_manager/ios/shared_password_controller.mm:
std::u16string generatedPassword =
[_driverHelper PasswordGenerationHelper:frame]->GeneratePassword(
[self lastCommittedURL], // <-- Main frame URL is used
isManuallyTriggered ? PasswordGenerationType::kManual
: PasswordGenerationType::kAutomatic,
formSignature, fieldSignature, maxLength);
When PasswordRequirementsService::GetSpec is called, it checks its domain-keyed cache for the main-frame origin instead of the subframe's origin:
PasswordRequirementsSpec PasswordRequirementsService::GetSpec(
const GURL& main_frame_domain,
autofill::FormSignature form_signature,
autofill::FieldSignature field_signature) {
...
auto iter_by_domain = specs_for_domains_.Get(main_frame_domain);
if (iter_by_domain != specs_for_domains_.end()) {
...
}
}
Potential Exploitation Scenario
An attacker embedding a victim registration page (https://victim.com/signup.html) inside an iframe on https://attacker.com could potentially leverage this behavior to enforce predictable password requirements:
- Database Seeding: The attacker seeds the Autofill crowdsourcing database with a weak/degraded requirement specification for
attacker.com(e.g., restricting character classes or forcing specific symbol character sets). - Subframe Rendering: The attacker embeds
https://victim.com/signup.htmlin an iframe. - Triggering Generation: When the user interacts with the password field in the victim's iframe, the browser invokes password generation.
- Requirements Leakage: Instead of querying
victim.com, Chrome retrieves the pre-cached degraded specification for the top-level domainattacker.com. - Deterministic Password Generation: The password generator utilizes the attacker-controlled specification, generating a weak or deterministic password (e.g., consisting entirely of
!) which is subsequently saved undervictim.comin the user's password manager, potentially allowing the attacker to compromise the user's account.
Note: These are potential steps based on static code analysis; we do not have a running environment to construct or execute a live proof of concept.
Suggested Fix
The password generation controllers should utilize the initiating subframe's actual origin rather than the main frame's URL. The frame's origin can be retrieved securely from the corresponding frame driver via driver_->GetLastCommittedOrigin().
For example, update PasswordGenerationPopupControllerImpl::GeneratePasswordValue to:
current_generated_password_ =
driver_->GetPasswordGenerationHelper()->GeneratePassword(
driver_->GetLastCommittedOrigin().GetURL(),
generation_type, form_signature_, field_signature_, max_length_);
A similar change should be applied to the Android Touch-to-Fill and iOS controllers to ensure consistent use of the subframe's origin.
Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379
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
The password generation controllers passed the top-level main frame's origin to the requirements service instead of the initiating subframe's origin.
Impact
An attacker could potentially force a weak or predictable password to be generated and saved for a victim site, which may allow the attacker to compromise the user's account; the report notes this is based on static analysis without a live proof of concept.
What the attacker needed
Victim site allows embedding in an iframe; attacker can seed Autofill crowdsourcing data; user triggers password generation in the iframe
The fix
The password generation controllers should use the initiating subframe's origin, obtained from the frame driver, instead of the main frame's URL.
How it was found
- The attacker seeds the Autofill crowdsourcing database with a weak requirement specification for attacker.com.
- The attacker embeds the victim's signup page in an iframe on attacker.com.
- The user interacts with the password field in the victim's iframe, triggering password generation.
- Chrome retrieves the cached degraded specification for attacker.com instead of victim.com.
- The password generator uses the attacker-controlled specification to create a weak or deterministic password.
- The weak password is saved under victim.com in the user's password manager.
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 Chrome suggests a strong password, it looks up rules for the website you are on, such as how long the password must be. This report says that if a sign-up form is shown inside another page, Chrome looked up the rules for the outer page instead of the sign-up form's page. An attacker could set bad rules for their own page and make Chrome create a weak password for the victim's site.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.