Hundreds of websites utilizing the Optimizely personalization platform have reportedly served malware to unsuspecting visitors, targeting cryptocurrency wallets and stealing sensitive data such as payment card information and cookies. According to a report from ReportURI, 178 websites, including major platforms like CNN, BBC, and Zoom, were compromised by malicious JavaScript that had been altered to include harmful components.
The malware delivery mechanism involved JavaScript that was digitally signed by Optimizely but modified by attackers to execute multiple payloads. When successfully installed, the malware could swap user cryptocurrency wallet addresses with those of the attackers, skim payment card data, and capture cookies and screenshots. Additionally, it delivered exploit kits targeting iPhones and iPads, specifically known as Coruna and DarkSword.
Mechanics of the Malware Delivery
Optimizely’s infrastructure serves JavaScript snippets that combine both its own code and that of its customers. This JavaScript runs on every page served by the customer, creating a potential vulnerability. Attackers managed to inject their own code into the JavaScript of affected customers, delivering it from the legitimate Optimizely domain, cdn.optimizely.com, which was signed with a valid certificate.
Scott Helme, a researcher at ReportURI, clarified that this incident was not a result of CDN cache poisoning, a method that typically uses HTTP to cache harmful responses. Instead, the attack exploited Optimizely’s legitimate infrastructure to serve the compromised code. Helme noted that the exact method by which attackers gained write access to numerous unrelated customer projects remains unclear, suggesting possibilities such as a compromised Optimizely system or credentials with cross-customer access.
Despite inquiries, Optimizely representatives have not yet responded to questions regarding the incident. The malicious scripts, identified as track.js, activated simultaneously across devices, with varying responses based on the platform and user actions at the time of infection.
This incident raises significant concerns about the security of third-party platforms and the potential for widespread impact when such vulnerabilities are exploited. As organizations increasingly rely on external services for website personalization and functionality, the need for robust security measures and monitoring becomes paramount.
For further details, see the full report from Ars Technica.


