Skip to content
UI spoofing Disclosed report Advanced CVE-2026-8960

Content of Permission Prompt Can Be Spoofed, Because Extension Page/Browser Action Popup Can Cover Permission Prompt

A malicious browser extension's page action or browser action popup can be rendered on top of a site's permission prompt, letting the attacker spoof the domain and permission shown. A user could then grant a permission to an attacker-controlled site believing it belongs to a trusted one.

Kanaru Sato Follow

Originally disclosed on Mozilla

  • Fixed in 15 months
  • Paid in 4 months
  • Disclosed after 15 months

Created attachment 9445916 poc.zip

Summary

The content (i.e. domain and permission) of site's permission prompt can be spoofed, because extension's page/browser action popup can cover (i.e. render over) the prompt.

The attacker has to create two things.

  • an extension with well-crafted popups
  • a page on that the attacker wants the user to allow unintentional permission

Description

  • Because the layer order of rendering between extension's page/browser action popup and site's permission prompt is determined by the rendered order, one which is rendered first can cover the other.
  • So, a malicious extension creator can spoof the content (i.e. domain and permission) on permission prompt, by crafting extension's page/browser action popup and fitting it to the prompt.
  • Here, in order to fit the popup to the prompt, the attacker (equal to the malicious extension creator) has to do two things. A. make the user unknowingly open the popup, after the prompt is rendered B. resize the window (B is unnecessary in some cases. please refer to Note 3)
  • For achieving A, the attacker can use "_execute_page_action" and "_execute_browser_action" of manifest.json. It enables the user to open the popups with keyboard shortcut.
    • Note 1: Although I couldn't find how to use browser.browserAction.openPopup on FireFox, if the attacker can use it, opening the browser action popup is not only limited to keyboard shortcut but also achieved by user gesture such as click.
  • For achieving B, the attacker can create popup window and use window.resizeTo.
    • Note 2: Browser action popup exists only on the main window (not on a popup window). So the attacker cannot use it if using a popup window.
    • Note 3: Creating a popup window consumes one user gesture, so the attacker has a choice to use the main window. In this case, the spoofing should succeed only if the main window is narrow enough. So, the attacker may instruct the user to shrink the window size somehow.
  • The attacker can spoof the permission prompt on a malicious page and the user can give the malicious domain unintentional permission.

Demo and Reproduction Steps

I think it's best to see the demo movie at first to know what happens, because it depends on the screen size if the popup fits the prompt, i.e. if the spoof succeeds. (Note 4: I haven't tried to programmatically modify the popup size according to the screen size and even I don't know if it's possible. However, I can research on that if that is an important point.)

The demo is produced by the following reproduction steps. It uses the page action popup and resizes a popup window.

  • Install the attached extension (i.e. manifest.json, content.js and page_action.html). Just fyi, I installed it as a temporary extension.
  • Host the attached index.html and popup.html in the same directory.
  • Access to index.html.
  • Press the displayed button, which opens a popup window.
  • Following the instruction on the popup window, press Cmd+Shift+I.
  • Observe the spoofing succeeds.

Environment

  • FireFox version: 133.0.3 (aarch64)
  • OS: macOS Sequoia 15.2

Possible Mitigation

I think one of the simple solutions is "make the permission prompt always rendered on the most top (or at least upper than extension's popups)". Actually, this spoof was once reported on Chromium (ref: https://issues.chromium.org/issues/40058873) and Chromium seems to have taken this solution. Comment #13 may be informative (ref: https://issues.chromium.org/issues/40058873#comment13).

The original report as published on Mozilla's Bugzilla, by Kanaru Sato. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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 rendering layer order between extension popups and permission prompts is decided by which is drawn first, so an extension popup can be placed above the prompt.

Impact

A user could grant a permission to an attacker's domain unintentionally, though the spoof only works if the popup fits the prompt, which depends on screen and window size.

What the attacker needed

Victim installs a malicious extension; victim opens an attacker page; victim presses a keyboard shortcut; popup must fit the prompt size

The fix

The permission prompt should always be rendered above extension popups, as Chromium reportedly did.

How it was found

  1. Install the provided extension as a temporary extension.
  2. Host the provided page and popup files in the same directory.
  3. Open the page in the browser.
  4. Press the button on the page, which opens a popup window.
  5. Follow the instruction on the popup window and press the keyboard shortcut.
  6. Observe that the spoofing succeeds.

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, the browser shows a small prompt naming the site. This report shows that a malicious browser extension can draw its own popup over that prompt, so the user sees a fake domain and permission. The user may then approve access for a site they did not intend to trust.

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 Mozilla

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.