Insufficient policy enforcement in Password Manager (CVE-2026-11011)
A missing security policy check in Chrome's Password Manager allows a compromised sandboxed iframe renderer to request and receive plaintext saved credentials for the iframe's precursor origin. The browser incorrectly treats the request as same-origin because it compares the main frame's origin with the iframe's precursor URL rather than its opaque origin.
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.
Overview: A missing ChildProcessSecurityPolicy check in ContentPasswordManagerDriver::PasswordFormsParsed allows a compromised sandboxed iframe process to request password autofill data. Because the browser compares the main frame's origin with the iframe's precursor URL instead of its opaque origin, it treats the request as same-origin, sending plaintext credentials back to the isolated sandboxed renderer.
Affected files:
components/password_manager/content/browser/content_password_manager_driver.cccomponents/password_manager/content/browser/bad_message.cccomponents/password_manager/core/browser/password_form_filling.cccomponents/autofill/core/common/password_form_fill_data.ccchrome/browser/password_manager/chrome_password_manager_client.cccomponents/password_manager/content/browser/form_meta_data.cc
Estimated timestamp from git blame: 2024-06-25
Overview
Note: This is a potential vulnerability identified by an AI agent (Flapjack). The steps below are theoretical and have not been verified with a working proof-of-concept exploit, as the agent does not currently have code execution capabilities.
Chrome's IsolateSandboxedIframes feature places sandboxed iframes into dedicated, isolated renderer processes. The ChildProcessSecurityPolicy (CPSP) correctly denies these opaque-origin processes access to sensitive data, such as passwords, belonging to their precursor origin.
However, a logic flaw in the Password Manager's Mojo message handling allows a compromised sandboxed renderer to bypass this isolation and exfiltrate the precursor origin's saved credentials.
There are two main factors contributing to this vulnerability:
- Missing CPSP Check: When the browser receives a
PasswordFormsParsedMojo message,ContentPasswordManagerDriver::PasswordFormsParsedvalidates the request usingHasValidURL(). This function only callsbad_message::CheckForIllegalURL, which merely rejectsabout:anddata:schemes. It crucially fails to callbad_message::CheckChildProcessSecurityPolicyForURL, meaning the browser never verifies if the requesting process is actually authorized to access data for the given URL. - Cross-Origin Bypass: When deciding whether to autofill credentials immediately or wait for user interaction (
wait_for_username),SendFillInformationToRenderercompares the primary main frame's origin against the form'ssignon_realm. For a sandboxed iframe, thesignon_realmis derived from its precursor URL. If the main frame and the sandboxed iframe share the same precursor origin (e.g.,https://victim.com),IsSameOrigin()evaluates totrue. The browser incorrectly assumes the form is same-origin, bypasses the cross-origin wait requirement, and sends plaintext passwords to the renderer.
Potential Steps to Trigger
- A victim user saves their username and password for
https://victim.comin Chrome. - The victim visits
https://victim.com, which embeds a sandboxed iframe:<iframe sandbox="allow-scripts" src="/sandboxed.html"></iframe>. - The sandboxed iframe is placed in an isolated renderer process with an opaque origin.
- An attacker exploits a separate vulnerability (e.g., a V8 bug) to achieve Remote Code Execution (RCE) within the sandboxed iframe's renderer process.
- The attacker's code bypasses renderer-side checks (like
FrameCanAccessPasswordManager) and crafts a fakeautofill::FormDataobject mimicking a login form with a URL ofhttps://victim.com/sandboxed.html. - The compromised renderer sends a
PasswordFormsParsedMojo message to the browser process containing the fake form. ContentPasswordManagerDriver::PasswordFormsParsedvalidates the URL but misses the CPSP check, allowing the request to proceed.- The browser fetches the saved credentials for
https://victim.comfrom the Password Store. - In
SendFillInformationToRenderer, the browser compares the main frame's origin (https://victim.com) to the form'ssignon_realm(https://victim.com/). Since they match,wait_for_usernameevaluates tofalse. autofill::MaybeClearPasswordValuesleaves the plaintext credentials intact becausewait_for_usernameisfalse.- The browser sends the plaintext username and password back to the compromised sandboxed renderer process via
ApplyFillDataOnParsingCompletion, successfully exfiltrating the credentials.
Suggested Fix
-
Enforce CPSP in
HasValidURL: Incomponents/password_manager/content/browser/content_password_manager_driver.cc, updateHasValidURLto callpassword_manager::bad_message::CheckChildProcessSecurityPolicyForURLinstead ofCheckForIllegalURL. This will immediately terminate the compromised renderer if an opaque/sandboxed process attempts to access password data. -
Strengthen Origin Checks in
password_form_filling.cc: When calculatingwait_for_username_reasoninPasswordFormFilling::SendFillInformationToRenderer, ensure that the origin comparison takes opaque origins into account. Comparing against the precursor URL'ssignon_realmis insufficient if the frame is sandboxed.
Evaluated with Chrome root at commit: False
Results from Fortify so far have been promising, but it can be wrong in its deductions. At this time, it does not produce proof of concepts or fuzzer tests. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve Fortify’s 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 browser's password manager message handler fails to verify that the requesting process is authorised for the form's URL, and its origin comparison uses the sandboxed iframe's precursor URL instead of its opaque origin.
Impact
A compromised sandboxed renderer could exfiltrate plaintext saved credentials for the precursor origin, but the report notes the steps are theoretical and have not been verified with a working proof-of-concept.
What the attacker needed
Victim has saved credentials; victim visits a site with a sandboxed iframe; attacker exploits a separate bug for code execution
The fix
The report suggests enforcing the child process security policy check in the URL validation and strengthening origin checks to account for opaque origins; it does not state that a fix was applied.
How it was found
- Victim saves credentials for a site in Chrome.
- Victim visits the site, which embeds a sandboxed iframe.
- The sandboxed iframe runs in an isolated renderer with an opaque origin.
- Attacker exploits a separate vulnerability to run code in that renderer.
- The compromised renderer sends a fake password form message to the browser.
- The browser returns plaintext credentials 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 tries to keep sandboxed iframes (web page parts with restricted permissions) in separate processes so they cannot access sensitive data like saved passwords. This report says a missing check lets a hacked sandboxed iframe ask for and receive the passwords saved for the main website, because the browser mistakenly thinks the iframe belongs to the same site. The attacker would first need to exploit another bug to run code inside that sandboxed process.
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.