Technology

Malware delivered to 178 websites via Optimizely platform

Researchers discovered that attackers used Optimizely's legitimate infrastructure to deliver malicious JavaScript to 178 websites, including CNN and Zoom. The malware payloads swapped cryptocurrency wallet addresses, skimmed payment cards, and deployed iOS exploit kits like Coruna.

Malware delivered to 178 websites via Optimizely platform

Targeted websites and varied payloads

Researchers identified 178 websites, including CNN, Zoom, the BBC, and Salesforce, that delivered a potent malware cocktail to visitors through the Optimizely website personalization platform. This attack utilized modified JavaScript, which Optimizely digitally signed and loaded into customer pages, to infect devices with multiple payloads. When the malware installed successfully, it swapped user cryptocurrency wallet addresses for those of the attackers. The malicious components also skimmed payment cards, stole cookies, and captured screenshots. For mobile users, the scripts delivered iOS exploit kits known as Coruna and DarkSword. I find the breadth of these payloads, which targeted financial data and mobile operating systems simultaneously, to be a massive security failure for the platform.

Malware Component Target / Effect
Crypto Swapper Cryptocurrency wallet addresses
Card Skimmer Payment card data
Cookie/Screenshot Stealer Browser cookies and device screenshots
Coruna and DarkSword iOS devices (iPhones and iPads)

Delivery via legitimate infrastructure

The attackers wrote their own code into a portion of the customer JavaScript and delivered it through cdn.optimizely.com, which allowed the malicious components to reach visitors on every page the affected customers served. Optimizely infrastructure provides JavaScript "snippets" containing both company code and customer-provided code. These scripts, named track.js, run on every page a customer serves, whether the JavaScript is served directly from Optimizely or from a customer endpoint, and all four malware components became active at the same time. A valid certificate for the domain signed the JavaScript. The infection also reached Optimizely’s own customer JavaScript for the www.optimizely.com and login.optimizely.com URLs.

Scott Helme from ReportURI said the delivery mechanism relied on Optimizely’s legitimate infrastructure to serve the tainted code rather than a CDN cache poisoning attack. He noted that he does not know how the attackers gained write access to so many unrelated customer projects, and he said the cause might be a compromised Optimizely system or a compromised credential. "We don’t know how the attacker got write access to so many unrelated customer projects: a compromised Optimizely system, a compromised credential with cross-customer access, or something else," Helme wrote. Optimizely representatives did not respond to questions sent by email regarding the breach. The lack of a response from Optimizely regarding the source of the unauthorized access is problematic for the 178 affected customers.