UI misrepresentation in FullScreen (CVE-2026-113149)
A tab-modal dialog only exits fullscreen once and does not hold a persistent fullscreen blocker, so a page with transient user activation can re-enter HTML fullscreen while the dialog is still shown. This can hide the omnibox and security indicators, allowing an attacker to spoof browser UI around the genuine dialog.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 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: When a tab-modal dialog is shown, BrowserWindowModalDialogDelegate::SetWebContentsBlocked performs a one-shot ExitFullscreen check but does not hold a persistent fullscreen blocker. Consequently, a page with transient user activation can request and enter HTML fullscreen shortly after triggering the dialog. This can hide the omnibox and security indicators while leaving the genuine dialog active, potentially enabling highly convincing browser UI spoofing.
Affected files:
chrome/browser/ui/web_modal/browser_window_modal_dialog_delegate.cccomponents/web_modal/web_contents_modal_dialog_manager.ccchrome/browser/ui/tabs/tab_dialog_manager.cc
Estimated timestamp from git blame: 2020-03-10
Description
Potential Root Cause
BrowserWindowModalDialogDelegate::SetWebContentsBlocked (implemented in chrome/browser/ui/web_modal/browser_window_modal_dialog_delegate.cc) is responsible for dropping HTML fullscreen when a tab-modal or constrained-window dialog is displayed. This ensures that the user can see the omnibox and verify the security context.
However, it only performs a one-shot exit from fullscreen and does not register a persistent fullscreen blocker (e.g., by incrementing fullscreen_blocker_count_ on the WebContents or holding a scoped blocker):
// chrome/browser/ui/web_modal/browser_window_modal_dialog_delegate.cc
if (blocked) {
content::FullscreenState fullscreen_state = ... ->GetFullscreenState(web_contents);
if (fullscreen_state.target_mode == content::FullscreenMode::kContent) {
...
if (content_settings->GetContentSetting(url, url,
ContentSettingsType::AUTOMATIC_FULLSCREEN) != CONTENT_SETTING_ALLOW) {
web_contents->ExitFullscreen(true); // One-shot; no blocker is held.
}
}
}
In contrast, other security-critical dialogs (like permission prompts, file system access dialogs, or Javascript alerts) utilize WebContentsImpl::ForSecurityDropFullscreen (implemented in content/browser/web_contents/web_contents_impl.cc), which increments fullscreen_blocker_count_ and returns a base::ScopedClosureRunner to decrement it when the dialog is dismissed:
// content/browser/web_contents/web_contents_impl.cc
++opener->fullscreen_blocker_count_;
blocked_contents_list.push_back(opener);
...
return base::ScopedClosureRunner(base::BindOnce([](...){
for (auto& wc : blocked_contents_list)
if (wc) --wc->fullscreen_blocker_count_;
}, std::move(blocked_contents_list)));
Because SetWebContentsBlocked does not update fullscreen_blocker_count_, a page can request and successfully re-enter fullscreen after the dialog is displayed on screen, provided it still has transient user activation. The browser-side permission check for entering fullscreen (WebContentsImpl::CanEnterFullscreenMode) only verifies that fullscreen_blocker_count_ == 0 for all openers and does not consult TabStripModel::IsTabBlocked() or WebContentsModalDialogManager::IsDialogActive().
While the dialog manager suppresses future browser-to-renderer input events via IgnoreInputEvents(), this suppression only blocks input event dispatching from the browser and does not filter incoming renderer-to-browser Mojo requests like LocalFrameHost::EnterFullscreen. As a result, the fullscreen request is successfully processed, the browser enters fullscreen, and the genuine native dialog remains active and centered over the newly enlarged viewport.
Potential Trigger Steps
Please note that these are suggested/potential steps, as our tooling agent does not yet have the ability to run code and verify this via an automated proof of concept.
- The user clicks on an attacker-controlled page, registering a transient user activation in both the renderer and browser.
- In the same click event, the attacker triggers a tab-modal dialog that does not consume transient user activation (such as a WebAuthn
navigator.credentials.get(...)request, appending an iframe that triggers an HTTP 401 Basic Authentication prompt, or calling a custom protocol handler). - The browser displays the tab-modal dialog and invokes
WebContentsModalDialogManager::BlockWebContentsInteraction(true). Since the tab is not yet in fullscreen, the check to callExitFullscreenis skipped, andfullscreen_blocker_count_remains0. - Within the activation window (e.g., 200ms later), the page executes a delayed script requesting fullscreen (
document.documentElement.requestFullscreen()). - The browser processes
RenderFrameHostImpl::EnterFullscreen. Sincefullscreen_blocker_count_is still0, the request is granted. - The browser enters HTML fullscreen, hiding the omnibox, tab strip, and other chrome, while the active native dialog remains visible and interactive on top. The attacker can then paint mock browser chrome around the genuine dialog to spoof a secure/trusted domain (e.g.,
https://accounts.google.com).
Suggested Fix
Instead of a one-shot check and exit in BrowserWindowModalDialogDelegate::SetWebContentsBlocked, the delegate should acquire and hold a persistent fullscreen blocker (e.g., by utilizing WebContentsImpl::ForSecurityDropFullscreen or holding a lifetime-bound base::ScopedClosureRunner that increments/decrements fullscreen_blocker_count_) for the entire duration that the WebContents is blocked by an active tab-modal dialog. This ensures that any subsequent fullscreen requests from the renderer are rejected as long as the modal dialog remains open.
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
Likely the dialog delegate calls ExitFullscreen once instead of holding a persistent fullscreen blocker (such as incrementing fullscreen_blocker_count_), so later fullscreen requests from the renderer are not rejected while the dialog is active.
Impact
An attacker could hide the omnibox and security indicators and paint mock browser chrome around the genuine dialog to spoof a trusted domain, though the report notes the steps are suggested and not yet verified with a proof of concept.
What the attacker needed
Victim clicks on an attacker-controlled page; transient user activation available; tab-modal dialog that does not consume activation; delayed script within activation window
The fix
The delegate should acquire and hold a persistent fullscreen blocker for the entire duration that the WebContents is blocked by an active tab-modal dialog, so later fullscreen requests are rejected.
How it was found
- The user clicks on an attacker-controlled page, registering transient user activation.
- In the same click event, the attacker triggers a tab-modal dialog that does not consume transient user activation.
- The browser displays the dialog and blocks web contents interaction; since the tab is not in fullscreen, the exit check is skipped and the blocker count stays zero.
- Within the activation window, the page runs a delayed script requesting fullscreen.
- The browser processes the fullscreen request and grants it because the blocker count is still zero.
- The browser enters HTML fullscreen, hiding the omnibox and tab strip while the native dialog 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 a website shows a pop-up dialog (like a login prompt), the browser is supposed to leave fullscreen so you can see the address bar and check you are on the right site. Here, the browser leaves fullscreen only once, and the page can immediately ask to go fullscreen again while the dialog is still open. That hides the address bar, so an attacker could draw fake browser controls around the real dialog to make a malicious site look trustworthy.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.