Hundreds of sites served malware through Optimizely, targeting crypto wallets and payment cards
Security researchers found that at least 178 websites using the Optimizely personalization platform delivered malicious JavaScript to visitors. It tried to steal cryptocurrency, payment card data, and infect iPhones and iPads.

Hundreds of websites that use the Optimizely website personalization platform delivered malware to their visitors, researchers at security firm ReportURI said on Tuesday. ReportURI identified 178 affected sites, including CNN, Zoom, the BBC and Salesforce. The incident is significant because the code arrived through trusted, legitimate infrastructure and was signed with a valid certificate.
How the attack worked
Optimizely serves JavaScript snippets to customer pages that contain both company code and code supplied by each customer. These scripts run on every page the customer serves. The attackers, by a method that is still unknown, wrote their own code into part of each affected customer's JavaScript and delivered it from cdn.optimizely.com. A valid certificate for that domain signed the script.
ReportURI researcher Scott Helme said it was not a CDN cache poisoning attack, in which HTTP is used to make a content delivery network (CDN) cache harmful responses. Instead, the attack used Optimizely's legitimate infrastructure, including its domains. Optimizely's own customer JavaScript for www.optimizely.com and login.optimizely.com was also affected.
What the malicious code did
The modified code tried to infect visitor devices with multiple payloads. When successful, it swapped users' cryptocurrency wallet addresses for the attackers' own. Other components skimmed payment cards and stole cookies and screenshots, while on iPhones and iPads it delivered the iOS exploit kits known as Coruna and DarkSword. The scripts were named track.js, and all four components became active at the same time. How devices responded varied depending on the platform and what the user was doing on the final page.
Helme said it is not known how the attacker obtained write access to so many unrelated customer projects: a compromised Optimizely system, a compromised credential with cross-customer access, or something else. In his view, that is for Optimizely to explain. Company representatives did not respond to questions sent by email.


