Skip to content
Access control Advisory Advanced CVE-2026-106246

Incorrect authorization in Browser (CVE-2026-106246)

A logic error in the browser's modal dialog handling checks the top-level page's URL rather than the origin of the frame actually in fullscreen when deciding whether to force an exit from fullscreen. An attacker-controlled cross-origin iframe embedded in a trusted page holding the automatic fullscreen permission could stay fullscreen while a browser dialog appears, letting it spoof the browser interface around the 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: A potential logic error in BrowserWindowModalDialogDelegate incorrectly uses the top-level frame's URL to check for the AUTOMATIC_FULLSCREEN permission when a tab-modal dialog is displayed. This allows cross-origin iframes with fullscreen delegation to bypass the mandatory fullscreen exit intended to reveal the omnibox. Consequently, an attacker can maintain control over the entire screen to spoof the browser environment around legitimate dialogs.

Affected files:

  • chrome/browser/ui/web_modal/browser_window_modal_dialog_delegate.cc

Estimated timestamp from git blame: 2024-03-14

Potential Vulnerability: Incorrect origin check for AUTOMATIC_FULLSCREEN exemption

When a tab-modal dialog (such as a PaymentRequest, WebAuthn prompt, or HTTP authentication dialog) is displayed, Chrome is designed to force the page out of HTML fullscreen mode. This is a critical security measure that ensures the omnibox (address bar) is revealed, providing the user with the necessary security context and site identity before they interact with the dialog.

Root Cause

A logic error exists in the implementation of the AUTOMATIC_FULLSCREEN exemption within BrowserWindowModalDialogDelegate::SetWebContentsBlocked (located in chrome/browser/ui/web_modal/browser_window_modal_dialog_delegate.cc).

When determining whether to skip the mandatory fullscreen exit, the code retrieves the AUTOMATIC_FULLSCREEN content setting using the top-level WebContents URL instead of the origin of the frame that is actually in fullscreen:

C++
// chrome/browser/ui/web_modal/browser_window_modal_dialog_delegate.cc
if (fullscreen_state.target_mode == content::FullscreenMode::kContent) {
  // Potential Error: Retrieves top-level URL instead of the fullscreen frame's origin
  const GURL& url = web_contents->GetLastCommittedURL();
  const HostContentSettingsMap* const content_settings =
      HostContentSettingsMapFactory::GetForProfile(
          web_contents->GetBrowserContext());
  if (content_settings->GetContentSetting(
          url, url, ContentSettingsType::AUTOMATIC_FULLSCREEN) !=
      CONTENT_SETTING_ALLOW) {
    web_contents->ExitFullscreen(true);
  }
}

Because AUTOMATIC_FULLSCREEN is a TOP_ORIGIN_ONLY_SCOPE content setting, this lookup will return ALLOW whenever the top-level origin has been granted the permission, regardless of which frame holds the fullscreen state.

Potential Impact

If a trusted top-level origin (e.g., an Isolated Web App or a site with a manual permission grant) has the AUTOMATIC_FULLSCREEN permission, an embedded cross-origin iframe with fullscreen delegation (allow="fullscreen") can exploit this to remain in fullscreen while a modal dialog is shown. This allows the attacker to spoof the entire browser UI (fake address bar, fake security indicators) around a legitimate browser-rendered dialog, which can facilitate phishing or credential theft.

Potential Steps to Reproduce

  1. Grant the "Automatic Fullscreen" permission to https://trusted.example (e.g., via chrome://settings/content/automaticFullScreen).
  2. Host a page at https://trusted.example/index.html that embeds an attacker-controlled iframe: <iframe src="https://attacker.example/" allow="fullscreen; payment"></iframe>.
  3. As the attacker, have the iframe enter HTML fullscreen mode.
  4. Inside the iframe, trigger a tab-modal dialog, such as new PaymentRequest(methods, details).show().
  5. Observation: The iframe remains in fullscreen mode, and the omnibox is not revealed when the PaymentRequest dialog appears.

Suggested Fix

The check should validate the origin of the frame currently in fullscreen. The browser should query the FullscreenController for the requesting_origin of the current fullscreen state rather than relying on the WebContents top-level URL.

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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 fullscreen exemption check reads the AUTOMATIC_FULLSCREEN content setting for the top-level WebContents URL instead of the origin of the frame that is actually in fullscreen.

Impact

An attacker could spoof the browser interface around a legitimate dialog to facilitate phishing or credential theft, but only where a trusted top-level origin already holds the automatic fullscreen permission and delegates fullscreen to the iframe.

What the attacker needed

Trusted top-level site has automatic fullscreen; attacker iframe embedded with fullscreen delegation; victim interacts with the dialog

The fix

The check should validate the origin of the frame currently in fullscreen by querying the FullscreenController for the requesting origin instead of using the top-level URL.

How it was found

  1. Grant the automatic fullscreen permission to a trusted site.
  2. Host a page on that trusted site embedding an attacker-controlled iframe with fullscreen delegation.
  3. Have the iframe enter HTML fullscreen mode.
  4. Trigger a tab-modal dialog such as a payment request from inside the iframe.
  5. Observe that the iframe stays fullscreen and the address bar is not revealed.

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 browser shows an important pop-up like a payment prompt, it normally drops out of fullscreen so you can see the address bar and confirm which site you are on. Here the browser asked the wrong page whether it was allowed to stay fullscreen, so a malicious frame inside a trusted page could keep covering the screen. That lets an attacker draw a fake address bar and fake security icons around a real dialog to trick people into entering details.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.