Hundreds of websites utilizing the Optimizely website personalization platform served visitors a potent malware cocktail that targeted cryptocurrency wallets, stole payment card data, cookies, and screenshots, and delivered exploit kits for infecting iPhones and iPads, researchers revealed on Tuesday.
Widespread Infection Through Optimizely Infrastructure
According to ReportURI, researchers identified 178 affected websites, including major names like CNN, Zoom, the BBC, and Salesforce. The incident involved JavaScript digitally signed by Optimizely and loaded into customer pages, which was modified to include malicious components designed to infect visitor devices with multiple payloads. Upon successful installation, the malware swapped user cryptocurrency wallet addresses for those belonging to the attackers. Additional components skimmed payment cards, stole cookies and screenshots, and deployed iOS exploit kits known as Coruna and DarkSword to iPhones and iPads.
Optimizely distributes JavaScript snippets containing both company code and customer-provided code, which run on every page served by the customer either directly from Optimizely or a customer endpoint. In this attack, malicious actors managed to write their own code into a portion of each affected customer’s JavaScript, distributing it from cdn.optimizely.com backed by a valid certificate for that domain. Even Optimizely’s own customer JavaScript for its www.optimizely.com and login.optimizely.com URLs were compromised in the incident.
ReportURI researcher Scott Helme stated that the delivery mechanism was not a content delivery network cache poisoning attack utilizing HTTP to cache harmful responses. Instead, the operation leveraged Optimizely’s legitimate domains and infrastructure to distribute the tainted code. Helme noted that the exact method attackers used to gain write access across numerous unrelated customer projects remains unclear, suggesting possibilities such as a compromised Optimizely system or a compromised credential with cross-customer access. Optimizely representatives did not respond to inquiries sent via email regarding the breach.
The malicious scripts were named track.js, with all four components activating simultaneously to execute various payloads depending on the visitor’s device platform and activity.








