Insufficient validation of untrusted input in Passwords (CVE-2026-17831)
A browser-side handler for the password generation interface only checked that the calling frame was not prerendering, not that it was still active. A compromised renderer whose frame sat in the back/forward cache could therefore ask the browser to draw a trusted native password popup with attacker-chosen text and position over a different cross-origin page.
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 logic flaw in ChromePasswordManagerClient allows a compromised renderer residing in the Back/Forward Cache (BFCache) to display a trusted native password-generation popup. Because the browser fails to verify that the calling RenderFrameHost is active, the popup can be positioned and displayed over an unrelated cross-origin page.
Affected files:
chrome/browser/password_manager/chrome_password_manager_client.cc
Estimated timestamp from git blame: 2024-07-24
Description and Root Cause
In ChromePasswordManagerClient, the Mojo interface autofill::mojom::PasswordGenerationDriver is bound to a RenderFrameHost via a content::RenderFrameHostReceiverSet:
content::RenderFrameHostReceiverSet<autofill::mojom::PasswordGenerationDriver>
password_generation_driver_receivers_;
Unlike traditional AssociatedInterfaceRegistry bindings, receivers in RenderFrameHostReceiverSet only get removed upon RenderFrameDeleted. When a page navigates and enters the Back/Forward Cache (BFCache), the frame is not deleted; consequently, the receiver's Mojo pipe remains open and active. Furthermore, no BackForwardCacheMessageFilter is installed on this receiver set.
When a browser-side handler on PasswordGenerationDriver receives a message, it performs validation checks using CheckFrameNotPrerendering in chrome/browser/password_manager/chrome_password_manager_client.cc:
void ChromePasswordManagerClient::ShowPasswordEditingPopup(...) {
content::RenderFrameHost* rfh =
password_generation_driver_receivers_.GetCurrentTargetFrame();
if (!password_manager::bad_message::CheckFrameNotPrerendering(rfh)) {
return;
}
...
This validation only checks if the frame is in the kPrerendering state. It does not check if the frame is in the kInBackForwardCache state or if rfh->IsActive() is true.
Because the popup's container view is resolved dynamically using the currently active WebContents via WebContentsObserver::web_contents()->GetNativeView(), the popup is drawn on the top-level widget of the active tab. If the tab has navigated to a different cross-origin page while the attacker's frame is in the BFCache, the trusted native UI bubble will overlay the active (victim's) page with attacker-controlled text and coordinates.
Potential Attack Scenario
(Note: These are potential steps; our security review is based on static code analysis and we have not run an active Proof of Concept)
- An attacker compromises the renderer process for
https://attacker.com. - The user navigates the tab from
https://attacker.comtohttps://victim.com. rfh_attackerenters the BFCache (LifecycleState::kInBackForwardCache), leaving the associated Mojo pipe forPasswordGenerationDriveropen.- The compromised renderer ignores the renderer-side suspension/freeze rules and dispatches
ShowPasswordEditingPopupwith an attacker-defined coordinates bounding box and a custompassword_valuestring. - The browser processes the request, bypassing
CheckFrameNotPrerenderingsince the frame is cached and not prerendering. - The browser launches the trusted native password popup overlay containing the attacker's custom string directly over
https://victim.com.
Suggested Fix
To remediate this issue, ensure that the calling RenderFrameHost is active before displaying any UI or completing Mojo processing. In chrome/browser/password_manager/chrome_password_manager_client.cc, check rfh->IsActive() inside the relevant Mojo entry points (e.g., ShowPasswordEditingPopup and AutomaticGenerationAvailable):
content::RenderFrameHost* rfh =
password_generation_driver_receivers_.GetCurrentTargetFrame();
if (!rfh || !rfh->IsActive()) {
return;
}
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
Likely the Mojo receiver set for the password generation driver is only torn down when the frame is deleted, and the handler validates only the prerendering state rather than whether the frame is active.
Impact
A compromised renderer could overlay a trusted native password popup with attacker-controlled text and position on an unrelated cross-origin page, which could mislead the user; the report is based on static analysis and no proof of concept was run.
What the attacker needed
Attacker already controls a renderer; victim navigates to another site; frame kept in back/forward cache
The fix
The handler should reject the request unless the calling frame exists and is active, for example by checking that the frame is active in the relevant Mojo entry points.
How it was found
- An attacker compromises the renderer process for their own site.
- The user navigates the tab from the attacker site to the victim site.
- The attacker frame enters the back/forward cache, leaving its Mojo pipe open.
- The compromised renderer ignores suspension rules and sends the popup request with chosen coordinates and password text.
- The browser accepts it because the frame is cached, not prerendering.
- The trusted native popup appears over the victim 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.
When you navigate away from a page, the browser may keep it in memory so the back button is instant; this is the back/forward cache. The report says a malicious page kept there could still send messages to the browser and make it show a genuine-looking password popup on top of a different site. The popup is real browser interface, so its text and position could mislead the user.
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.