Skip to content
UI spoofing Advisory Intermediate CVE-2025-0451

Inappropriate implementation in Extensions API (CVE-2025-0451)

An extension can create an inactive window over an active window, hiding permission prompts while the active window still receives keyboard input. This allows the extension to trick the user into granting permissions without awareness.

Vitor Torres Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 2.4 years

VERSION

Chrome Version: 105.0.5195.127 (Official Build) (64-bit)
Operating System: Windows 10 Pro Version 21H1 (Build 19043.2006)

VULNERABILITY DETAILS

This report covers some behavior previously reported in 1302159 (CVE-2022-2616), 1290213, and 1301203; expanding the impacts not included in the final CVE fix

It's the same history: An extension can create an inactive window (chrome.windows.create with focused: false) over an active window, which obscures the active window. The active window still can receive keyboard inputs and this can hide user keyboard interaction inputs with sensitive browser UI and web pages, for example, permissions request from the site.

Impact: Granting permission API requests without the user awareness and the extension does not require any permission.

Here in this report, I'm covering the usage of the Permissions API as an example but it could leave a door open for many more cases.

* Permission API requests: Accepting permission requests with 3 user key presses;

The extension can inject javascript code into the page DOM, so we could use the extension to monitor the PermissionStatus.state or place observers on methods like a navigator.geolocation.getCurrentPosition (and tons of others that uses the permission API) by hooking it / overwriting or such on this function to as soon as any permission prompt gets called, the extension knows the timing when to create a new unfocused window over the permissions API prompt from the browser, at this moment the main window still can receive keyboard inputs, being able to grant permissions without the awareness.

REPRODUCTION CASE

  1. Install the attached extension, the extension does not require any permission, not even externally_connectable;
  2. Visit https://chrome-permissions.vercel.app/ ( could be any site that prompts the permission API request to the user, but for this example, I'm using this link using only the navigator. geolocation case );
  3. Once the extension reveals the active window, observe the interaction (TAB TAB ENTER);
  4. The user granted permission without the awareness

CREDIT INFORMATION

Reporter credit: Vitor Torres https://github.com/vtorres/

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Chrome extensions can create browser windows through the chrome.windows API. One of the options on chrome.windows.create is focused: false, which creates a window that does not take keyboard focus. The intent is to let an extension open a window in the background without stealing the user's attention.

The behaviour described here is that such an unfocused window can still be drawn on top of the currently active window, obscuring it. The active window keeps receiving keyboard input, so the user can be typing into browser UI or a web page that they can no longer see. The report uses the Permissions API as the example: a site asks for a permission, the extension covers the prompt with an inactive window, and the user's keystrokes still reach the prompt underneath.

The report states that this expands on behaviour previously reported in 1302159 (CVE-2022-2616), 1290213 and 1301203, covering impacts that were not included in the final CVE fix. The platform records the issue as CVE-2025-0451, an inappropriate implementation in the Extensions API, rated medium severity, disclosed on 4 February 2025, with a bounty of 2000.00 USD. The reporter credit is Vitor Torres, and the platform also lists Alesandro Ortiz.

Setup

The researcher tested on:

  • Chrome Version: 105.0.5195.127 (Official Build) (64-bit)
  • Operating System: Windows 10 Pro Version 21H1 (Build 19043.2006)

The only other component is an attached extension. According to the report, the extension requires no permissions at all, not even externally_connectable. The test page is https://chrome-permissions.vercel.app/, which the report describes as interchangeable with any site that prompts a Permissions API request; the example uses only the navigator.geolocation case.

Finding it

The researcher had already reported the underlying window behaviour in earlier issues. What looked wrong here is the combination: an extension can create an inactive window with chrome.windows.create and focused: false over an active window, which obscures the active window, yet the active window still receives keyboard input. That means keyboard interaction with sensitive browser UI and web pages, such as a site's permission request, can be hidden from the user while still being operable.

The stated impact is granting permission API requests without the user's awareness, from an extension that holds no permissions. The report presents the Permissions API as one example and notes that it could leave a door open for many more cases.

Exploitation

Step 1: Install the extension

Install the attached extension. The report stresses that it does not require any permission, not even externally_connectable.

Step 2: Visit a page that prompts for a permission

Visit https://chrome-permissions.vercel.app/. The report notes this could be any site that prompts a Permissions API request, and that the example uses only the navigator.geolocation case.

Step 3: Detect the prompt and cover it

The extension injects JavaScript into the page DOM. From inside the page it can monitor PermissionStatus.state, or place observers on methods such as navigator.geolocation.getCurrentPosition (and many others that use the Permissions API) by hooking, overwriting or similar means. As soon as any permission prompt is called, the extension knows the timing and creates a new unfocused window over the browser's permission prompt. At that moment the main window can still receive keyboard input.

Step 4: The keystrokes reach the hidden prompt

Once the extension reveals the active window, the interaction to observe is:

Text
TAB TAB ENTER

Those three key presses accept the permission request. The report describes accepting permission requests with 3 user key presses. The user grants the permission without being aware of it, because the prompt was obscured by the inactive window while the keystrokes went to the active window underneath.

Root cause

The behaviour is that focused: false on chrome.windows.create creates an inactive window that can obscure the active window, which still receives keyboard input. The active window therefore remains the keyboard target while being visually obscured. The report frames this as the same history as the earlier issues: an extension can create an inactive window over an active window, which obscures the active window, and the active window still receives keyboard inputs.

The extension needs no permissions to do this. Injecting into the page and hooking permission-related APIs is what lets it time the window creation to the moment a prompt appears, so the cover window lands exactly when the user is about to interact with sensitive UI. The report says the impacts described here were not included in the final CVE fix.

Impact

An extension with no permissions can cause permission API requests to be granted without the user's awareness. The report's example is the Permissions API, accepted with three key presses, but it states explicitly that this is one example and that the behaviour could leave a door open for many more cases involving hidden keyboard interaction with sensitive browser UI and web pages.

Fix

The report does not describe the fix that was applied. The platform records the issue as CVE-2025-0451, an inappropriate implementation in the Extensions API. The report establishes the behaviour: an inactive window created by an extension can obscure the active window while that window continues to receive keyboard input.

Variants to test

  • Other permission-gated APIs beyond geolocation: hook the corresponding entry point in the page and check whether a prompt can be covered at the moment it appears. A positive result is the prompt being obscured while TAB TAB ENTER still accepts it.
  • Other sensitive browser UI that accepts keyboard input: the report says the technique could apply to many more cases than the Permissions API. A positive result is any hidden UI that can be operated by keystrokes sent to the active window.
  • Timing detection through PermissionStatus.state versus hooking a method such as navigator.geolocation.getCurrentPosition: both are named in the report as ways to learn when a prompt is called. A positive result is reliable detection of the prompt before the user reacts to it.
  • Extensions with no declared permissions, including no externally_connectable: confirm whether the window creation and page injection still work. A positive result is the full chain running from an extension that shows no permission warning.

Hunting notes

This kind of bug sits in the interaction between extension APIs and browser UI: window creation options such as focus, stacking and visibility, and any UI that accepts keyboard input. The signal during recon is an API option whose name suggests it only affects focus, and a check of whether it also affects what is drawn on top of what. The researcher demonstrated a permission granted without awareness using an extension with no permissions and a three-keystroke interaction, and tied it to earlier reports.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

What happened, in plain words

Chrome lets extensions (small add-on programs you install in the browser) open new browser windows. One of the settings when an extension opens a window is "do not take the keyboard focus". The idea is simple: the extension can open a window in the background without pulling your attention away from whatever you are doing.

The problem described here is that such a background window can still be drawn on top of the window you are actually using, hiding it from view. Your keyboard input, however, keeps going to the window underneath, the one you can no longer see. So you can be pressing keys that land in browser interface or a web page that is completely covered by another window.

The report uses a permission request as the example. A website asks the browser for permission to do something (for instance, to know your location). The extension covers that permission prompt with an inactive window. You press keys, and those keys still reach the prompt hidden underneath, accepting the permission without you realising it.

The report says this builds on behaviour reported earlier in issues 1302159 (CVE-2022-2616), 1290213 and 1301203, and covers impacts that the earlier fix did not include. The platform records the issue as CVE-2025-0451, an inappropriate implementation in the Extensions API, rated medium severity, disclosed on 4 February 2025, with a bounty of 2000.00 USD. The reporter credit is Vitor Torres, and the platform also lists Alesandro Ortiz.

A few words before we go further, because the rest of the article uses them constantly.

  • An API (Application Programming Interface) is a set of commands one program offers to another. Think of a restaurant menu: you do not walk into the kitchen, you order from a fixed list of dishes. The chrome.windows API is Chrome's menu of window-related commands for extensions.
  • An extension is a small program added to the browser. It runs with a list of permissions, which are declared abilities such as "can read the pages you visit". Chrome shows you a warning at install time listing them.
  • A permission prompt is the little dialogue a site triggers when it wants something sensitive, such as your location. You normally answer it by clicking, or by pressing keys.
  • Focus means which window or element currently receives your typing. Only one thing has keyboard focus at a time.

Setup

The researcher tested on:

  • Chrome Version: 105.0.5195.127 (Official Build) (64-bit)
  • Operating System: Windows 10 Pro Version 21H1 (Build 19043.2006)

The only other component is an attached extension. According to the report, the extension requires no permissions at all, not even externally_connectable. That second term deserves a note: externally_connectable is a setting that lets web pages talk to an extension.

The test page is https://chrome-permissions.vercel.app/. The report describes it as interchangeable with any site that prompts a Permissions API request, and the example uses only the navigator.geolocation case. navigator.geolocation is the part of the browser that a page calls when it wants your location; the Permissions API is the general mechanism behind such requests.

Finding it

The researcher had already reported the underlying window behaviour in the earlier issues. What looked wrong here is the combination of two things that each seem harmless on their own:

  1. An extension can create an inactive window with chrome.windows.create and focused: false over an active window. The new window does not take the keyboard, but it is still drawn on top, so it hides the active window.
  2. The active window still receives keyboard input.

Put together, keyboard interaction with sensitive browser interface and web pages, such as a site's permission request, can be hidden from you while still being operable. The stated impact is granting permission API requests without your awareness, from an extension that holds no permissions. The report presents the Permissions API as one example and notes that it could leave a door open for many more cases.

Exploitation

Step 1: Install the extension

Install the attached extension. The report stresses that it does not require any permission, not even externally_connectable.

Step 2: Visit a page that prompts for a permission

Visit https://chrome-permissions.vercel.app/. The report notes this could be any site that prompts a Permissions API request, and that the example uses only the navigator.geolocation case. The reason for this step is to make the browser show a permission prompt, which is the sensitive interface the attack needs to cover.

Step 3: Detect the prompt and cover it

The extension injects JavaScript into the page DOM. Two terms here: JavaScript is the programming language web pages run in your browser, and the DOM (Document Object Model) is the browser's live model of the page, the structure the page's code reads and changes. Injecting into the DOM means the extension's code runs inside the page itself, alongside the page's own code.

From inside the page it can monitor PermissionStatus.state, or place observers on methods such as navigator.geolocation.getCurrentPosition (and many others that use the Permissions API) by hooking, overwriting or similar means. In plain words: PermissionStatus.state is a value that tells you whether a permission is granted, denied or still being asked. navigator.geolocation.getCurrentPosition is the function a page calls to request your location. Hooking or overwriting means replacing such a function with your own version that notices when it is called and can pass the call on. An observer is code that watches for something to happen and reacts.

As soon as any permission prompt is called, the extension knows the timing and creates a new unfocused window over the browser's permission prompt. At that moment the main window can still receive keyboard input. The reason for this step is timing: the cover window has to appear exactly when the prompt does, before you react to it.

Step 4: The keystrokes reach the hidden prompt

Once the extension reveals the active window, the interaction to observe is:

Text
TAB TAB ENTER

Line by line, in plain words: TAB moves the keyboard selection to the next control in the prompt, a second TAB moves it again, and ENTER activates whatever is selected. Those three key presses accept the permission request. The report describes accepting permission requests with 3 user key presses. You grant the permission without being aware of it, because the prompt was obscured by the inactive window while the keystrokes went to the active window underneath.

Root cause

The behaviour is that focused: false on chrome.windows.create creates an inactive window that can obscure the active window, which still receives keyboard input. The active window therefore remains the keyboard target while being visually obscured. The report frames this as the same history as the earlier issues: an extension can create an inactive window over an active window, which obscures the active window, and the active window still receives keyboard inputs.

The extension needs no permissions to do this. Injecting into the page and hooking permission-related APIs is what lets it time the window creation to the moment a prompt appears, so the cover window lands exactly when you are about to interact with sensitive interface. The report says the impacts described here were not included in the final CVE fix.

Impact

An extension with no permissions can cause permission API requests to be granted without your awareness. The report's example is the Permissions API, accepted with three key presses, but it states explicitly that this is one example and that the behaviour could leave a door open for many more cases involving hidden keyboard interaction with sensitive browser interface and web pages.

Fix

The report does not describe the fix that was applied. The platform records the issue as CVE-2025-0451, an inappropriate implementation in the Extensions API. The report establishes the behaviour: an inactive window created by an extension can obscure the active window while that window continues to receive keyboard input.

Variants to test

  • Other permission-gated APIs beyond geolocation: hook the corresponding entry point in the page and check whether a prompt can be covered at the moment it appears. A positive result is the prompt being obscured while TAB TAB ENTER still accepts it.
  • Other sensitive browser interface that accepts keyboard input: the report says the technique could apply to many more cases than the Permissions API. A positive result is any hidden interface that can be operated by keystrokes sent to the active window.
  • Timing detection through PermissionStatus.state versus hooking a method such as navigator.geolocation.getCurrentPosition: both are named in the report as ways to learn when a prompt is called. A positive result is reliable detection of the prompt before you react to it.
  • Extensions with no declared permissions, including no externally_connectable: confirm whether the window creation and page injection still work. A positive result is the full chain running from an extension that shows no permission warning.

Hunting notes

This kind of bug sits in the interaction between extension APIs and browser interface: window creation options such as focus, stacking and visibility, and any interface that accepts keyboard input. Stacking simply means which window is drawn on top of which. The signal during recon is an API option whose name suggests it only affects focus, and a check of whether it also affects what is drawn on top of what. The researcher demonstrated a permission granted without awareness using an extension with no permissions and a three-keystroke interaction, and tied it to earlier reports.

Glossary

  • API: a fixed set of commands one program offers to another, like a menu you order from.
  • Extension: a small add-on program installed in the browser, running with a declared list of permissions.
  • Permission: a declared ability an extension asks for, such as reading the pages you visit; Chrome warns you about them at install time.
  • externally_connectable: an extension setting that allows web pages to communicate with the extension.
  • Permission prompt: the dialogue a site triggers when it wants something sensitive, such as your location.
  • Permissions API: the browser mechanism through which pages request and check permissions.
  • navigator.geolocation: the browser feature a page calls to ask for your location.
  • navigator.geolocation.getCurrentPosition: the specific function a page calls to request your current location.
  • PermissionStatus.state: a value saying whether a permission is granted, denied or still being asked.
  • Focus (keyboard focus): which window or element currently receives your typing; only one has it at a time.
  • chrome.windows: Chrome's API that lets extensions create and manage browser windows.
  • chrome.windows.create: the command that opens a new window, with options such as focused.
  • focused: false: an option that opens a window without taking keyboard focus.
  • JavaScript: the programming language web pages run in the browser.
  • DOM (Document Object Model): the browser's live model of a page, which page code reads and changes.
  • Injecting: running code inside a page from outside, such as from an extension.
  • Hooking / overwriting: replacing a function with your own version that notices calls and can pass them on.
  • Observer: code that watches for something to happen and reacts.
  • CVE: a public identifier for a known security vulnerability.
  • CVE-2022-2616: the earlier CVE from issue 1302159, referenced by the report.
  • CVE-2025-0451: the identifier the platform records for this issue.
  • Inappropriate implementation: the weakness category recorded for this issue, meaning the feature was built in a way that allows unintended behaviour.
  • Severity: a rating of how serious an issue is; this one is medium.
  • Bounty: a payment made to a researcher for a valid report; here 2000.00 USD.
  • Stacking: which window is drawn on top of which.
  • Recon: the exploratory phase of looking for weaknesses before building a proof.
  • Proof / reproduction case: the concrete steps that show the issue happening.

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.