Browsealoud script mines cryptocurrency on government sites

ATG-class event11 February 2018

An accessibility script embedded by thousands of sites, among them UK, US and Australian government sites, was altered to run a cryptocurrency miner in every visitor’s browser for several hours.

Position
A hosted third-party accessibility script
Reach
About 4,200 websites, including the UK ICO, NHS sites and uscourts.gov
Category
Third-Party Script Injection
Effect
Degrade

What happened

Browsealoud, from Texthelp, reads web pages aloud for people with sight or reading difficulties. Sites added it with one line that loaded the script from Texthelp's servers. On 11 February 2018 that hosted file was modified to include an obfuscated Monero miner. For several hours, every visitor to any page that embedded the plugin ran the miner in their browser. About 4,200 sites were affected, including the UK Information Commissioner's Office, NHS sites, the General Medical Council, uscourts.gov and Australian government sites.

Security researcher Scott Helme raised the alarm after a friend's antivirus flagged the ICO's site. Texthelp took the product offline across all customer sites and said no customer data was accessed. How the file was modified was not publicly established.

The ATG nexus

None of the government sites was hacked. Each had added a trusted tool from a known supplier, and the supplier's copy changed. The visitor's device then spent its own processor time and power on the attacker's behalf, the burden the research calls the Compute Tax. To each site's owner the page looked the same. The cost fell on people who had no way to see it.

Helme also pointed to the defense that would have worked: an integrity hash on the script tag, with a Content-Security-Policy, would have refused the altered file. That works for a static script and offers nothing for a resource designed to change.

Limits of the comparison

A miner degrades a device. It changes nothing a reader sees on the page, and it was noticed quickly because antivirus products already flagged mining code.

On this site

Sources

  1. Browsealoud plugin hackSecurity Affairs, 11 February 2018
  2. Attackers Use Infected Plug-In to Install Cryptomining Tool on Over 4200 WebsitesDark Reading, February 2018
  3. Government websites, including uscourts.gov, pulled into cryptomining schemeCyberScoop, February 2018
  4. Australian govt sites hijacked by crypto coin mineriTnews, February 2018

Back to this event on the timeline