Attacker Planted Malicious Code in Optimizely Tool Used by 178 Organizations

An attacker used a flaw in Optimizely's sign-up flow to plant malicious code that was served to visitors of 178 organizations, including CNN, the BBC, Zoom and HSBC. The organizations' own servers were not breached.

Zark News headline card: Attacker Planted Malicious Code in Optimizely Tool Used by 178 Organizations

An attacker used a flaw in Optimizely's sign-up flow to plant malicious code in a tool used by 178 organizations, including CNN, the BBC and Zoom. (Zark News)

Visitors to some of the world’s best known websites were quietly served malicious code on Monday, after an attacker slipped bad software into a tool those sites use to test page changes.

The tool is Optimizely’s Web Experimentation service, which lets businesses test different versions of a page. Optimizely says an unauthorized party used a flaw in the product’s sign-up flow to add malicious JavaScript to some customer projects. The code then reached visitors from Optimizely’s own servers, under its own name, so browsers treated it as trusted.

Report URI, a British web security firm run by researcher Scott Helme, found the code. It checked 1,611 Optimizely snippets, the small pieces of code that sites add to their pages, and found the malicious code in 188 of them, belonging to 178 organizations. The list includes CNN, the BBC, Zoom, Salesforce, GitLab, IKEA, HSBC, Equifax, Air France-KLM, Ledger and Peacock. Thirty-two of the organizations were banks or finance companies. Optimizely’s own website and login page carried the code too. Report URI says the real number of affected organizations is likely higher.

The organizations’ own servers were not broken into. The malware reached visitors through a third-party script that the sites already trusted. As Report URI put it, a website can be compromised through a third-party dependency without its own code or infrastructure ever being breached.

Report URI said the malicious code was built to steal money and data. It swapped cryptocurrency wallet addresses on pages for the attacker’s own addresses, so payments could go to the wrong place. Report URI counted about $7,040 in the attacker’s wallets by 19:25 UTC on Monday. Report URI said the code also copied payment card details typed into forms on the page, stole cookies, which are small files a browser saves for a site, and screenshots, and sent iPhone and iPad visitors to Coruna and DarkSword, which are tools designed to break into Apple devices.

The timeline was short. Report URI recorded a clean copy of the BBC’s snippet at 02:21 UTC on Monday and an injected version at 04:21 UTC. By 21:52 UTC, 187 of the 188 infected snippets were clean, and every snippet the firm monitored was clean by 23:11 UTC. In an incident notice posted at 01:02 UTC on Tuesday, Optimizely said it had fixed the flaw, removed the injected code, ended active sessions, revoked tokens, the digital keys that give access to an account, and notified affected customers.

Anyone who visited an affected site on Monday should take a few simple steps. Check your payment card statements for charges you do not recognize, especially if you typed card details into a page that day. Update your iPhone or iPad to the latest software version. If you sent cryptocurrency after copying an address from an affected site, check the destination address carefully.

Share this story

See an error? Contact Zark News.