Missing authorization in Passwords (CVE-2026-79212)
The security checks that guard Chromium's password manual fallback were only applied in the trusted context-menu path, so a compromised sandboxed iframe renderer could call the autofill IPC interface directly. That could cause the browser to fetch and fill a saved password belonging to the frame's precursor origin without the cross-domain consent prompt.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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 Chromium's password manual fallback mechanism allows a compromised sandboxed iframe renderer to bypass origin restrictions and access saved credentials of its precursor domain. The security checks introduced via the kPasswordManualFallbackSecurityChecks flag are only enforced on the trusted context-menu building path and can be completely bypassed by directly invoking the mojom::AutofillDriver::AskForValuesToFill IPC interface. This could lead to a cross-origin credential disclosure from a process-isolated sandboxed iframe.
Affected files:
components/password_manager/core/browser/password_autofill_manager.cccomponents/password_manager/core/browser/password_manual_fallback_flow.cccomponents/autofill/core/browser/foundations/browser_autofill_manager.cccomponents/autofill/content/browser/content_autofill_driver.ccchrome/browser/ui/autofill/autofill_context_menu_manager.cc
Estimated timestamp from git blame: 2024-04-08
Potential Root Cause
The security gate kPasswordManualFallbackSecurityChecks is designed to prevent manual fallback credential leakage inside untrusted environments. However, this gate is currently only enforced in exactly one trusted context-menu construction path:
chrome/browser/ui/autofill/autofill_context_menu_manager.cc:
if (base::FeatureList::IsEnabled(
password_manager::features::kPasswordManualFallbackSecurityChecks) &&
(!password_manager_driver.HasValidURL(/*may_kill_renderer*/ false) ||
!password_manager_driver.IsRenderFrameHostSupported())) {
return false;
}
A compromised renderer process can completely bypass the context menu builder and directly invoke the underlying browser-side Mojo IPC sink, mojom::AutofillDriver::AskForValuesToFill.
When a compromised renderer directly calls AskForValuesToFill with the trigger source set to kManualFallbackPasswords, the browser process routes the call as follows:
ContentAutofillDriver::AskForValuesToFill(components/autofill/content/browser/content_autofill_driver.cc) accepts the call and runsbad_message::CheckArgswhich permitskManualFallbackPasswordsand only blocklists unrelated trigger sources.- The request is routed via
RouteToManagertoBrowserAutofillManager::OnAskForValuesToFillImpl(components/autofill/core/browser/foundations/browser_autofill_manager.cc). - The manager identifies the password request and delegates it to the sandboxed frame's
PasswordAutofillManager::ShowSuggestions(components/password_manager/core/browser/password_autofill_manager.cc). ShowSuggestionsidentifies the manual fallback trigger source and instantiatesPasswordManualFallbackFlow(components/password_manager/core/browser/password_manual_fallback_flow.cc).- The
PasswordManualFallbackFlowconstructor queriespassword_manager_driver_->GetLastCommittedURL()to obtain the realm for database lookup. For a sandboxed iframe with an opaque origin, this returns the HTTP/HTTPS precursor URL (e.g.,https://victim.example/). FormFetcherImplfetches the credentials matchinghttps://victim.example/from the user's password database.- When generating suggestions, because the matched credential's realm matches the frame's precursor URL,
is_cross_domainevaluates tofalseincomponents/password_manager/core/browser/password_suggestion_generator.cc. - The browser displays the trusted popup over the sandboxed iframe. If the root suggestion is marked unacceptable because the form cache is empty, the child suggestions (such as
SuggestionType::kFillPassword) are still generated as acceptable. - When the user clicks on the acceptable child suggestion,
EnsureCrossDomainPasswordUsageGetsConsentskips the confirmation dialog (sinceis_cross_domainis false) and callsPasswordManagerDriver::FillFieldwith the plaintext password payload. ContentPasswordManagerDriver::FillField(components/password_manager/content/browser/content_password_manager_driver.cc) lacks anyHasValidURL()check and directly forwards the plaintext credential over the Mojo associated interface back to the compromised renderer'sPasswordAutofillAgent.
Potential Attack Steps
Note: Since our testing framework does not currently have the capability to run execution code, these are potential/suggested steps to demonstrate the vulnerability:
- Ensure
kIsolateSandboxedIframesis enabled. A victim user has a saved credential forhttps://victim.example/in their Chrome profile. - The user visits a page that embeds a sandboxed iframe pointing to
https://victim.example/(e.g.,<iframe sandbox="allow-scripts" src="https://victim.example/sandboxed.html">), which forces the frame to load in a process-isolated sandboxed renderer process. - The attacker compromises this sandboxed renderer process.
- The compromised renderer directly crafts and sends a
mojom::AutofillDriver::AskForValuesToFillIPC message withtrigger_sourceandpassword_request.field.trigger_sourceset toAutofillSuggestionTriggerSource::kManualFallbackPasswords. - The browser process fetches the credentials matching
https://victim.example/and presents the trusted manual fallback popup to the user. - The user selects the child password-filling suggestion from the popup.
- The browser process, skipping the cross-domain consent warning, transmits the cleartext password back to the compromised renderer.
Suggested Fix
Enforce origin and URL security gates at the browser-side IPC entry point rather than exclusively at the context-menu builder. Specifically, validate the calling context's URL and frame support within PasswordAutofillManager::ShowSuggestions or BrowserAutofillManager::OnAskForValuesToFillImpl. If the kPasswordManualFallbackSecurityChecks flag is enabled, reject manual fallback requests when !password_manager_driver.HasValidURL(/*may_kill_renderer=*/false) or !password_manager_driver.IsRenderFrameHostSupported() evaluates to true, thus shutting down the IPC-direct bypass route from sandboxed frames.
Evaluated with Chrome root at commit: 3947e01999a53d4e2382e39736cb79d79c7dffcf
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 origin and frame-support security gate was enforced only in the context-menu construction path, leaving the browser-side IPC entry point for manual fallback requests unchecked.
Impact
A compromised sandboxed renderer could obtain a saved password for the frame's precursor origin, though the user still has to select the suggestion in the popup and the report notes the steps are potential rather than executed.
What the attacker needed
Sandboxed iframe isolation enabled; victim has a saved password for the site; attacker compromises the sandboxed renderer; victim clicks the password suggestion
The fix
The origin and frame-support checks should be enforced at the browser-side IPC entry point, rejecting manual fallback requests from frames without a valid URL or frame support when the feature flag is on.
How it was found
- Have a victim with a saved credential for a site, with sandboxed iframe isolation enabled.
- Get the victim to load a page embedding a sandboxed iframe pointing at that site, so it runs in an isolated process.
- Compromise that sandboxed renderer process.
- From the compromised renderer, send the autofill request directly with the manual fallback password trigger source.
- The browser fetches matching credentials and shows the trusted fallback popup.
- The user picks the password suggestion and the cleartext password is sent back to the compromised 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.
Chrome splits web pages into separate processes, and a sandboxed frame is meant to be treated as untrusted. The check that stops saved passwords being offered inside such a frame was placed in the menu code rather than at the point where the frame's process talks to the browser, so a malicious frame could ask for passwords another way. If the user then clicked the suggestion, the saved password could be handed back to the attacker's code.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.