Boston University’s Ahmet Buyukkayhan and Northeastern University’s William Robertson presented results of their two-year research project about Firefox extensions at Black Hat Asia, which details how the extension system can be exploited by attackers.

Reusing Firefox Extensions for Malicious Purposes

Researchers showed how an extension reuse mechanism was able to make malicious calls to other extensions, which could then pass the calls to the underlying system.

In general, calls made by an extension through Firefox are given elevated privileges, which makes them an attractive vector for sophisticated attacks. The two researchers found that the reuse exploits permitted code execution vulnerabilities, event listener registration and hijacked network access.

They also found that these kinds of malicious extensions could go through Mozilla’s mandatory review process undetected. The extension sailed through review because the reuse mechanism doesn’t directly make any problematic calls to Firefox; it forces another extension to do that.

Providing Proof

According to The Register, the presenters made a proof of concept for this attack method, submitting a harmless add-on to Mozilla that leverages the extension reuse attack scenario. Although they requested a full review for it from Mozilla’s staff, no problems were flagged in the review process.

The researchers eventually told Mozilla what they had done. They also provided a framework called Crossfire that would help Mozilla identify malicious extensions using this mechanism — the same framework used in the proof of concept.

Firefox extensions that are vulnerable to malicious exploits included NoScript, Video DownloadHelper and GreaseMonkey. Each of these programs has more than 1 million users, The Register reported.

The Firefox Pivot

There is a change already underway in how things are done in Firefox, especially with respect to how it handles browser extensions. Extensions written for the Chrome browser will be supported by Firefox, supposedly without any change in the way that they are written.

Mozilla’s new engine for this, called Blink, should be able to support multiple process browsers by default and mitigate the risk of misbehaving add-ons and malware. The ongoing migration to Blink may be the framework needed to help mitigate the reuse attack as well as other cyberthreats.

UPDATE, 4/6/16, 10:38 a.m. EDT: A Mozilla representative contacted Security Intelligence with the following statement from Nick Nguyen, VP of Product for Firefox:

“The way add-ons are implemented in Firefox today allows for the scenario hypothesized and presented at Black Hat Asia. The method described relies on a popular add-on that is vulnerable to be installed, and then for the add-on that takes advantage of that vulnerability to also be installed.

“Because risks such as this one exist, we are evolving both our core product and our extensions platform to build in greater security. The new set of browser extension APIs that make up WebExtensions, which are available in Firefox today, are inherently more secure than traditional add-ons and are not vulnerable to the particular attack outlined in the presentation at Black Hat Asia. As part of our electrolysis initiative — our project to introduce multiprocess architecture to Firefox later this year — we will start to sandbox Firefox extensions so that they cannot share code.”

More from

$10.3 Billion in Cyber Crime Losses Shatters Previous Totals

4 min read - The introduction of the most recent FBI Internet Crime Report says, “At the FBI, we know ‘cyber risk is business risk’ and ‘cybersecurity is national security.’” And the numbers in the report back up this statement. The FBI report details more than 800,000 cyber crime-related complaints filed in 2022. Meanwhile, total losses were over $10 billion, shattering 2021's total of $6.9 billion, according to the bureau’s Internet Crime Complaint Center (IC3).  Top Five Cyber Crime TypesIn the past five years, the…

4 min read

How to Boost Cybersecurity Through Better Communication

4 min read - Security would be easy without users. That statement is as absurd as it is true. It’s also true that business wouldn’t be possible without users. It’s time to look at the big picture when it comes to cybersecurity. In addition to dealing with every new risk, vulnerability and attack vector that comes along, cybersecurity pros need to understand their own fellow employees - how they think, how they learn and what they really want. The human element — the individual and social factors that…

4 min read

Detecting Insider Threats: Leverage User Behavior Analytics

3 min read - Employees often play an unwitting role in many security incidents, from accidental data breaches to intentional malicious attacks. Unfortunately, most organizations don’t have the right protocols and processes to identify potential risks posed by their workforce. Based on a survey conducted by SANS Institute, 35% of respondents said they lack visibility into insider threats, while 30% said the inability to audit user access is a security blind spot in their organizations. In addition, the 2023 X-Force Threat Intelligence Index reported that…

3 min read

Poor Communication During a Data Breach Can Cost You — Here’s How to Avoid It

5 min read - No one needs to tell you that data breaches are costly. That data has been quantified and the numbers are staggering. In fact, the IBM Security Cost of a Data Breach estimates that the average cost of a data breach in 2022 was $4.35 million, with 83% of organizations experiencing one or more security incidents. But what’s talked about less often (and we think should be talked about more) is how communication — both good and bad — factors into…

5 min read