Tricking user into accepting PopupNotification prompts through holding down accessKey
A malicious extension could trick a user into accepting an add-on installation prompt by instructing them to hold down the Alt+A key combination, which activates the prompt's accept button. An attacker could thereby get a user to install an unwanted extension.
Originally disclosed on Mozilla
- Fixed in 12 months
- Paid in 13 months
- Disclosed after 12 months
Created attachment 8952850
installExt.xpi
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36
Steps to reproduce:
Install attached PoC extension and follow instructions.
Actual results:
I am mainly using the behavior where if a XPI file is visited then Firefox will automatically attempt to install and prompt user for confirmation.
I noticed that you press ALT+A you can agree to installing the webextension. And so I ask a user to hold down ALT+A and I then attempt to install addon only to trick user into agreeing to install.
Expected results:
Block from ALT+A being activated as soon as the install prompt appears.
A version of this can be done from normal web. See comment 1 and comment 2
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 installation confirmation prompt allows its accept action to be triggered by a keyboard shortcut (Alt+A) that can be held down before the prompt appears, so the keypress is processed as consent without a fresh user action.
Impact
An attacker could trick a user into installing a malicious add-on, potentially leading to further compromise, though the report does not demonstrate exploitation beyond the installation itself.
What the attacker needed
Victim holds down Alt+A; attacker can trigger add-on install prompt
The fix
The installation prompt should ignore or block the Alt+A shortcut while the prompt is active, so that a held key cannot automatically accept the installation.
How it was found
- Install the provided proof-of-concept extension.
- Follow the instructions in the extension to hold down Alt+A.
- The extension triggers an add-on installation prompt.
- The held Alt+A key activates the accept button, installing the add-on without further user action.
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 Firefox asks you to confirm installing an add-on, it shows a pop-up with an 'Accept' button. That button can be triggered by pressing Alt+A on the keyboard. The report shows that if a user is told to hold down Alt+A, a malicious website or extension can make the installation prompt appear and the held key automatically accepts it, so the user installs something they did not intend to.
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.