A JavaScript exploit leveraging a zero-day vulnerability in Firefox has been spotted in attacks aimed at Tor users. Mozilla and Tor Browser developers are expected to quickly release updates that address the security hole.
The existence of the exploit, which is said to consist of one HTML and one CSS file, was first reported on the Tor Project mailing list. Tor Project co-founder and president Roger Dingledine said Mozilla is aware of the issue and is working on a patch. The Tor Browser, which is based on Firefox, will also be updated as soon as Mozilla releases the fix.
Enterprise security firm Trail of Bits has analyzed the exploit and determined that it leverages a use-after-free vulnerability affecting the SVG parser in Firefox. Others suggested it was a heap buffer overflow, but Trail of Bits said it was “fairly confident” in its analysis.
Trail of Bits CEO Dan Guido explained on Twitter that these types of flaws were discovered in WebKit years ago, but they still haven’t been addressed in Firefox. The vulnerability is not easy to exploit in Google Chrome and Microsoft Edge due to memory partitioning, a mitigation that is not present in Firefox, Guido said.
The vulnerability apparently also affects Mac OS, but the exploit seen in the wild is designed to target only Windows machines. It is unclear who created the exploit, but Trail of Bits believes it was written from scratch.
As far as exploit techniques, this is a routine UAF that heap sprays a controlled object to kick off a ROP chain. Pwn2Own 2012-level tech.
— Dan Guido (@dguido) November 30, 2016
The researcher known online as “TheWack0lian” has analyzed the payload delivered by the exploit and determined that it’s similar to the one used by the FBI in 2013 to identify Tor users suspected of being child-pornography traders.
That was not the only time the FBI was believed to have used a Firefox zero-day vulnerability to unmask alleged criminals on the Tor network. Earlier this year, Mozilla asked a court in the Western District of Washington to require the government to disclose a flaw exploited by law enforcement in 2015 in an operation aimed at child pornography suspects.
While some experts believe that Tor users should disable JavaScript in their browser to avoid falling victim to such attacks, others pointed out that disabling JavaScript will prevent many websites from working properly. The Tor Project agrees, which is why NoScript is configured to allow JavaScript by default in the Tor Browser.
Related: Tor Implements Improved Anonymity Protection
Related: University’s Tor Hacking Research Funded by DoD

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.
More from Eduard Kovacs
- Russia Blames US Intelligence for iOS Zero-Click Attacks
- Cisco Acquiring Armorblox for Predictive and Generative AI Technology
- Moxa Patches MXsecurity Vulnerabilities That Could Be Exploited in OT Attacks
- Organizations Warned of Salesforce ‘Ghost Sites’ Exposing Sensitive Information
- Organizations Warned of Backdoor Feature in Hundreds of Gigabyte Motherboards
- Barracuda Zero-Day Exploited to Deliver Malware for Months Before Discovery
- Industrial Giant ABB Confirms Ransomware Attack, Data Theft
- Zyxel Firewalls Hacked by Mirai Botnet
Latest News
- Google Temporarily Offering $180,000 for Full Chain Chrome Exploit
- Russia Blames US Intelligence for iOS Zero-Click Attacks
- Toyota Discloses New Data Breach Involving Vehicle, Customer Information
- Cisco Acquiring Armorblox for Predictive and Generative AI Technology
- Moxa Patches MXsecurity Vulnerabilities That Could Be Exploited in OT Attacks
- Amazon Settles Ring Customer Spying Complaint
- Organizations Warned of Salesforce ‘Ghost Sites’ Exposing Sensitive Information
- Adobe Inviting Researchers to Private Bug Bounty Program
