Optimizely Flaw Let Attackers Plant Crypto-Stealing and Card-Skimming Code on 178 Major Websites
Attackers abused a flaw in Optimizely to plant malicious code on the websites of 178 organizations, including CNN, the BBC, Zoom and HSBC. The code swapped crypto wallet addresses, skimmed card numbers and tried to break into iPhones. It ran for about 19 hours before it was removed.
What Happened
Optimizely sells web experimentation tools that companies use to test different versions of their pages, and its script loads on every page of many large brands' sites. On Monday, November 16, an attacker exploited a weakness in the signup process for Optimizely's Experimentation product and used it to add hostile JavaScript to projects belonging to customers.
Optimizely confirmed the incident on its status page. The company says it has fixed the flaw, removed the injected code and notified affected customers.
Security researcher Scott Helme of Report URI found the malicious code in 188 of 1,611 Optimizely snippets he examined. Affected sites included Zoom, CNN, the BBC, Fox News, Salesforce, GitLab, IKEA, HSBC, Equifax, Air France-KLM, Ledger and Peacock.
What the Code Did
The injected script carried several payloads at once. It watched for cryptocurrency wallet addresses copied by visitors and swapped them for addresses controlled by the attacker, so that payments would go to the wrong place. It also captured payment card numbers entered on checkout pages, collected cookies and screenshots, and tried to load exploit kits aimed at iPhones.
Because the code was served from Optimizely's own content delivery network, the affected companies' servers were never breached. Their sites loaded the tainted files from a domain they had deliberately approved, which also meant security controls that only allow trusted sources did not block it.
The attacker's crypto wallets received roughly $6,600 to $7,000, a modest sum given the reach of the attack. The full extent of card data and other information captured while the code was active has not been disclosed.
Why It Matters
The incident shows how a single third-party script can expose visitors to hundreds of trusted websites at once. Many organizations load analytics, testing and marketing tools from outside vendors on every page, granting those vendors the same ability to run code in visitors' browsers as the site itself.
Supply chain attacks through web scripts are difficult for both companies and users to detect. Visitors see the legitimate site they expect, and the malicious behavior happens quietly in the background. Content security policies that allowlist a vendor's domain offer no protection when the vendor itself serves the harmful code.
The list of victims spans banks, a credit bureau, an airline group, software companies and a crypto wallet maker, which means the code reached people at moments when they were entering payment details or handling digital assets.
What To Do
Organizations using Optimizely should review the notification from the company, audit their project code for unauthorized changes and check logs and payment systems for signs of skimming on November 16. Security teams should inventory every third-party script loaded on sensitive pages, remove those that are not essential and restrict scripts on checkout and login pages to the minimum needed.
Visitors who entered card details on an affected site during the incident should monitor their statements and consider requesting a replacement card. Anyone who sent cryptocurrency after copying an address from an affected site should verify the transaction, and users should always confirm the full wallet address before sending funds, since address-swapping malware relies on people checking only the first and last characters.
Domain Intelligence
No adverse evidence is confirmed across reputation sources, and no active malicious associations appear in the canonical trust record. One threat-intelligence source flagged adverse evidence that was not independently corroborated and does not affect the score. The domain's relationship evidence is narrow, which weighs on the score. The score reflects the domain's current evidence profile and is separate from the abuse of the company's experimentation platform.