Skip to content
UI spoofing Disclosed report Advanced

PopupNotifications clickjacking by obscuring notification via full screen exit transition

A clickjacking flaw in Firefox's PopupNotifications allowed a fullscreen exit transition to obscure the permission prompt, so a user's rapid clicks could accept it without the intended enablement delay. An attacker could thereby get a user to approve a notification they did not intend to accept.

haxatron1 Follow

Originally disclosed on Mozilla

  • Fixed in 11 days
  • Paid in 14 days
  • Disclosed after 11 days
Text
Created attachment 9364822
test.html

By combining techniques from https://bugzilla.mozilla.org/show_bug.cgi?id=1839073 and https://bugzilla.mozilla.org/show_bug.cgi?id=1857430, possible to bypass fullscreen.

STR
0. For better verification, increase security.notification_enable_delay in about:config to 1000.
1. Open test.html
2. Hover over button and spam click.
3. The prompt is accepted instantaneously after a fullscreen transition without enablement delay of 1000ms

Hypothesis: In this patch we reset the timeShown of https://hg.mozilla.org/mozilla-central/rev/75b8d8d5ea21 when window containing prompt gains focus. Therefore, I think any modifications to the timeShown variable in the fullscreen patch can be reset though this.

The original report as published on Mozilla's Bugzilla, by haxatron1. 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 fullscreen transition code resets the prompt's timeShown value when the window regains focus, removing the enablement delay that is meant to stop accidental clicks.

Impact

A user could be tricked into accepting a browser permission prompt through rapid clicking during a fullscreen transition, bypassing the anti-accidental-click delay.

What the attacker needed

Victim uses Firefox; victim clicks repeatedly on a crafted page

How it was found

  1. Raise the notification enablement delay in the browser's advanced settings for clearer verification.
  2. Open the provided test page.
  3. Hover over the button and click repeatedly.
  4. Observe the prompt being accepted straight after the fullscreen transition, without the configured delay.

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 and normally waits a moment before the buttons work, so you cannot accept it by accident. Here, a fullscreen animation could hide that prompt while it was still clickable, so fast clicking landed on the accept button. The report shows this let a page get a prompt accepted without the usual waiting period.

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 by haxatron1

View all

30 more disclosed reports, best first.

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.