Incomplete cleanup in SiteIsolation (CVE-2026-78903)
A placeholder frame swapped during inner-delegate attachment is not given a timeout or state change for its unload acknowledgement, so a compromised renderer can withhold the ACK and keep its Mojo endpoints bound. It can then create child frames under the placeholder that standard frame tree walks skip, producing a hidden active subtree invisible to security checks.
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: A potential logic issue in the outer delegate frame swapping mechanism allows a compromised renderer to bypass the child frame cleanup mechanism. By withholding the Unload ACK, a placeholder frame's Mojo endpoints remain active and bound while the frame is in an inconsistent state. An attacker can then spawn child frames under this placeholder, creating a hidden subtree that is skipped during standard frame tree walks.
Affected files:
content/browser/renderer_host/render_frame_host_impl.cccontent/browser/web_contents/web_contents_impl.cccontent/browser/renderer_host/agent_scheduling_group_host.cccontent/browser/renderer_host/frame_tree.cc
Estimated timestamp from git blame: 2019-02-26
Root Cause Analysis
The cleanup logic designed to prevent lingering child frames during delegate attachment is normally triggered upon receiving the unload acknowledgement. Specifically, ResetChildren() is invoked within the inner-delegate branch of RenderFrameHostImpl::OnUnloadACK():
// content/browser/renderer_host/render_frame_host_impl.cc
RenderFrameHostOwner* owner =
IsPendingDeletion() ? GetFrameTreeNodeForUnload() : owner_;
if (!is_main_frame() &&
owner->GetRenderFrameHostManager().is_inner_delegate_attached()) {
ResetChildren();
RenderFrameDeleted();
return;
}
However, when a placeholder frame is swapped via RenderFrameHostImpl::SwapOuterDelegateFrame(), the browser sends an unload request to the renderer but does not configure the standard browser-side bookkeeping to enforce a timeout or transition the frame state:
// content/browser/renderer_host/render_frame_host_impl.cc
void RenderFrameHostImpl::SwapOuterDelegateFrame(...) {
...
GetMojomFrameInRenderer()->Unload(/*is_loading=*/false, ...); // Fire-and-forget
// Does NOT set is_waiting_for_unload_ack_ = true
// Does NOT start unload_event_monitor_timeout_
// Does NOT set the lifecycle state to kRunningUnloadHandlers
...
}
Because the unload ACK is expected exclusively via the renderer-controlled IPC DidUnloadRenderFrame without any expected-state or timeout enforcement, a compromised renderer can simply withhold the ACK indefinitely. This leaves the placeholder RenderFrameHost with active Mojo endpoints bound while its state remains LifecycleStateImpl::kActive and RenderFrameState::kCreated.
Potential Trigger Path
Note: The following steps are potential/suggested steps to trigger this behavior, as our current evaluation is based on static analysis of the codebase.
- A compromised renderer creates a placeholder iframe (e.g.,
<embed type="application/pdf" src="...">during MimeHandlerView flow), triggeringPrepareForInnerWebContentsAttach->AttachToOuterWebContentsFrame->AttachInnerWebContentsImplin the browser. AttachInnerWebContentsImplsetsinner_tree_main_frame_tree_node_id_on the placeholder frame, callsSwapOuterDelegateFrame(which sends theUnloadIPC to the renderer without setting up a timeout or changing the lifecycle state), and completes attachment.- The compromised renderer intentionally ignores the
UnloadIPC and never sendsAgentSchedulingGroupHost::DidUnloadRenderFrame. - Since the Mojo interfaces (
mojom::FrameHostandblink::mojom::LocalFrameHost) on the placeholder frame remain bound, the compromised renderer callsCreateChildFrameon the placeholder's pipe. - In the browser,
RenderFrameHostImpl::OnCreateChildFramechecksis_render_frame_created()(which is stillkCreated) andIsInactiveAndDisallowActivation(which returnsfalsebecauselifecycle_state_remainskActive). The browser accepts the request and adds a child frame (gc1) to the placeholder's children list.
Resulting Inconsistent State and Impact
This sequence puts the browser into a state where:
placeholder->lifecycle_state_ == kActiveplaceholder->children_is non-empty (containinggc1).is_inner_delegate_attached()evaluates to true.
This violates the core design invariant:
child_count() > 0 => inner_tree_main_frame_tree_node_id().is_null()
(which is explicitly asserted in test environments, such as in content/browser/renderer_host/scroll_into_view_browsertest.cc:460-462).
Security Consequences:
Standard frame walks (such as ForEachRenderFrameHost and NodesIncludingInnerTreeNodes) walk the tree using include_delegate_nodes_for_inner_frame_trees = false. When the FrameTree::NodeIterator encounters the placeholder frame node, it skips the placeholder entirely and descends directly into the inner tree's main frame:
// content/browser/renderer_host/frame_tree.cc:95-98
if (should_descend_into_inner_trees_ && inner_tree_main_ftn) {
if (include_delegate_nodes_for_inner_frame_trees_)
queue_.push_back(child); // Skipped
queue_.push_back(inner_tree_main_ftn);
}
Because the placeholder node is never queued, its children (the newly created frame gc1) are never visited. This creates a hidden active frame subtree that is invisible to security policy enforcements, origin checks, and lifecycle audits, yet remains fully active with live, renderer-controlled Mojo connections.
Suggested Remediation
To prevent the creation of children under placeholder frames, the browser should ensure that once SwapOuterDelegateFrame is invoked, the placeholder frame is immediately restricted from creating child frames or processing further state-modifying IPCs.
- Disable Mojo Receivers Early: In
SwapOuterDelegateFrame, immediately close or unbind the frame-creation and frame-navigation related Mojo receivers (such aslocal_frame_host_receiver_), rather than waiting for the asynchronous unload ACK. - Explicit Validation: Modify
RenderFrameHostImpl::OnCreateChildFrameto explicitly reject child frame creation if an inner delegate is attached or in the process of being attached (e.g.,is_inner_delegate_attached()is true oris_attaching_inner_delegate()is true).
Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040
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 swap path sends the unload request without setting the waiting flag, starting the unload timeout, or changing the lifecycle state, so cleanup depends entirely on a renderer-controlled acknowledgement.
Impact
Frame tree walks skip the placeholder and descend into the inner tree, so the hidden child subtree could escape security policy enforcement, origin checks and lifecycle audits while keeping live renderer-controlled connections; this is based on static analysis and requires an already compromised renderer.
What the attacker needed
Compromised renderer process; inner-delegate attach flow (e.g. PDF embed)
The fix
The browser should unbind frame-creation and navigation Mojo receivers as soon as SwapOuterDelegateFrame runs, and OnCreateChildFrame should reject child creation while an inner delegate is attached or being attached.
How it was found
- A compromised renderer creates a placeholder iframe, which triggers the inner web contents attach flow in the browser.
- The browser calls SwapOuterDelegateFrame, sending the unload request without a timeout or lifecycle change, and finishes attachment.
- The renderer ignores the unload request and never sends the unload acknowledgement.
- The renderer calls CreateChildFrame on the placeholder's still-bound pipe.
- The browser accepts the request because the frame still looks created and active, adding a child under the placeholder.
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 browser splits a page into frames, and some frames act as placeholders while another page is attached inside them. The browser normally waits for the renderer to confirm a frame has unloaded before cleaning it up, but here it never set a deadline or changed the frame's state. A malicious renderer can stay silent, keep its connections open, and add extra frames that the browser's normal checks never look at.
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.