Inappropriate implementation in Passwords (CVE-2026-10937)
The Automated Password Change flow sends click and typing actions to the primary main frame using process-local DOM node identifiers, even when the target element belongs to a different frame. A malicious cross-origin iframe could spoof an identifier to trigger clicks on sensitive elements in the embedding page, or a malicious parent page could steal credentials intended for a secure iframe.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 50 days
Flapjack, 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 go/chrome-ai-generated-security-bugs-faq for more information.
Overview: The Automated Password Change (APC) flow incorrectly directs DOM-based actions like clicking and typing to the primary main frame, even when the intended target element belongs to a different frame. This allows a malicious cross-origin iframe to trigger actions on sensitive elements in the embedding page by spoofing DOM identifiers, or a malicious parent to steal credentials destined for a secure iframe.
Affected files:
chrome/browser/password_manager/password_change/button_click_helper.ccchrome/browser/password_manager/password_change/typing_helper.ccchrome/browser/password_manager/password_change/form_filling_helper.cc
Estimated timestamp from git blame: 2025-11-26
Summary
A potential vulnerability in the Automated Password Change (APC) flow allows a malicious cross-origin iframe to perform unauthorized actions (clicks or text entry) on the embedding page, or a malicious parent page to steal credentials intended for a secure iframe.
This occurs because ButtonClickHelper and TypingHelper unconditionally target the primary main frame when sending InvokeTool IPCs, while relying on DOMNodeId values that are process-local and can be easily collided by an attacker in a different renderer process.
Vulnerability Details
-
Process-Local Identifiers: In Chromium's multi-process architecture (Site Isolation), a
DOMNodeIdis only unique within its own renderer process. They are generated using a static counterlast_id(third_party/blink/renderer/core/dom/dom_node_ids.cc). Different processes (e.g., a main frame and a cross-origin iframe) will predictably generate nodes with identicalDOMNodeIdvalues. -
Cross-Frame Content Collection: The APC flow uses
optimization_guide::GetAIPageContentto gather DOM information from all frames on a page. Theinclude_same_site_onlyflag defaults to false, so the resulting tree includes nodes from the main frame and all cross-origin subframes, each associated with its respective process-localDOMNodeId. -
IPC Targeting Flaw: When the ML model identifies a node to interact with, it returns the raw
DOMNodeId. BothButtonClickHelperandTypingHelperare hardcoded to retrieve theChromeRenderFrameinterface from thePrimaryMainFrameand send the action command to it, regardless of which frame the node actually belongs to:C++ // chrome/browser/password_manager/password_change/button_click_helper.cc web_contents->GetPrimaryMainFrame() ->GetRemoteAssociatedInterfaces() ->GetInterface(&chrome_render_frame_); chrome_render_frame_->InvokeTool(...) -
Validation Bypass: Although the renderer includes a
ValidateTimeOfUsecheck, it is currently bypassed.ButtonClickHelperdoes not provide anobserved_target. Whenobserved_targetis null, the renderer returns akOksuccess result without performing identity verification (chrome/renderer/actor/tool_base.cc:376).
Suggested Exploitation Scenarios
(Note: These are potential steps as we have not executed a working proof of concept.)
Scenario A: Confused Deputy (CSRF)
- An attacker-controlled cross-origin iframe is embedded in a target site (e.g., via malicious ad).
- The target site has a sensitive button in the main frame (e.g., "Delete Account") with a specific
DOMNodeId(e.g., 42). - The attacker's iframe deterministically generates DOM elements to ensure one of its nodes has a
DOMNodeIdof 42, styling it to look like a password submission button. - The APC ML model selects the attacker's fake button and returns
DOMNodeId = 42. - The browser blindly sends a
ClickActionfor ID 42 to the primary main frame, causing the main frame to click its own sensitive "Delete Account" button.
Scenario B: Credential Theft
- A legitimate site hosts its password change form in a secure cross-origin iframe.
- An attacker controls the parent page (e.g., a malicious site embedding the secure iframe).
FormFillingHelper::FillFieldextracts the rawrenderer_idfrom anautofill::FieldGlobalId, discarding thehost_frametoken.TypingHelpersends the new password and theDOMNodeIdto the primary main frame (the attacker's page) instead of the secure iframe.- The attacker's page intercepts the keystrokes and steals the password.
Suggested Fix
- Update Protos: Modify the
OpenFormResponseDataandSubmitFormResponseDataprotos to include frame identifiers (e.g., aLocalFrameTokenor the frame's origin) alongside theDOMNodeId. - Target Correct Frames: Modify
ButtonClickHelperandTypingHelperto accept a specificRenderFrameHostor frame token, and route theInvokeToolIPC to that specific frame rather than hardcoding thePrimaryMainFrame. - Preserve Frame Tokens: Ensure
FormFillingHelperretains and utilizes thehost_frametoken fromautofill::FieldGlobalIdwhen delegating tasks toTypingHelper.
Evaluated with Chrome root at commit: c0eb5541aebfa4ea08806eaf6e94bcc69f87ab2f
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 helpers hardcode the primary main frame as the IPC target and rely on process-local DOMNodeId values that can collide across renderer processes, with no frame identity check.
Impact
A malicious cross-origin iframe could trigger clicks on sensitive elements in the embedding page, or a malicious parent page could steal credentials intended for a secure iframe; the report notes no working proof of concept was executed.
What the attacker needed
Victim visits attacker-controlled page; attacker can embed cross-origin iframe; APC flow is triggered
The fix
The helpers should be changed to route actions to the correct frame using frame identifiers, and FormFillingHelper should preserve the host_frame token.
How it was found
- An attacker embeds a cross-origin iframe in a target site that has a sensitive button in the main frame.
- The attacker's iframe generates DOM elements so that one of its nodes has the same DOMNodeId as the sensitive button.
- The APC model selects the attacker's fake button and returns that DOMNodeId.
- The browser sends a ClickAction for that ID to the primary main frame, which clicks its own sensitive button.
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 a browser shows a password change form, it sometimes uses a helper to click buttons or type text for you. This report says that helper always sends those actions to the main page, even if the button or field is actually inside a smaller embedded page (an iframe). Because the helper uses a simple number to identify elements, and that number can be the same in different pages, an attacker could trick the helper into clicking or typing in the wrong place.
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.