Cybercriminals have exploited a flaw at Optimizely, a website experimentation software provider, allowing malicious JavaScript to reach visitors of sites linked to at least 178 organizations, including Zoom, Salesforce and GitLab. Report URI, a web security company, identified the infected scripts.
In its security incident report, Optimizely said the attacker used a weakness in its Web Experimentation account signup process to impersonate customer administrators without stealing their passwords. The attacker then modified Project JavaScript, a feature that lets customers add custom code to their websites. The altered scripts were delivered through Optimizely’s legitimate delivery network when visitors loaded affected pages, without requiring a breach of the organizations’ own systems.
Report URI found 188 infected scripts among 1,611 distinct Optimizely snippets it located and examined, mostly through its own website crawl data. Researchers said the actual number of affected organizations could be higher because their analysis covered only the scripts they were able to locate.
How the malicious code worked
Report URI found the code could replace cryptocurrency wallet addresses with an attacker’s, collect payment-card details entered directly into website forms and send browser-readable cookies and screenshots when a wallet address was swapped. It also tried to deliver the Coruna and DarkSword exploit kits to iPhones and iPads running older operating-system versions. Payment details entered through separately hosted payment forms were beyond the malicious code’s reach, Optimizely said.
Report URI also examined content security policies, browser rules controlling which scripts can run and where data can be sent. Among the 159 organizations accounted for in its findings, 68 had no such policies and 50 had configurations that allowed the malicious code to run and transmit data. At another 17, the policies blocked data transmission but not wallet-address swapping, while 24 blocked the malicious code.
Robbie Mueller, a solutions engineer at application security company ArmorCode, said website testing tools can escape scrutiny because of who manages them. “These tools are usually bought and managed outside of the security and engineering teams,” he said. That can leave security personnel with little visibility into the risks, he added.
Mueller also pointed to a gap in conventional software dependency tracking, which often focuses on open-source packages and development pipelines rather than scripts running on live sites. “Those dependencies rarely show up in an inventory,” he said. He recommended tracking every third-party script on production websites, assigning each an owner and monitoring changes.
Containment and customer guidance
Optimizely said it blocked delivery of the malicious code, patched the signup flaw and removed the injected scripts on Nov. 16. The company said customers do not need to reset passwords or regenerate API tokens because of this incident.
Optimizely advised Web Experimentation customers to identify pages that loaded its scripts on Nov. 16, particularly those handling payment cards or cryptocurrency. It also recommended preserving logs, reviewing security reports and outbound browser requests for suspicious connections and assessing whether visitors or regulators need to be notified.
As of its Nov. 17 report, Optimizely said it had no evidence that personal data was sent to attackers but could not determine whether the malicious code succeeded in visitors’ browsers. Report URI separately tracked about $7,040 received by cryptocurrency wallets associated with the attacker as of Nov. 16.
Optimizely has engaged cybersecurity firm Mandiant to investigate. The number of visitors whose data or devices were compromised remains unknown.