Incorrect authorization in Autofill (CVE-2026-113139)
A feature flag that simplified focus checks in Autofill popup controllers allowed an unfocused cross-origin subframe to trigger and display a browser-native Autofill popup over a focused sibling frame. An attacker could spoof security UI and potentially hijack autofill credentials or profile data by positioning the popup over a legitimate input field.
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: The default-enabled kAutofillSimplifyFocusCheck feature simplifies the focus check in Autofill popup controllers to an existence-only lookup. This potentially allows a compromised, unfocused, cross-origin subframe to trigger, show, or replace the active per-tab Autofill popup while the user is actively interacting with a focused sibling frame. Consequently, this enables browser-process security UI spoofing and Autofill credential/profile hijacking.
Affected files:
chrome/browser/ui/autofill/autofill_popup_controller_impl.ccchrome/browser/ui/autofill/autofill_keyboard_accessory_controller_impl.cc
Estimated timestamp from git blame: 2026-07-03
Root Cause Analysis
The default-enabled feature kAutofillSimplifyFocusCheck (defined in components/autofill/core/common/autofill_features.cc) was introduced to simplify the focus checks performed before showing Autofill suggestions.
Specifically, in AutofillPopupControllerImpl::Show() (and its Android counterpart AutofillKeyboardAccessoryControllerImpl::Show()), the previous safety gate that verified whether the anchoring frame was an ancestor of the currently focused frame (IsAncestorOf(anchor_rfh, focused_rfh)) is bypassed when the feature is enabled. Instead, the controller performs an existence-only frame lookup using the caller's frame token:
// chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
content::RenderFrameHost* rfh = nullptr;
if (base::FeatureList::IsEnabled(features::kAutofillSimplifyFocusCheck)) {
rfh = FindRenderFrameHostByToken(*web_contents_,
controller_common_.frame_token);
} else {
...
rfh = web_contents_->GetFocusedFrame();
content::RenderFrameHost* anchor_rfh = FindRenderFrameHostByToken(
*web_contents_, controller_common_.frame_token);
const bool focus_is_in_descendant =
rfh && delegate_ && IsAncestorOf(anchor_rfh, rfh);
if (!focus_is_in_descendant) {
...
Hide(SuggestionHidingReason::kNoFrameHasFocus);
return;
}
}
FindRenderFrameHostByToken simply iterates through all RenderFrameHosts in the WebContents and returns any frame matching the token, regardless of focus state or active status.
Since there are no other per-subframe focus or ancestry checks on the path from the renderer's AskForValuesToFill IPC down to the browser's Show() method, an active but completely unfocused cross-origin subframe can successfully invoke and display its Autofill suggestions over a focused sibling frame.
Potential Attack Scenario
Note: Our tooling agent does not have the capability to run code or execute a live proof of concept; the steps below describe the logical attack path based on code analysis.
- A page embeds Sibling Frame A (
attacker.example, running a compromised renderer) and Sibling Frame B (victim.example, containing a legitimate input field). - The user interacts with and clicks on Frame B's input field, making Frame B the focused frame (
web_contents_->GetFocusedFrame()). - Sibling Frame A's compromised renderer sends a
mojom::AutofillDriver::AskForValuesToFillIPC message with a customFormDatastructure containing a field withis_focusable = trueand custom coordinates/bounds positioned over Sibling Frame B's input field. - In the browser process,
RouteToManagerconverts and processes the request. The bounds are translated into root coordinates, placing them directly over Frame B's input. - The browser-side
ChromeAutofillClient::ShowAutofillSuggestionsImplis invoked. It callsGetOrCreate()to handle the active popup controller. - Since the delegate for the request (Frame A) differs from the existing controller's delegate (Frame B), recycling fails. The browser hides Frame B's legitimate popup and instantiates a new controller for Frame A.
AutofillPopupControllerImpl::Show()is called. The tab-level focus check passes because the tab itself is active.- Since
kAutofillSimplifyFocusCheckis enabled, the controller callsFindRenderFrameHostByTokenon Frame A's token. This succeeds and returns Frame A's validRenderFrameHost. - The controller binds the keypress observer and popup lifecycle helper to Sibling Frame A, meaning keypresses or frame-level changes in Sibling Frame B will not dismiss the popup.
- A browser-native, trusted Autofill dropdown is shown directly over Sibling Frame B's input field. If the user accepts a suggestion, the filled data is dispatched to Sibling Frame A's delegate, leaking sensitive autofill information to the attacker's domain.
Suggested Fix
To remediate this issue, the browser-process Autofill pipeline must enforce that the frame initiating the request is either the currently focused frame or an ancestor of the focused frame. If kAutofillSimplifyFocusCheck is to be kept enabled, the simplified check should still validate that the request is initiated by a frame that is authorized to show popups in the active tab (e.g., verifying focus or ancestry at the IPC boundary or during suggestion display), rather than relying solely on frame existence.
Evaluated with Chrome root at commit: bf775e5d75cb9e1767e2cd02cc93efa0077d14a5
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 kAutofillSimplifyFocusCheck feature replaced an ancestry-based focus check with an existence-only frame lookup, so any frame token could pass the check regardless of focus.
Impact
A compromised cross-origin subframe could spoof browser security UI and potentially leak autofill credentials or profile data to the attacker's domain, though the report notes no live proof of concept was executed.
What the attacker needed
Attacker controls a cross-origin subframe; victim clicks a sibling frame's input field; feature flag kAutofillSimplifyFocusCheck enabled
The fix
The browser-process Autofill pipeline should enforce that the requesting frame is either the focused frame or an ancestor of the focused frame, rather than relying solely on frame existence.
How it was found
- A page embeds an attacker-controlled sibling frame and a victim frame with a legitimate input field.
- The user clicks the victim frame's input field, making it the focused frame.
- The attacker frame sends an AskForValuesToFill IPC message with custom form data and bounds positioned over the victim's input.
- The browser processes the request and hides the victim frame's legitimate popup, creating a new controller for the attacker frame.
- The simplified focus check passes because the attacker frame exists, so a browser-native Autofill popup is shown over the victim's input.
- If the user accepts a suggestion, the filled data is dispatched to the attacker frame's delegate.
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.
Autofill is the browser feature that suggests saved addresses and passwords when you click a form field. Normally, the browser only shows these suggestions for the field you are actually using. A bug in a feature flag meant the browser stopped checking which frame had focus, so a malicious frame on the same page could make the autofill popup appear over someone else's input field. This could trick you into selecting your saved data into the attacker's frame.
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.