Skip to content
UI spoofing Disclosed report Intermediate CVE-2021-29987

Moving Permission Panel with Click Still Registered in Default Position on GTK

On Firefox running under KDE, a second permission prompt appears at a different position while its clickable area stays at the original location. A user trying to click the visible button can therefore grant a microphone or geolocation permission unintentionally.

Irvan Kurniawan Follow

Originally disclosed on Mozilla

  • Fixed in 7 days
  • Paid in 24 days
  • Disclosed after 7 days

Created attachment 9226647 moving-permission-panel.html

After request multiple permission at the same time, then after first interaction to the permission panel, the second permission panel will moving to another position with click button still registered on default position, which lead user unintentionally click "Allow" on the permission button.

I noticed it currently affects Linux distributions that use KDE as the desktop environment:

  • Kubuntu
  • openSUSE
  • KDE Neon
  • Fedora KDE
  • Manjaro KDE

When using mozregression the permission panel is moving out after checkout to commit Notification anchors are not hidden when the user types in the location bar.

Tested on:

  • Arch Linux with KDE as default Desktop Environment
  • Kubuntu 21.04 on VM

Steps to reproduce:

  1. Open Firefox on KDE (desktop environment)
  2. Visit attached moving-permission-panel.html
  3. When first permission dialog appear then press 'esc'
  4. The second permission dialog will appear on another position with click still registered on original doorhanger position
  5. Click on "Click to Continue" button
  6. Microphone or geolocation permission is now allowed

The original report as published on Mozilla's Bugzilla, by Irvan Kurniawan. 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 permission panel's anchor or position is recalculated after the first prompt is dismissed, but the clickable region is not updated to match the new position.

Impact

A user could unintentionally grant microphone or geolocation permission, though the issue appears limited to Firefox on KDE-based Linux distributions.

What the attacker needed

Firefox on a KDE-based Linux desktop; Site requests multiple permissions at once; Victim dismisses the first prompt

How it was found

  1. Open Firefox on a KDE desktop environment.
  2. Visit the attached test page that requests several permissions.
  3. Press escape when the first permission dialog appears.
  4. Observe the second dialog appearing at a different position while the click area stays at the original spot.
  5. Click the visible continue button.
  6. The microphone or geolocation permission is then granted.

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 sensitive permission, Firefox shows a small pop-up panel with an Allow button. On some Linux desktops the panel moved to a new spot but the invisible clickable area stayed behind, so clicking where the button appears to be could actually approve a permission the user did not mean to give.

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 Irvan Kurniawan

View all

72 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.