UI misrepresentation in Navigation (CVE-2026-79250)
A logic error in Chromium's paint-holding mechanism allows an opener to modify a popup's initial empty document and then navigate it cross-origin, so that attacker-controlled content remains visible for up to 4 seconds while the omnibox shows the new URL. An attacker could use this for a transient visual URL spoof, though user input is suppressed during the period.
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 logic error in Chromium's paint-holding mechanism allows a transient cross-origin URL spoof when an opener modifies a popup's initial empty document. Attacker-controlled content can remain visible for up to 4 seconds while the omnibox shows a new, committed cross-origin URL. This occurs because DOM mutations on the initial document do not clear the 'initial empty document' status used for paint-holding exemptions.
Affected files:
content/browser/renderer_host/navigator.cccontent/browser/renderer_host/frame_tree_node.cccontent/browser/renderer_host/render_frame_host_manager.cccontent/browser/renderer_host/navigation_controller_impl.cccontent/browser/renderer_host/frame_tree.cccontent/browser/renderer_host/render_frame_host_impl.cccontent/browser/renderer_host/render_widget_host_impl.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
A potential vulnerability in Chromium's paint-holding mechanism allows for a transient visual URL spoof. When a window is opened via window.open(), the opener can modify the initial about:blank document (e.g., via innerHTML). If the popup is then navigated to a cross-origin URL without user activation, the browser's paint-holding logic inadvertently allows the attacker-controlled content to remain visible while the omnibox updates to the new, committed URL.
Technical Analysis
The issue stems from how Chromium tracks the state of the initial empty document across two different flags:
FrameTreeNode::is_on_initial_empty_document_: Initialized totrue. It is only cleared bydocument.open()or a non-blank navigation commit.FrameTree::has_accessed_initial_main_document_: Set totruewhen the initial document is scripted or modified.
In Navigator::DidNavigate() (content/browser/renderer_host/navigator.cc), the decision to permit paint-holding for a main-frame navigation depends on whether frame_tree_node->is_on_initial_empty_document() was true before the navigation committed. This check is intended to provide smooth transitions for new tabs but fails to account for cases where the 'empty' document was modified by its opener.
Because direct DOM mutations (like innerHTML) do not clear the is_on_initial_empty_document_ flag, Navigator::DidNavigate grants a paint-holding exemption even if the navigation is cross-origin and lacks user activation. This bypasses the security mitigation kLimitCrossOriginNonActivatedPaintHolding (content/common/features.cc), which is designed to prevent precisely this type of spoofing.
When the navigation commits:
RenderFrameHostManager::CommitPending()captures the modifiedabout:blanksurface as 'fallback content'.- the omnibox updates to the new committed URL.
RenderWidgetHostImpldisplays the attacker's pixels for up to 4 seconds (thekNewContentRenderingDelaytimeout) or until the new page renders its first frame.
User input is suppressed during this period via RenderWidgetHostImpl::InitializePaintHolding(true), so the impact is limited to a visual spoof and cannot be used for direct interaction attacks (like clickjacking).
Potential Reproduction Steps
- Serve a page on
https://attacker.examplethat opens a popup:const p = window.open();. - Modify the popup content:
p.document.body.innerHTML = '<h1>Logged out of bank.example. Re-enter password.</h1>';. - Navigate the popup cross-origin:
p.location = 'https://bank.example/login';. - Observe that after the navigation commits, the omnibox shows
https://bank.example/loginwhile the content area still shows the attacker's message.
Suggested Fix
The paint-holding decision in Navigator::DidNavigate() should be updated to ensure that the exemption for the initial empty document is only granted if the document has not been modified. This can be achieved by checking frame_tree.has_accessed_initial_main_document() in addition to is_on_initial_empty_document() when evaluating allow_main_frame_paint_holding.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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 paint-holding exemption checks only whether the frame is on the initial empty document, not whether that document was modified by its opener, so DOM mutations do not clear the flag.
Impact
The impact is limited to a transient visual spoof for up to 4 seconds, because user input is suppressed during paint-holding and direct interaction attacks such as clickjacking are not possible.
What the attacker needed
Victim visits attacker page; popup opened without user activation; cross-origin navigation
The fix
The paint-holding decision should also check whether the initial main document was accessed, so the exemption is only granted for unmodified initial empty documents.
How it was found
- Serve a page that opens a popup with window.open().
- Modify the popup's body content via innerHTML.
- Navigate the popup to a cross-origin URL.
- Observe the omnibox showing the new URL while the attacker's message remains visible.
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.
When you open a new window with JavaScript, it starts as a blank page that the opener can still edit. Chromium normally keeps the old page visible briefly during navigation to avoid a white flash, but it should not do so when the new page is from a different site and the user did not click anything. Here, because the blank page was edited, the browser wrongly kept the attacker's text on screen while the address bar showed the real bank's address, which could trick someone into thinking the bank itself displayed that message.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.