Missing authorization in Input (CVE-2026-113290)
A compromised cross-origin subframe can create an invisible popup widget that is parented to the top-level main frame without origin checks. The main frame's input handler then forwards all keyboard events to the attacker-controlled popup, allowing keystroke interception and bypassing Site Isolation.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 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 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: A compromised cross-origin subframe (OOPIF) can potentially intercept keystrokes intended for the top-level main frame on Aura platforms. This occurs because the browser unconditionally parents popup widgets created by subframes to the outermost main frame's view without origin checks. Consequently, the main frame's input handler forwards all keyboard events to the attacker-controlled popup, bypassing Site Isolation.
Affected files:
content/browser/renderer_host/render_widget_host_view_event_handler.cccontent/browser/renderer_host/render_widget_host_view_aura.cccontent/browser/web_contents/web_contents_impl.cccontent/browser/renderer_host/render_frame_host_impl.cc
Estimated timestamp from git blame: 2024-04-26
Description
A logic flaw in how the browser process handles popup widget creation on Aura platforms (Windows, ChromeOS, Linux) can lead to a Site Isolation bypass. A compromised subframe renderer can create an invisible popup widget that intercepts all keystrokes typed into the cross-origin top-level parent page.
The vulnerability stems from the following chain of events:
- Missing Origin and Activation Checks: When a renderer sends the
blink.mojom.LocalFrameHost::CreateNewPopupWidgetIPC,RenderFrameHostImpl::CreateNewPopupWidgetonly verifies if the requesting frame is active. It does not enforce user activation (transient or sticky), nor does it check if the frame is a top-level main frame. - Cross-Origin Parenting: When the attacker subsequently calls
ShowPopupvia IPC,WebContentsImpl::ShowCreatedWidgetidentifies the parent view by callingGetOutermostWebContents()->GetRenderWidgetHostView(). This unconditionally retrieves the top-level main frame's view.InitAsPopupis then called, parenting the attacker's popup to the main frame without anySiteInstanceor origin boundary validation. - Bypassed Dismissal: The popup dismissal logic in
RenderWidgetHostViewAura::ApplyEventObserverForPopupExitexplicitly ignores clicks targeting the parent window (target != popup_parent_host_view_->window_evaluates tofalse). If the user clicks an input field in the main frame, the invisible popup remains active. - Unconditional Input Forwarding: When the user types into the main frame,
RenderWidgetHostViewEventHandler::OnKeyEventchecksNeedsInputGrab(popup_child_host_view_), which returns true forkPopupwidgets. The browser unconditionally forwards theui::KeyEventto the popup's event handler, routing the keystrokes to the attacker-controlled renderer process instead of the main frame.
Potential Reproduction Steps
Note: Our tooling agent does not have the ability to run code, so these are suggested steps based on static code analysis.
- An attacker compromises the renderer process of a cross-origin Site Isolated subframe (e.g.,
evil.comembedded invictim.com). - The compromised renderer uses the
blink.mojom.LocalFrameHostinterface to send aCreateNewPopupWidgetIPC to the browser process. - The attacker sends the
blink.mojom.PopupWidgetHost::ShowPopupIPC, specifying a 1x1 invisible geometry placed anywhere on the screen. - The victim clicks on a sensitive input field (e.g., a password field) in the top-level
victim.comframe. The click does not dismiss the popup because the dismissal logic ignores clicks on the parent window. - The victim types into the field. Every keystroke is routed by the browser's input handler directly to the
evil.comrenderer process, allowing the attacker to exfiltrate the data.
Suggested Fix
There are a few potential avenues to address this:
- Restrict Popup Creation: Modify
RenderFrameHostImpl::CreateNewPopupWidgetto enforce strict user activation checks, or restrict it so that only top-level frames (or frames with specific permissions) can createkPopupwidgets. - Validate Origin During Parenting: In
WebContentsImpl::ShowCreatedWidget, verify that theSiteInstanceor origin of the frame requesting the popup matches theSiteInstanceof the view it is being parented to. If they do not match, the creation or parenting should be blocked. - Parent to the Requesting Frame: Instead of unconditionally using
GetOutermostWebContents()->GetRenderWidgetHostView(), parent the popup to the specificRenderWidgetHostViewof the frame that initiated the request, ensuring events are routed within the correct process boundaries.
Evaluated with Chrome root at commit: 3acbde3302da0cb19488c22c0eb007c791207b4b
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 browser does not check the origin or user activation when a subframe creates a popup widget, and it unconditionally parents the popup to the top-level frame's view, causing keyboard events to be forwarded to the popup.
Impact
A compromised subframe could intercept all keystrokes typed into the top-level page, bypassing Site Isolation, but the report notes this is based on static analysis and may be a false positive.
What the attacker needed
Attacker compromises a cross-origin subframe renderer; victim clicks an input field in the top-level page; victim types into that field
The fix
The browser should enforce user activation and origin checks when creating popups, validate the SiteInstance during parenting, or parent the popup to the requesting frame's view.
How it was found
- An attacker compromises the renderer process of a cross-origin Site Isolated subframe embedded in a victim page.
- The compromised renderer sends a CreateNewPopupWidget IPC to the browser process.
- The attacker sends a ShowPopup IPC specifying a 1x1 invisible geometry.
- The victim clicks on a sensitive input field in the top-level frame; the click does not dismiss the popup.
- The victim types into the field, and every keystroke is routed to the attacker's renderer process.
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 website can contain content from another site in a frame. Normally, the browser keeps these separate so one site cannot read what you type into another. Here, a malicious frame could create a hidden popup that steals your keystrokes when you type into the main page.
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.