Insufficient policy enforcement in Passwords (CVE-2026-13933)
The browser-side check that decides whether a password form sits in a cross-origin frame only compared the target frame's origin with the top-level origin, ignoring frames in between. In a top-level victim page containing an attacker frame that itself contains a victim login frame, cleartext passwords were sent to the renderer process memory, which could be read if Site Isolation was disabled and the renderer compromised.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 48 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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The password manager's browser-side check for cross-origin iframes incorrectly compares only the target frame's origin against the top-level origin. In 'sandwich' scenarios (A-B-A), this allows cleartext passwords to be transmitted to the renderer process memory, bypassing intended security gates. This represents a defense-in-depth failure that could be exploited in environments where Site Isolation is disabled or relaxed.
Affected files:
components/password_manager/core/browser/password_form_filling.ccchrome/browser/password_manager/chrome_password_manager_client.cccomponents/password_manager/content/browser/content_password_manager_driver.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
There is a potential security vulnerability in how Chromium's password manager determines if a subframe is 'cross-origin' before sending cleartext passwords for autofill. The browser-side enforcement logic currently only compares the origin of the frame being filled against the origin of the primary main frame. It fails to account for intermediate ancestors in the frame tree.
Technical Details
The vulnerability exists in components/password_manager/core/browser/password_form_filling.cc. When deciding whether to wait for a username before filling (wait_for_username), the code performs the following check (lines 238-240):
} else if (!client->GetLastCommittedOrigin().IsSameOriginWith(
driver->GetLastCommittedOrigin())) {
wait_for_username_reason = WaitForUsernameReason::kCrossOriginIframe;
Here, client->GetLastCommittedOrigin() returns the origin of the primary main frame (chrome/browser/password_manager/chrome_password_manager_client.cc:1152), while driver->GetLastCommittedOrigin() returns the origin of the subframe where the form was detected.
In a nested frame scenario such as https://victim.com (top) -> https://attacker.com (middle) -> https://victim.com/login (bottom), both the top-level and bottom-level frames are same-origin. The browser-side logic erroneously concludes that the context is not cross-origin and sets wait_for_username to false.
Consequently, the browser proceeds to deliver PasswordFormFillData containing cleartext credentials to the renderer process via Mojo. Before transmission, autofill::MaybeClearPasswordValues (components/autofill/core/common/password_form_fill_data.cc:92) is called to sanitize the data. However, because wait_for_username is false, it returns the data unchanged, leaving the cleartext passwords intact.
While the renderer-side check in PasswordAutofillAgent::IsInCrossOriginIframeOrEmbeddedFrame correctly identifies the intermediate cross-origin ancestor and suppresses automatic filling into the DOM, the cleartext credentials have already been delivered to the renderer process's memory. In configurations where Site Isolation is disabled (e.g., certain enterprise policies or low-memory devices), a compromised renderer for attacker.com sharing the same process could extract these credentials from memory.
Potential Step-by-Step Attack Vector
- An attacker compromises or hosts a site (
attacker.com) and manages to have it embedded in an iframe on a victim site (victim.com). - The attacker's frame embeds a login page from the victim site:
<iframe src="https://victim.com/login">. - The browser, seeing the same origin for the top and bottom frames, transmits cleartext credentials for
victim.comto the renderer process for the bottom iframe. - If Site Isolation is off,
attacker.comand the bottomvictim.comframe share a process. An attacker with renderer-level compromise (e.g., via a separate V8 or memory corruption bug) reads the process memory to steal the credentials.
Suggested Fix
The browser-side check in SendFillInformationToRenderer should be updated to verify the entire ancestor chain of the target frame. It should check if any frame in the hierarchy between the target frame and the primary main frame is cross-origin relative to the target frame. This would align the browser-side enforcement with the more robust renderer-side checks.
Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e
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 browser-side origin check compared only the target frame's origin with the primary main frame's origin and never inspected intermediate ancestor frames.
Impact
Cleartext credentials could reach renderer memory and be stolen only where Site Isolation is disabled and the renderer is already compromised; the renderer-side check still suppressed automatic filling into the page.
What the attacker needed
Attacker page framed on victim site; victim login page nested inside attacker frame; Site Isolation disabled; separate renderer compromise bug
The fix
The browser-side check should verify the whole ancestor chain and treat the frame as cross-origin if any frame between it and the main frame is cross-origin.
How it was found
- Get an attacker-controlled page embedded in a frame on the victim site.
- Have the attacker frame embed the victim's login page in a further nested frame.
- The browser treats top and bottom frames as same-origin and sends cleartext credentials to the renderer for the inner frame.
- With Site Isolation off, the attacker frame shares a process and can read those credentials from memory after a renderer compromise.
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.
A web page can contain another page inside it, called a frame, and frames can be nested. Chromium's password manager tries not to hand saved passwords to a frame that belongs to a different website than the page around it. Here it only looked at the outermost page and the innermost frame, so a different website sitting in the middle was missed and the password was passed down anyway.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.