Inappropriate implementation in Navigation (CVE-2026-14017)
A logic bug in the browser's frame teardown path leaves child frames alive and bound to a compromised renderer after their parent placeholder frame is unloaded during inner-delegate attachment. The attacker could keep hidden frames running scripts and making requests that are skipped by normal cross-tree security checks.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 35 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential logic bug in RenderFrameHostImpl::OnUnloadACK allows a compromised renderer to retain active child frames under a placeholder frame that is attaching an inner WebContents. This occurs because the inner-delegate early-return path invokes RenderFrameDeleted() but omits the necessary ResetChildren() subtree cleanup. This leaves the frame tree in an inconsistent state where active child frames are invisible to cross-tree walks.
Affected files:
content/browser/renderer_host/render_frame_host_impl.cccontent/browser/web_contents/web_contents_impl.ccextensions/browser/guest_view/mime_handler_view/mime_handler_view_embedder.cccontent/browser/renderer_host/frame_tree.cc
Estimated timestamp from git blame: 2019-02-26
Root Cause Analysis
In content/browser/renderer_host/render_frame_host_impl.cc (around lines 7150-7158), the inner-delegate early-return path inside OnUnloadACK handles the scenario where a frame is unloaded during inner-delegate attachment:
RenderFrameHostOwner* owner =
IsPendingDeletion() ? GetFrameTreeNodeForUnload() : owner_;
if (!is_main_frame() &&
owner->GetRenderFrameHostManager().is_inner_delegate_attached()) {
// This RFH was unloaded while attaching an inner delegate. The RFH
// will stay around but it will no longer be associated with a RenderFrame.
RenderFrameDeleted();
return;
}
Crucially, this path invokes RenderFrameDeleted() but completely omits the ResetChildren() subtree-teardown that every other standard frame-teardown path performs (such as the renderer-process-death path at line 4464 or the destructor at line 2867).
Additionally, there is no guard in OnCreateChildFrame or AddChild that prevents a renderer from successfully requesting and creating child frames under a placeholder RenderFrameHost during the active or early-attachment phases.
Potential Trigger Scenario
(Note: These are potential steps based on static analysis of the codebase, as our tooling does not have the capability to run code or execute a proof of concept.)
- A compromised renderer process (Process A) hosts a frame that navigates to a GuestView-eligible resource (such as a PDF handled via
MimeHandlerView). - The browser creates a
MimeHandlerViewEmbedderinextensions/browser/guest_view/mime_handler_view/mime_handler_view_embedder.ccand commits a template HTML page inside the subframe in Process A. - The template HTML creates a child
<embed>element with a unique name, resulting in the creation of a placeholderRenderFrameHostImplin the browser which enters thekActivestate. - During the asynchronous preparation phase for attaching the inner WebContents (e.g., during Mojo round-trips for
CreateBeforeUnloadControlatmime_handler_view_embedder.ccline 162), the placeholder RFH remains active in the browser. - The compromised renderer takes advantage of this window to call
FrameHost::CreateChildFrameon the placeholder frame's Mojo interface. This successfully adds a childgc1FrameTreeNodetoplaceholder->children_because the placeholder is active and its render frame is created. - The browser proceeds with the guest attachment inside
WebContentsImpl::AttachInnerWebContentsImpl(defined incontent/browser/web_contents/web_contents_impl.ccat line 3273), updatinginner_tree_main_frame_tree_node_id_and callingSwapOuterDelegateFrame(), which sendsUnloadto the placeholder frame in Process A. - The compromised renderer ignores the unload command for the child
gc1but responds with an unload ACK for the placeholder. - The browser receives the unload ACK inside
RenderFrameHostImpl::OnUnloadACK. It matches the early-return condition and invokesRenderFrameDeleted()on the placeholder, but skipsResetChildren()cleanup. - This leaves the child frame
gc1alive and active insideplaceholder->children_with its Mojo endpoints fully bound to Process A.
Security Implications
This behavior leads to a severe desynchronization of the browser-process frame tree:
- Ghost Frames: The child
gc1remains alive and fully bound in the background even though the placeholder has been marked "deleted". A compromised renderer can continue to run scripts, make requests, and execute IPCs throughgc1without any visible UI or active frame presence. - Inconsistent Iteration: As defined in
content/browser/renderer_host/frame_tree.cc(at line 337),SubtreeAndInnerTreeNodesdescends directly into the inner tree, skipping the placeholder becauseinclude_delegate_nodes_for_inner_frame_treesis false by default. Thus,gc1is skipped during normal cross-tree walks (such asForEachRenderFrameHost), making it invisible to security or policy checks that rely on global frame traversal.
Suggested Remediation
Ensure that when a placeholder RFH is unloaded or detached during inner-delegate attachment, any children in its subtree are properly torn down. This can be accomplished by calling ResetChildren() before RenderFrameDeleted() inside the inner-delegate early-return branch of RenderFrameHostImpl::OnUnloadACK:
if (!is_main_frame() &&
owner->GetRenderFrameHostManager().is_inner_delegate_attached()) {
// Properly tear down child subtrees before marking the frame deleted.
ResetChildren();
RenderFrameDeleted();
return;
}
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
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 inner-delegate early-return path in OnUnloadACK calls RenderFrameDeleted() but omits the ResetChildren() subtree cleanup that other teardown paths perform.
Impact
A compromised renderer could keep hidden child frames alive and fully bound, allowing scripts and requests to run without visible UI and be skipped by cross-tree security checks; the text notes this is based on static analysis and no proof of concept was executed.
What the attacker needed
Compromised renderer process; GuestView-eligible resource such as a PDF; timing during inner-delegate attachment
The fix
The inner-delegate early-return branch of OnUnloadACK should call ResetChildren() before RenderFrameDeleted() so child subtrees are torn down.
How it was found
- A compromised renderer navigates a frame to a GuestView-eligible resource such as a PDF.
- The browser creates a MimeHandlerViewEmbedder and commits a template page in the subframe.
- The template creates an embed element, producing a placeholder RenderFrameHostImpl in the active state.
- During asynchronous preparation for attaching the inner WebContents, the renderer calls CreateChildFrame on the placeholder.
- The browser attaches the guest and sends Unload to the placeholder; the renderer ACKs the unload.
- OnUnloadACK takes the early-return path, calls RenderFrameDeleted() but skips ResetChildren(), leaving the child frame alive.
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 browser builds a tree of frames for each page. When a frame is removed, the browser is supposed to clean up all of its child frames too. Here, one cleanup path forgot to remove the children, so a malicious page could keep hidden child frames alive and running code that the browser no longer notices.
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.