SUMMARY: This is a critical security announcement.
An attack that exploits a Firefox vulnerability in JavaScript [1] has been observed in the wild. Specifically, Windows users using the Tor Browser Bundle (which includes Firefox plus privacy patches [2]) appear to have been targeted.
This vulnerability was fixed in Firefox 17.0.7 ESR [3]. The following versions of the Tor Browser Bundle include this fixed version: 2.3.25-10 (released June 26 2013) [4] 2.4.15-alpha-1 (released June 26 2013) [4] 2.4.15-beta-1 (released July 8 2013) [5] 3.0alpha2 (released June 30 2013) [6]
Tor Browser Bundle users should ensure they're running a recent enough bundle version, and consider taking further security precautions as described below.
WHO IS AFFECTED: In principle, all users of all Tor Browser Bundles earlier than the above versions are vulnerable. But in practice, it appears that only Windows users with vulnerable Firefox versions were actually exploitable by this attack.
(If you're not sure what version you have, click on "Help -> About Torbrowser" and make sure it says Firefox 17.0.7. Here's a video: [7])
To be clear, while the Firefox vulnerability is cross-platform, the attack code is Windows-specific. It appears that TBB users on Linux and OS X, as well as users of LiveCD systems like Tails, were not exploited by this attack.
IMPACT: The vulnerability allows arbitrary code execution, so an attacker could in principle take over the victim's computer. However, the observed version of the attack appears to collect the hostname and MAC address of the victim computer, send that to a remote webserver over a non-Tor connection, and then crash or exit [8]. The attack appears to have been injected into (or by) various Tor hidden services [9], and it's reasonable to conclude that the attacker now has a list of vulnerable Tor users who visited those hidden services.
We don't currently believe that the attack modifies anything on the victim computer.
WHAT TO DO: First, be sure you're running a recent enough Tor Browser Bundle. That should keep you safe from this attack.
Second, be sure to keep up-to-date in the future. Tor Browser Bundle automatically checks whether it's out of date, and notifies you on its homepage when you need to upgrade. Recent versions also add a flashing exclamation point over the Tor onion icon. We also post about new versions on the Tor blog: https://blog.torproject.org/
Third, realize that this wasn't the first Firefox vulnerability, nor will it be the last [10]. Consider disabling JavaScript (click the blue "S" beside the green onion, and select "Forbid Scripts Globally"). Disabling JavaScript will reduce your vulnerability to other attacks like this one, but disabling JavaScript will make some websites not work like you expect. A future version of Tor Browser Bundle will have an easier interface for letting you configure your JavaScript settings [11]. You might also like Request Policy [12]. And you might want to randomize your MAC address, install various firewalls, etc.
Fourth, consider switching to a "live system" approach like Tails [13]. Really, switching away from Windows is probably a good security move for many reasons.
And finally, be aware that many other vectors remain for vulnerabilities in Firefox. JavaScript is one big vector for attack, but many other big vectors exist, like css, svg, xml, the renderer, etc. We need help improving usability of (and doing more security analysis of) better sandboxing approaches [14] as well as VM-based approaches like Whonix [15] and WiNoN [16]. Please help!
[1] https://www.mozilla.org/security/announce/2013/mfsa2013-53.html
[2] https://www.torproject.org/projects/torbrowser/design/
[3] https://blog.mozilla.org/security/2013/08/04/investigating-security-vulnerab...
[4] https://blog.torproject.org/blog/new-tor-browser-bundles-and-tor-02414-alpha...
[5] https://blog.torproject.org/blog/tor-02415-rc-packages-available
[6] https://blog.torproject.org/blog/tor-browser-bundle-30alpha2-released
[7] https://media.torproject.org/video/2013-08-05-TBBversion.mp4
[8] http://tsyrklevich.net/tbb_payload.txt
[9] https://blog.torproject.org/blog/hidden-services-current-events-and-freedom-...
[10] https://www.mozilla.org/security/known-vulnerabilities/firefoxESR.html
[11] https://trac.torproject.org/projects/tor/ticket/9387
[12] https://www.requestpolicy.com/
[14] https://trac.torproject.org/projects/tor/ticket/7680
[15] http://sourceforge.net/projects/whonix/
[16] http://dedis.cs.yale.edu/2010/anon/papers/osdi12.pdf https://trac.torproject.org/projects/tor/ticket/7681
tor-announce@lists.torproject.org