Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Hijacking Firefox Via Insecure Add-Ons

Posted by kdawson on Thu May 31, 2007 07:42 AM
from the update-me-please dept.
An anonymous reader writes "Many makers of extensions or add-ons for Firefox are introducing ways for bad guys to hijack the Web browser, new research suggests. A great many add-ons are updated over insecure (non https://) connections, providing an avenue for attackers to replace the extension with an evil update. Google's add-ons are particularly vulnerable, because they update automatically without notifying the user. From the story: '[I]f an attacker were to hijack a public Wi-Fi hot spot at a coffeehouse or bookstore — a fairly trivial attack given the myriad free, point-and-click hacking tools available today — he could also intercept this update process and replace a Firefox add-on with a malicious one.'" Here is security researcher Chris Soghoian's description of the vulnerability and a video of a simulated takeover.

Related Stories

[+] Zero Day Hole In Google Desktop 113 comments
40by40 writes "A Web application security specialist has figured out a way to launch man-in-the-middle attacks against a computer with a fully patched Google Desktop installed. With knowledge of the Google Desktop security model (a combination of one-time tokens, iFrames and JavaScript), hacker Robert Hansen figured out a way to sit between a target launching a Google search query and manipulate the search results to take control of other programs on the desktop. From the article: 'This should drive home the point that deep integration between the desktop and the web is not a good idea, without tremendous thought put into the security model. As Google's site is unencrypted, and they place their content that can run executables on their site, it can be subverted by an attacker," Hansen warns. Hansen's advisory comes just days after a Chris Soghoian's exposé of a similar man-in-the-middle attack scenario against a remote vulnerability in the upgrade mechanism used by a number of commercial Firefox extensions.'"
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • fud? (Score:4, Interesting)

    They mention the google plugin. Doesn't google offer almost all of its firefox offerings as IE search bars, desktop agents, and stuff like that. So why is the update structure for firefox different than, say, google search bar on IE?
    • Re:fud? by Anonymous Coward (Score:2) Thursday May 31, @07:59AM
      • Re:fud? (Score:4, Interesting)

        by mhall119 (1035984) on Thursday May 31, @08:17AM (#19335947)
        (http://jcaif.sourceforge.net/)
        Any developer can create their own SSL Certificates for free. It's getting a certificate that's been signed by a vendor already in Firefox's whitelist that they are paying for. I would rather each developer create their own self-signed certificate, then I get to decide who to trust, not Verisign.

        But using HTTPS wouldn't solve this problem either, because Verisign will sell a certificate to anyone with money. What should be happening is that developers sign their packages like they do for DEB and RPM package distros. That way you always know that you're getting your updates from the same person, no matter what your internet connection.
        [ Parent ]
        • Re:fud? (Score:5, Insightful)

          Alternately, the Mozilla team could create their own signing certificate and add it to Firefox's whitelist; add-on developers could then get Mozilla-signed certificates for themselves. That would at least narrow the list a bit -- as you say, anyone can get a Verisign certificate, in part because there are just so many possible uses for one, but there should be few enough official Mozilla-signed add-on certificates to allow for some proper screening.

          The certificates could also be used for authentication of the updates themselves, as you suggested.

          [ Parent ]
          • Re:fud? (Score:4, Informative)

            by Myen (734499) on Thursday May 31, @09:09AM (#19336709)
            Unfortunately, doing that would sort of imply Mozilla would need to vouch for the extension developers (hey, they're letting them use a cert; that's what it's for, right?). As it is they barely have enough people to just try installing extensions before approving for the main site...

            If it's just extension updates anyway, and extensions already act as a part of Firefox (i.e. they're not sandboxed... which they can't be in the current architecture)... They might as well just require SSL for updates, and people who don't use the Mozilla update service can just ship their own (self-signed) cert with the extension. Of course, some authors will still work around that by doing their own thing anyway. (There were, at one point, very, very insecure extensions that... load the whole toolbar at runtime using eval() by pulling data from unsecured sites.)
            [ Parent ]
            • Re:fud? by JesseMcDonald (Score:2) Thursday May 31, @10:00AM
          • Re:fud? by plover (Score:2) Thursday May 31, @10:52AM
        • Re:fud? by itlurksbeneath (Score:3) Thursday May 31, @10:24AM
          • Re:fud? by mhall119 (Score:2) Thursday May 31, @06:08PM
        • Verisign? Self signed certs? Not again! by Ilgaz (Score:2) Thursday May 31, @10:50AM
    • Re:fud? (Score:5, Insightful)

      by DaveWick79 (939388) on Thursday May 31, @09:25AM (#19337005)
      The different is, everyone knows IE is insecure because of this. But everyone expects Firefox to be this totally secure, unhackable browser when it really isn't. The point is that the same things can be done on both browsers.

      Another point is how this affects the Google Gears project that was in a previous post. Now you have cross platform hackability for an application that could potentially host your critical apps.
      [ Parent ]
      • Re:fud? by jedidiah (Score:3) Thursday May 31, @10:22AM
    • 2 replies beneath your current threshold.
  • Don't trust public nets. (Score:5, Insightful)

    by Rob T Firefly (844560) on Thursday May 31, @07:49AM (#19335635)
    (http://robvincent.net/ | Last Journal: Tuesday October 09, @01:55PM)

    [I]f an attacker were to hijack a public Wi-Fi hot spot at a coffeehouse or bookstore -- a fairly trivial attack given the myriad free, point-and-click hacking tools available today -- he could also intercept this update process and replace a Firefox add-on with a malicious one.
    This is why you shouldn't be performing anything as heavy as software updates over networks you don't totally trust, least of all the lash-ups in your average coffeehouse.
  • by xTMFWahoo (470364) on Thursday May 31, @07:51AM (#19335669)
    (http://slashdot.org/)
    I would think this is an issue with the specific ad-on, not really Firefox. I guess you could say Firefox should only allow https traffic...
  • No shit! (Score:1, Informative)

    by Anonymous Coward on Thursday May 31, @07:51AM (#19335673)
    This is why extensions should all be signed or have the update servers SSL cert hard-coded.

    We can prevent attacks like this easily.
  • don't automatically update (Score:2, Interesting)

    by miowpurr (1004277) on Thursday May 31, @07:58AM (#19335737)
    (http://www.catcrazygeek.com/)
    How about setting your updates (yes, even for add-ons) to NOT download automatically? That way you can at least control when they download...
    • 1 reply beneath your current threshold.
  • Forced automatic update is evil (Score:2, Redundant)

    by syousef (465911) on Thursday May 31, @07:58AM (#19335743)
    ...and what happened to Google's "Do no evil" slogan?

    Then again these days Firefox itself pretty much forces you to update if you want to easily install extensions. What is with forcing people to download the plugins at install time? Last time I checked there was a plugin that allowed you to download to install later. That makes no sense. Why do I need a plugin to do this???

    I use to have a stable browser with 1.0. With 1.5 and 2.0 I often have to restart the thing if I open lots of tabs and some of the pages don't respond, otherwise anything new I try to open doesn't respond. Firefox is still the best browser around at the moment, but it started off with so much more promise. It's become a bit of a pain to use as I've gotten use to the features (and other browsers have caught up), yet Firefox has gotten buggier.
  • by CTho9305 (264265) on Thursday May 31, @08:08AM (#19335845)
    (http://ctho.ath.cx/)
    The vast majority of the open source/hobbyist made Firefox extensions - those that are hosted at https://addons.mozilla.org/ [mozilla.org] - are not vulnerable to this attack. Users of popular Firefox extensions such as NoScript, Greasemonkey, and AdBlock Plus have nothing to worry about.

    Since it's not mentioned in the summary, it's important to reiterate that this takes advantage of non-secure update mechanisms used by some addons. The addons.mozilla.org site will only host extensions that update from addons.mozilla.org through the built-in mechanism, which is not vulnerable to this attack. This is an extension-specific issue, and would most likely apply to any sort of addon for any software that doesn't verify security certificates.
    • 1 reply beneath your current threshold.
  • by ProppaT (557551) on Thursday May 31, @08:11AM (#19335871)
    (http://www.bynumbers.com/)

    Maybe if you spent more time with your plug-in's they wouldn't feel that way. Have some compassion!
  • Is it viable? (Score:5, Insightful)

    So ok, it is possible to do such an attack, but... is it viable enough as an attack vector? I mean, the attacker would have to sit 24/7 near an unsecure hotspot and/or an unsecure network to wait for a potential victim, and, as we know, firefox users aren't the majority, so this further narrows down the possibility of a successful attack. That's enough to call it improbable i think. Of course, since such an attack is possible, that can mean something, but, please, would anyone sit around coffee shops all day just to infect one person with spyware, when he could just, I dunno, send viruses or trojans through mail to computer illiterate people?
  • Firefox extensions are insecure (Score:3, Interesting)

    by 140Mandak262Jamuna (970587) on Thursday May 31, @08:15AM (#19335925)
    (Last Journal: Wednesday October 31, @08:33AM)
    Right from day one I realized that the extensions provided by Firefox could become an security issue. I use very few of them. Scriptblock, Adblock and almost nothing else. And I disable auto updates. But on the other hand, Firefox is not so closely tied to the OS that they could take this breach, elevate privileges and take over a system, like ActiveX vulnerabilities.

    Yes, one should be careful about the extensions, and use them carefully. And one should be careful about using WiFi in coffee shops and hotels. I am far more worried about our salesmen plugging in their lap top in some hotel network in Bangkok, pick up an infection and coming to corporate HQ and plug that laptop in our intranet, behind the firewall, in the trusted network. I have asked my sysadmin to set up a separate network for laptops that might be used outside our intranet that is not part of the trusted intra net.

  • How to sign a Firefox Extension [mercille.org] by Frederic Mercille.

    It's not hard (for anyone who can make an add-on).

  • Stupid (Score:1)

    by noundi (1044080) on Thursday May 31, @08:35AM (#19336191)
    This is like handing out your car keys and then end up blaming Audi for it.
  • Subject to the laws of physics (Score:3, Insightful)

    by l0ne (915881) <millenomi@@@gmail...com> on Thursday May 31, @09:05AM (#19336621)

    Q: When am I at risk?

    A: When you use a public wireless network, an untrusted Internet connection, or a wireless home router with the default password set.

    That means that this attack only works if the local area network is hijacked! Which reduces its danger substantially for the population at large as the huge majority of home connections is on its own link.

    It is only a problem in the situation above (that are atypical nowadays) and in work or other large-network settings where it is possible to connect an untrusted computer to the network.

    IT ALSO MEANS IT IS NOT FIREFOX SPECIFIC, as hijacking a connection can lead to many unpleasant things that may be as dangerous as that without requiring Firefox (ie grabbing passwords!).

  • If the user is "insecure", then so too will the browser be. Anyone who would update software from a public wi-fi connection is in dire need of an education and asking for trouble. As far as extensions go, LESS IS MORE, as in beer: the browser will load faster, be less prone to memory leaks and XUL conflicts, and as the article suggests more secure to boot. Considerable skepticism should be given to any extension not found at the Mozilla site; if it were me I wouldn't install it, for the reasons above and unless it is indispensable and I was completely certain of the integrity of the author and site.
  • This is crypto 101 (Score:1, Redundant)

    by mrkitty (584915) on Thursday May 31, @09:56AM (#19337607)
    (http://www.cgisecurity.com/)
    Nothing new here please move along.
  • HTTPS just makes it hard to eavesdrop. It doesn't mean the site you are getting your plugin from isn't a spoofed one with a self-signed cert or that your legitimate location for downloading the plugin hasn't been hacked. I guess all of www.download.com downloads are vulnerable since they're sent over http or ftp - which is suceptible to attacks! Also, if your DNS (or host file etc) is owned/poisoned then I'd think your firefox plugin is the least of your concerns. Give me a break.
  • This is not an issue of http versus https. The only way for Firefox add-on updates to be secure, or any software updates to be secure for that matter, is for the software to make sure that the update code has been signed by the developer before installing the update. This is software updating 101. Impossible to spoof without the developer's private key.
  • Back in my day ... (Score:2)

    by GISGEOLOGYGEEK (708023) on Thursday May 31, @11:44PM (#19347899)
    Funny, I remember a time when people ran away from Internet explorer because of the potential for some very powerful and useful plugin technology (ActiveX) to be used against their computers.

    Everyone's websurfing saviour firefox is just as vulnerable it seems ... but everyone loves firefox and hates IE.

    I think this big warped shift in people's perception happened about the time when all those pesky Javascript haters (all slashdot readers just a couple years ago) fell in love with Ajax ... as if it wasn't simply a cool way to use javascript with a new extention or two.

    Ah yes. The good old days.
  • Relation (Score:1)

    by MBHkewl (807459) on Friday June 01, @12:02AM (#19347969)
    How is this related to FireFox only?

    Doesn't the same apply for Windows Updates? A hijacked DNS can return a false address of a windows pdate server and have the user download vulns. instead of patches.
  • Re:Surely they're signed? (Score:3, Insightful)

    This is not about updates to Firefox - it's about updates for user-supplied add-ons.
    [ Parent ]
  • Someone get Larry Niven and Jerry Pournelle on the case!

    What about Craig Thomas?

    [ Parent ]
  • Re:Goatse! (Score:2, Funny)

    by maxwell demon (590494) on Thursday May 31, @12:24PM (#19340057)
    (Last Journal: Wednesday August 14 2002, @12:33PM)
    Well, maybe someone exploited the security hole mentioned in this article to add a "goatse extension" to some Firefox installations, which automatically sends a goatse comment to each visited Slashdot story. :-)
    [ Parent ]
  • 12 replies beneath your current threshold.