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
- Whitepaper, Chapter 8: Third-Party Script Loading
- Introduction: What About the Protections We Already Have?
- Concept: The Compute Tax
- Concept: Herd Trust
- Concept: The Allowlist Fallacy
- Concept: Supply Chain Injection