Mozilla Firefox users noticed yesterday that a new plugin was installed in their web browser without them being informed about it (read Microsoft Silently Installing Windows Presentation Foundation Plugin For Firefox for pointers. Mozilla Firefox users on Windows who installed the Microsoft net. Framework 3.5 SP1 on the operating system had a plugin installed in Firefox automatically without receiving a prompt or notification about it.
This is problematic from a security point of view but also when it comes to stability and privacy.
The majority of blame should not be put solely on Microsoft though as other software companies like Apple or Google have done exactly the same thing in the past to load their plugins in the web browser.
Firefox users may notice a Google Update plugin or Apple iTunes plugin in the plugin section of the web browser, and those installations are not blocked by the Firefox browser as well. These companies use how Firefox detects and loads plugins, and while there are ways to block plugins from being loaded, no initial protection is provided by the browser.
There is however an option to block automatic plugin installations. It is not a perfect solution though but it is all that is provided currently. Mozilla developers have added several directories and locations in the Firefox preferences that are automatically scanned by the web browser for plugins. If a plugin is found it will be added and activated in the browser.
These plugin directories are listed in the all.js files which is located in the greprefs directory of the Firefox installation.
Update: Mozilla has changed the location and name of the preferences file. The all.js file and greprefs folder are no longer available, at least not in their initial location. The resource file you are looking for has been integrated into the omni.ja file in the default Firefox installation directory.
The easiest way to control plugins is to load about:config in Firefox, and manage the preference names there:
It is possible - but not recommended - to extract the archive, edit the greprefs.js file that you find inside, create a new archive, and replace the original file with this one.
Mozilla has integrated other means of changing values in files contained in the omni.ja file, and I'm going to show you how this is done.
All you have to do is create your own custom greprefs.js file, and place it in the /defaults/pref/ directory of your Firefox installation folder.
Here is what you need to add to it to block plugins:
This blocks the Registry scanning
To block individual plugins as outlined below, change the version to a very high value, e.g. 100.0. Firefox will only include the plugins if they match that version, and since they don't, will block the plugin from being used. Adding the comment symbol // in front does not work anymore.
The following directories and locations are listed in the file (search for plugin or another word that will move the cursor to that position).
// Locate Java by scanning the Sun JRE installation directory with a minimum version
// Note: Does not scan if security.enable_java is not true
// Locate plugins by scanning the Adobe Acrobat installation directory with a minimum version
// Locate plugins by scanning the Quicktime installation directory with a minimum version
// Locate and scan the Window Media Player installation directory for plugins with a minimum version
// Locate plugins by the directories specified in the Windows registry for PLIDs
// Which is currently HKLM\Software\MozillaPlugins\xxxPLIDxxx\Path
// Controls the scanning of the Navigator 4.x directory for plugins
// When pref is missing, the default is to pickup popular plugins such as
// Flash, Shockwave, Acrobat, and Quicktime. If set to true, ALL plugins
// will be picked up and if set to false the scan will not happen at all
As you can see there are entries for
Sun Java, Adobe Acrobat, Apple Quicktime, the Windows Registry and Netscape plugins. Putting a comment in front of the plugin locations that should not be scanned will block those plugins from being started with Firefox (comments are added by adding // in front of a row). Update: The Sun entry was removed recently
As far as Quicktime, Windows Media Player, Adobe Acrobat and
Java plugins are concerned, you got a second option. Instead of commenting the line out, you can increase the minimum version that you want to install. You can set it to 500 for instance, or the very latest version so that previous versions of the plugin are not picked up anymore.
Many Microsoft, Apple and Google plugins are added from the location in the Windows Registry. It is not advised to block that location completely as it also lists the Adobe Flash plugin in the Registry which would stop Flash support in the web browser. The only solution right now would be to go into the Registry and backup and remove the plugins that are not needed. If it were not for the Flash plugin the whole Registry location could be blocked from being scanned.
The programs will not add their plugins again to the Windows Registry unless they are updated or reinstalled. Another option to automatically block plugin installation (and display a prompt instead) is to use a software that will show a prompt before a specific Registry key is edited in Windows. A program like MJ Registry Watcher can do that. Simply add the HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins, HKEY_CURRENT_USER\Software\MozillaPlugins and HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins keys to the list of keys protected by the program. You are informed then whenever a program wants to add a new key to these locations on Windows.
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.