ghacks Technology News

How To Stop Automatic Plugin Installations In Firefox

Yesterday’s incident (read Microsoft Silently Installing Windows Presentation Foundation Plugin For Firefox for pointers) brought up a question on how the plugin that caused the problems was installed it first place. Mozilla Firefox users with the Microsoft net. Framework 3.5 SP1 had the plugin installed without them accepting the installation of the plugin. This can be problematic not only from a security standpoint but also from a stability one.

The majority of the blame should not be put solely on Microsoft though. Other software companies like Apple or Google have been doing exactly the same thing. Firefox users might 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.

firefox plugins

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. The 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. 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
pref(“plugin.scan.SunJRE”, “1.3″);

// Locate plugins by scanning the Adobe Acrobat installation directory with a minimum version
pref(“plugin.scan.Acrobat”, “5.0″);

// Locate plugins by scanning the Quicktime installation directory with a minimum version
pref(“plugin.scan.Quicktime”, “5.0″);

// Locate and scan the Window Media Player installation directory for plugins with a minimum version
pref(“plugin.scan.WindowsMediaPlayer”, “7.0″);

// Locate plugins by the directories specified in the Windows registry for PLIDs
// Which is currently HKLM\Software\MozillaPlugins\xxxPLIDxxx\Path
pref(“plugin.scan.plid.all”, true);

// 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
//pref(“plugin.scan.4xPluginFolder”, false);

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

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.

firefox plugins

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 key to the list of keys protected by the program to be informed whenever a software tried to change or add entries to the key.

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.

Related Articles:

How To Uninstall Windows Presentation Foundation Plugin In Firefox
Thunderbird And Firefox Plugin Checker
Microsoft Silently Installing Windows Presentation Foundation Plugin For Firefox
What Is the Process Plugin-Container.exe?
Mozilla Plugin Check Now Checks Plugins In All Web Browsers



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Sunday October 18, 2009 -
Tags:, ,


Responses so far:

  1. Junkmen says:

    Thanks for the tip man, to be honest I did not even notice they (MS) installed their plugin untill I got that notification.

  2. Transcontinental says:

    Quite wise, thanks Martin. Digging sometimes does lead to non-official alternatives :)

  3. Gennice says:

    I have tweaked my Firefox many times and really made it somewhat different by performance and by apperance too, but I did not know about this one…

    Will definitely give it a try because sometimes I just don’t want some of them to install and add up to my RAM…

    Thanks!

  4. me says:

    Or you can go to options …advanced…update…and uncheck auto update…and manually do it….! Then you don’t have to install anything you don’;t want.

  5. jj says:

    i hate auto addon crap
    just stop messing with my stuff and ASK before doing whatever you want to

    removing .net WPF, java, GOOGLE and any ADOBE crap is just stupid
    ASK and I MIGHT SAY YES

    disable and uninstall ARGHH

  6. ankit says:

    well that was good but there is easier way to stop automatic updates

    1.open Firefox browser
    2.go to tools —-options
    3. click advanced tab
    4.check —-”ask me what I want to do” under”when updates for Firefox are found” and click “OK”
    your done

  7. Ken Mason says:

    To easily remove any plugin, first install the MR Tech Toolkit add-on. That will show you the actual ID (DLL) for each plugin. To remove any plugin, just search for that DLL in your Mozilla profile folder.and delete it. The next time FF starts, that plugin will be gone!

    BTW, it also shows you each add-on’s ID, and you can go directly to it’s install folder.

  8. Taomyn says:

    My tip, rather than comment the all.js entries out, use about:config and set the version values for each you want to disable to “999″, that way even after a Firefox upgrade which will re-write that file, the changes stick. Unless it finds version 999 or above, it won’t load them.

  9. dan says:

    doesn’t work for Firefox 4 – any ideas?

  10. Kie says:

    all.js no longer exists

    It seems Mozilla do not want you to have control over addon installations, they have made it difficult from day one to stop the installations, having to jump through multiple complex hoops just to remove a plugin but no way to stop any new unknown plugins from infecting Firefox.

    I’m surprised there’s anyone who doesn’t have trojans right now because most people are browsing the web with out of date addons that have serious vulnerabilities.

    Why do Mozilla not allow the user control over whether Firefox enumerates plugins? And why do they not pop-up a choice box asking the user if they want any new plugin?

    Firefox actively searches for Quicktime and many other plugins and will happily allow old vulnerable plugins to run silently allowing a users PC to be infected with all kinds of nasty crap, without ever trying to update or automatically disable the bad plugins. Not to mention zero-day-exploits.

    Fucking stupid, they should be sued for gross incompetence and clean-up costs.

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us