Rapid7 Vulnerability & Exploit Database

Mozilla Firefox Bootstrapped Addon Social Engineering Code Execution

Back to Search

Mozilla Firefox Bootstrapped Addon Social Engineering Code Execution

Disclosed
06/27/2007
Created
05/30/2018

Description

Mozilla Firefox before version 41 allowed users to install unsigned browser extensions from arbitrary web servers. This module dynamically creates an unsigned .xpi addon file. The resulting bootstrapped Firefox addon is presented to the victim via a web page. The victim's Firefox browser will pop a dialog asking if they trust the addon. Once the user clicks "install", the addon is installed and executes the payload with full user permissions. As of Firefox 4, this will work without a restart as the addon is marked to be "bootstrapped". As the addon will execute the payload after each Firefox restart, an option can be given to automatically uninstall the addon once the payload has been executed. As of Firefox 41, unsigned extensions can still be installed on Firefox Nightly, Unbranded and Development builds when configured with `xpinstall.signatures.required` set to `false`. Note: this module generates legacy extensions which are supported only in Firefox before version 57.

Author(s)

  • mihi
  • joev <joev@metasploit.com>

Platform

Java,Linux,OSX,Solaris,Windows

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/browser/firefox_xpi_bootstrapped_addon
msf exploit(firefox_xpi_bootstrapped_addon) > show targets
    ...targets...
msf exploit(firefox_xpi_bootstrapped_addon) > set TARGET < target-id >
msf exploit(firefox_xpi_bootstrapped_addon) > show options
    ...show and set options...
msf exploit(firefox_xpi_bootstrapped_addon) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;