Skip to content
UI spoofing Advisory Intermediate CVE-2026-13996

Incorrect security UI in Permissions (CVE-2026-13996)

A logic flaw in the permission prompt bubble means it only blocks fullscreen if the tab is already fullscreen when the prompt appears. An attacker can show a permission prompt in windowed mode, then enter fullscreen after a user gesture, hiding the real browser toolbar and placing spoofed UI under the legitimate prompt to trick the user into granting permissions to a malicious origin.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 45 days

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 flaw in PermissionPromptBubble allows a webpage to enter fullscreen mode after a permission prompt is displayed. An attacker can use this to hide the browser's native Omnibox and display spoofed UI underneath the legitimate permission bubble. This occurs because the prompt fails to acquire a fullscreen blocker if it is initially shown while the tab is in windowed mode.

Affected files:

  • chrome/browser/ui/views/permissions/permission_prompt_bubble.cc
  • chrome/browser/ui/views/permissions/permission_prompt_base_view.cc
  • chrome/browser/ui/views/permissions/permission_prompt_bubble_base_view.cc
  • chrome/browser/ui/views/permissions/permission_prompt_base_view.h

Estimated timestamp from git blame: 2025-09-08

Summary

A logic flaw in PermissionPromptBubble::ShowBubble() allows a webpage to transition into fullscreen mode after a permission prompt has been displayed. This enables an attacker to hide the browser's native Omnibox and UI, replacing it with spoofed content while the legitimate permission prompt remains visible and re-anchored to the fullscreen window. This facilitates a UI dressing attack where a user may be misled into granting permissions to an attacker's origin, believing it to be a trusted site.

Technical Analysis

In chrome/browser/ui/views/permissions/permission_prompt_bubble.cc, the fullscreen_blocker_ (a base::ScopedClosureRunner that prevents fullscreen transitions) is only acquired if the tab is already in fullscreen at the moment the bubble is shown:

C++
// chrome/browser/ui/views/permissions/permission_prompt_bubble.cc:48
if (fullscreen_controller->IsTabFullscreen()) {
  auto blocker =
      web_contents()->ForSecurityDropFullscreen(display::kInvalidDisplayId);
  if (!blocker) {
    return;
  }
  fullscreen_blocker_ = std::move(*blocker);
}

Because the blocker is only initialized when IsTabFullscreen() is true, permission requests that trigger a bubble while in windowed mode (e.g., Geolocation requests on page load without a user gesture) do not increment the WebContentsImpl::fullscreen_blocker_count_.

When a site subsequently requests fullscreen (following a user gesture), WebContentsImpl::CanEnterFullscreenMode() is invoked. This check passes because the fullscreen_blocker_count_ is zero:

C++
// content/browser/web_contents/web_contents_impl.cc:4763
return delegate_ &&
       std::ranges::all_of(GetAllOpeningWebContents(this),
                           [](auto opener) {
                             return opener->fullscreen_blocker_count_ == 0;
                           }) &&
       delegate_->CanEnterFullscreenModeForTab(requesting_frame);

Upon entering fullscreen, the browser toolbar is hidden. During the subsequent layout pass, PermissionPromptBubble::UpdateAnchor() is called, which invokes AnchorToPageInfoOrChip(). In chrome/browser/ui/views/permissions/permission_prompt_base_view.cc, this method explicitly handles the null-anchor case (caused by the hidden toolbar) by anchoring the bubble to a default rect at the top of the screen:

C++
// chrome/browser/ui/views/permissions/permission_prompt_base_view.cc:155
if (configuration.anchor.IsNull()) {
  SetAnchorRect(bubble_anchor_util::GetPageInfoAnchorRect(browser_));
}

This ensures the legitimate bubble remains visible and correctly positioned for an attacker to render a fake Omnibox directly underneath it using fullscreen content.

Potential Reproduction Steps

  1. A user navigates to https://attacker.test.
  2. The page immediately calls navigator.geolocation.getCurrentPosition(). Since this is often allowed without an initial gesture (and features::kPermissionsGestureGatedPrompts is disabled by default), Chrome displays the PermissionPromptBubble anchored to the padlock icon.
  3. The page displays a button to entice the user to click (e.g., "Enter Site").
  4. The user's click provides a gesture, allowing the page to call document.documentElement.requestFullscreen().
  5. The browser enters fullscreen mode, hiding the real Omnibox.
  6. The geolocation bubble remains visible and moves to the top of the screen.
  7. The attacker's page renders a fake address bar showing https://accounts.google.com behind the real bubble.
  8. The user, believing the context of the fake address bar, clicks "Allow" on the legitimate prompt.

Note: These steps are based on source code analysis and have not been verified with a running proof-of-concept.

Suggested Fix

PermissionPromptBubble::ShowBubble() should always acquire a fullscreen_blocker_ regardless of the current fullscreen state. This ensures that as long as a permission bubble is visible, the tab is prevented from entering content fullscreen mode.

C++
// Suggested change in chrome/browser/ui/views/permissions/permission_prompt_bubble.cc
auto blocker = web_contents()->ForSecurityDropFullscreen(display::kInvalidDisplayId);
if (blocker) {
  fullscreen_blocker_ = std::move(*blocker);
}

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 blocker is only acquired if the tab is already in fullscreen when the permission bubble is shown, so prompts shown in windowed mode do not increment the fullscreen blocker count.

Impact

An attacker could mislead a user into granting permissions to a malicious origin by hiding the real address bar and showing spoofed UI under the legitimate prompt; the steps are based on source code analysis and have not been verified with a running proof-of-concept.

What the attacker needed

Victim visits attacker's site; victim clicks a button; geolocation prompt shown without gesture

The fix

The permission prompt bubble should always acquire a fullscreen blocker regardless of the current fullscreen state, so that a visible permission bubble prevents the tab from entering fullscreen.

How it was found

  1. A user navigates to the attacker's site.
  2. The page immediately requests geolocation, causing a permission bubble to appear.
  3. The page shows a button to entice the user to click.
  4. The user clicks, providing a gesture that lets the page request fullscreen.
  5. The browser enters fullscreen, hiding the real address bar.
  6. The permission bubble remains visible and moves to the top, while the attacker renders a fake address bar underneath.

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 asks for a permission like location, the browser shows a small bubble. Normally, the browser also prevents the page from going fullscreen while that bubble is visible, so the address bar stays visible. Here, that protection only turned on if the page was already fullscreen, so a page could show the bubble first and then go fullscreen, hiding the address bar and showing fake content underneath the real bubble.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

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.