Missing authorization in Navigation (CVE-2026-95287)
Several Mojo methods in RenderFrameHostImpl lack lifecycle checks, allowing a compromised renderer to modify the shared BrowsingContextState of an active cross-origin frame. An attacker could spoof user activation, downgrade security policies, or manipulate ad state.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 months
Flapjack (go/flapjack), an LLM-powered static analysis tool, has identified the following potential security issue.
Overview: Several Mojo methods in RenderFrameHostImpl lack lifecycle checks, allowing a compromised renderer to maliciously modify the shared BrowsingContextState. An attacker can invoke these methods on a speculative frame to alter the security state (e.g., user activation, mixed content policies) of an active, cross-origin frame in the same BrowsingInstance.
Affected files:
content/browser/renderer_host/render_frame_host_impl.cc
Estimated timestamp from git blame: 2022-07-22
Description
A potential vulnerability exists in content/browser/renderer_host/render_frame_host_impl.cc where several Mojo methods handling frame security state lack proper lifecycle checks. Specifically, the following methods in the blink::mojom::LocalFrameHost interface delegate directly to browsing_context_state_ without verifying if the caller is the active RenderFrameHost:
EnforceInsecureRequestPolicyEnforceInsecureNavigationsSetHadStickyUserActivationBeforeNavigationChanged
Additionally, the C++ method UpdateIsAdFrame is similarly affected.
When a cross-site navigation occurs within the same BrowsingInstance (e.g., navigating an iframe), the browser creates a speculative RenderFrameHostImpl that shares the same BrowsingContextState object as the currently active RenderFrameHostImpl. Because there are no lifecycle checks (such as IsInactiveAndDisallowActivation()) in the aforementioned methods, a compromised renderer hosting the speculative frame can send Mojo messages to modify the shared BrowsingContextState.
These changes update the FrameReplicationState and are broadcast to all proxy hosts in other processes, effectively altering the security state of the active, cross-origin victim document.
Impact
By manipulating the shared state from a speculative frame, an attacker can:
- Spoof User Activation: Set the
had_sticky_user_activation_before_navflag. If the victim frame subsequently performs a same-origin navigation, it will inherit this spoofed activation, allowing the attacker to bypass the Autoplay Policy, Vibration API restrictions, and Virtual Keyboard API checks without any actual user interaction. - Downgrade Security Policies: Alter the
insecure_request_policyto disableupgrade-insecure-requests, potentially allowing mixed content to load in the victim frame. - Manipulate Ad State: Maliciously tag the active frame as an ad frame, potentially subjecting it to heavy ad interventions or throttling.
Suggested Attacker Steps
Note: These are potential steps, as this analysis was performed by an LLM agent without the ability to run a live Proof of Concept.
- An attacker gains arbitrary code execution in a sandboxed renderer process (e.g., via a V8 exploit) hosting
attacker.com. - The attacker embeds a cross-origin iframe pointing to
victim.com. - The attacker triggers a navigation of the
victim.comiframe to a secondary attacker-controlled URL,attacker.com/2. - The browser creates a speculative
RenderFrameHostImplforattacker.com/2. This speculative frame shares theBrowsingContextStateof the activevictim.comframe. - Before the navigation commits, the compromised renderer for
attacker.com/2sends aHadStickyUserActivationBeforeNavigationChanged(true)message over theLocalFrameHostMojo interface. - The browser processes this message on the speculative
RenderFrameHostImpland updates the sharedBrowsingContextState, spoofing sticky user activation for the activevictim.comframe. - The attacker cancels the navigation. The
victim.comframe can now perform actions requiring user activation (like autoplaying media) upon its next same-site navigation.
Recommended Fix
Add standard lifecycle checks to the affected methods in RenderFrameHostImpl to ensure they cannot be invoked by inactive or speculative frames. For example:
void RenderFrameHostImpl::HadStickyUserActivationBeforeNavigationChanged(
bool value) {
if (IsInactiveAndDisallowActivation(
DisallowActivationReasonId::kHadStickyUserActivationBeforeNavigationChanged)) {
return;
}
browsing_context_state_->OnSetHadStickyUserActivationBeforeNavigation(value);
}
Similar checks should be added to EnforceInsecureRequestPolicy, EnforceInsecureNavigationsSet, and UpdateIsAdFrame.
Evaluated with Chrome root at commit: 9760e6c70cd33a320713361f17c6dcca85648c0f
Results from Flapjack so far have been promising, but it can be wrong in its deductions. At this time, it does not produce proof of concepts or fuzzer tests. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve Flapjack’s 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 Mojo methods that update the shared BrowsingContextState do not verify that the calling RenderFrameHost is active, allowing a speculative frame to modify state that belongs to an active frame.
Impact
An attacker could spoof user activation to bypass autoplay and other API restrictions, disable upgrade-insecure-requests to allow mixed content, or tag the frame as an ad to trigger interventions.
What the attacker needed
Compromised renderer process; ability to embed cross-origin iframe; ability to trigger navigation
The fix
Add lifecycle checks to the affected methods to ensure they cannot be invoked by inactive or speculative frames.
How it was found
- An attacker gains arbitrary code execution in a sandboxed renderer process hosting attacker.com.
- The attacker embeds a cross-origin iframe pointing to victim.com.
- The attacker triggers a navigation of the victim.com iframe to a secondary attacker-controlled URL.
- The browser creates a speculative RenderFrameHostImpl for the new URL, sharing the BrowsingContextState of the active victim.com frame.
- Before the navigation commits, the compromised renderer sends a HadStickyUserActivationBeforeNavigationChanged(true) message over the LocalFrameHost Mojo interface.
- The browser processes this message on the speculative frame and updates the shared BrowsingContextState, spoofing sticky user activation for the active victim.com frame.
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 runs each website in a separate sandboxed process. If an attacker can break out of that sandbox, they can send messages to the browser's core. This report says some of those messages are not properly checked, so a malicious website could change security settings of another website open in the same browser.
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.