A supply chain attack targeting Optimizely has led to malicious JavaScript being loaded on numerous popular websites, including Zoom, CNN, Fox News, BBC, Salesforce, and GitLab, exposing visitors to scripts designed to steal cryptocurrency and payment information and exploit vulnerabilities in iOS devices.
Optimizely is a digital experience and experimentation platform used by organizations to test and personalize their websites, with its JavaScript files loaded into customers' webpages to deliver this functionality. The company confirmed to BleepingComputer that attackers exploited a vulnerability in its Experimentation account signup flow to inject malicious JavaScript into customer projects, causing websites using the platform to load malware.
"Earlier today, Optimizely identified a security incident in which an unauthorized party exploited a vulnerability in the Experimentation account signup flow," Optimizely told BleepingComputer. "They used it to add malicious JavaScript to some customer projects. We have blocked access to the vulnerable path and deployed a fix. We have removed the injected code from affected projects. We have also ended active sessions, revoked tokens, and reset access for affected user accounts. Finally, we have blocked any code from being delivered in Cloudflare."
The attack was first uncovered by security researcher Scott Helme, who reported that his team identified 188 infected Optimizely JavaScript files belonging to 178 organizations after analyzing 1,611 scripts used by the platform. BleepingComputer independently confirmed that the malicious script loaded, or attempted to load, on numerous affected websites using scans recorded by urlscan.io, including Zoom, KLM, GitLab, BBC, Scheels, CNN, American Girl, ManageBuilding, Smartsheet, Stamps.com, and Salesforce. Other affected websites include Fox News, Mutual of Omaha, American Eagle, Air France, Change.org, Optimizely, HSBC Insurance, Bitly, IG, and UNICEF USA.
BleepingComputer analyzed copies of the modified Optimizely JavaScript files and confirmed that attackers had injected code designed to load an additional malicious script from https://1688360[.]cc/track.js. An analysis of the malicious track.js file revealed several capabilities: cryptocurrency hijacking that monitors webpages for cryptocurrency wallet addresses and replaces them with attacker-controlled addresses; payment card skimming that searches for credit card numbers, expiration dates, and security codes; and iOS exploit delivery that loads additional malicious JavaScript targeting iPhones and iPads using the Coruna and DarkSword exploit kits.
Helme's investigation found that cryptocurrency wallets embedded in the track.js script had received approximately $7,000 in transactions as of November 16. Optimizely's cleanup had reduced the number of infected scripts, with only one of the 188 previously compromised files still containing malicious code as of 21:52 UTC on November 16.


