UI misrepresentation in Extensions (CVE-2026-113278)
A logic flaw in the Chrome Extensions API classifies Document Picture-in-Picture windows as normal windows, so an extension can target them with window state changes. This could let a malicious extension force an always-on-top PiP window into fullscreen or maximised state, creating a spoofing surface over browser UI such as the Omnibox.
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 logic flaw in the Extensions API incorrectly classifies Document Picture-in-Picture windows as normal windows. This allows extensions to bypass explicit security constraints intended to prevent these always-on-top windows from entering fullscreen or maximized states.
Affected files:
chrome/browser/extensions/browser_extension_window_controller.ccchrome/browser/ui/browser_window/internal/browser_window_features.ccchrome/browser/ui/views/frame/browser_view.ccchrome/browser/ui/exclusive_access/fullscreen_controller.ccui/views/widget/widget.ccchrome/browser/ui/views/frame/picture_in_picture_browser_frame_view.ccchrome/browser/ui/views/frame/browser_widget.ccchrome/browser/extensions/api/tabs/tabs_api.cc
Estimated timestamp from git blame: 2024-11-15
Summary
Potential logic errors in the Chrome Extensions API and FullscreenController may allow a malicious extension to bypass security constraints on Document Picture-in-Picture (PiP) windows. By targeting these windows with chrome.windows.update, an extension can potentially force them into fullscreen or maximized states despite explicit internal policies prohibiting this. Since Document-PiP windows have the kFloatingWindow z-order (always-on-top), this behavior could be leveraged to create a persistent, frameless spoofing surface covering critical browser UI elements like the Omnibox.
Potential Root Causes
Our analysis of the codebase suggests the following contributing factors:
-
Incorrect Window Classification: In
chrome/browser/extensions/browser_extension_window_controller.cc,GetTabsWindowType()classifiesTYPE_PICTURE_IN_PICTUREwindows asapi::tabs::WindowType::kNormal. This makes them eligible targets forchrome.windowsAPI calls. -
Constraint Bypass in FullscreenController: Document-PiP windows call
SetCanFullscreen(false)andSetCanMaximize(false)inBrowserView. However,FullscreenController::ToggleFullscreenModeInternal(inchrome/browser/ui/exclusive_access/fullscreen_controller.cc) appears to bypass theCanUserEnterFullscreen()check for requests whereuser_initiatedis false, which includes all programmatic requests from extensions. -
Direct State Manipulation: Programmatic calls to
Widget::Maximize()do not appear to consult theCanMaximize()flag of theWidgetDelegatebefore applying the state transition to the native widget.
Potential Impact
Document-PiP windows are designed with strict state constraints to prevent them from being used for UI spoofing. The ability to force these always-on-top windows into a fullscreen or maximized state allows a malicious origin to potentially:
- Obscure the browser's security UI (Omnibox) with content controlled by a web page.
- Create an always-on-top, frameless overlay that covers the entire screen or specific UI components to facilitate credential theft or phishing.
Suggested Reproduction Steps (Potential)
Note: These steps are based on code analysis and have not been validated with a running proof-of-concept.
- A user visits a website that opens a Document Picture-in-Picture window.
- An installed extension identifies this window by calling
chrome.windows.getAll(). Due to the classification error, the PiP window appears with atypeof 'normal'. - The extension calls
chrome.windows.update(windowId, {state: 'fullscreen'})orstate: 'maximized'targeting the PiP window. - Observe if the window transitions to the requested state, sitting above other windows due to its floating z-order.
Suggested Fix
- Update
chrome/browser/extensions/browser_extension_window_controller.ccto correctly classifyTYPE_PICTURE_IN_PICTUREwindows, or ensure they are excluded from state-changing API calls unless explicitly intended. - Modify
FullscreenController::ToggleFullscreenModeInternalto enforceCanUserEnterFullscreen()checks even for non-user-initiated requests if the target window is a Picture-in-Picture window. - Consider adding guards in
views::Widget::Maximize()andviews::Widget::SetFullscreen()to consult theWidgetDelegatebefore proceeding with state changes.
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 a combination of three mistakes: PiP windows are reported to extensions as normal windows, the fullscreen controller skips its permission check for programmatic requests, and the widget maximise path ignores the delegate's can-maximise flag.
Impact
A malicious extension could potentially cover the Omnibox with page-controlled content and build an always-on-top frameless overlay to aid credential theft or phishing; the report notes the steps are unvalidated code analysis, not a working proof of concept.
What the attacker needed
A malicious extension installed; victim visits a page opening a PiP window
The fix
The window type should be classified correctly or excluded from state-changing calls, the fullscreen controller should enforce its permission check for PiP windows, and the widget state changes should consult the delegate first.
How it was found
- A user visits a site that opens a Document Picture-in-Picture window.
- An installed extension lists windows and sees the PiP window typed as normal.
- The extension asks for that window to become fullscreen or maximised.
- Check whether the window changes state and floats above other windows.
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.
Picture-in-Picture windows are small floating windows that stay on top of other windows. Chrome deliberately stops these windows from going fullscreen or maximised, because a page could then cover the address bar and pretend to be the browser. The report says a mistake in how extensions see these windows lets an extension ask for those forbidden states anyway.
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.