Optimizely confirms hackers injected code into customer websites

Malicious JavaScript in Optimizely's Web Experimentation tool stole cryptocurrency, targeted payment cards and pushed iPhone exploit kits, and researchers trace the same campaign to other script providers.

SecurityPublished
What happened
Optimizely confirmed attackers used a flaw in its Web Experimentation platform to inject malicious JavaScript into some customers' websites.
What’s new
Optimizely says the vulnerable path is blocked and the code removed, while researchers link the campaign to at least three other script providers.
Why it matters
Visitors to major banking, news and software sites may have had cards, cookies or cryptocurrency stolen, or iPhones targeted with exploit kits.

Optimizely has confirmed that attackers planted malicious JavaScript on websites run by some customers of its Web Experimentation product, a tool companies use to personalise and manage their sites. In a brief statement on 16 November, the company said it had identified and contained the incident: "The vulnerable path is blocked, the injected code was removed, and customers have been contacted directly." According to The Record, an Optimizely technical advisory confirmed that a vulnerability in the platform let attackers insert the code.

What the injected code did

Security firm Report URI says it found the malicious code on 178 heavily visited sites run through the platform; The Record reports that 32 of them were finance or banking sites. Report URI's Scott Helme described a multipurpose kit that replaced cryptocurrency wallet addresses with the attacker's, skimmed payment cards, collected cookies and screenshots, and served the Coruna and DarkSword exploit kits to iPhones and iPads. Report URI used blockchain records to trace at least $7,000 in stolen cryptocurrency. Helme said there is no way to tell how many cards, cookies or screenshots were taken, or how many iOS devices were infected. He said the code first appeared on Turkish websites in September, ahead of the latest wave on 16 November. He also said the infected files have since been cleaned, and he urged Optimizely customers to check their sites.

A wider supply-chain campaign

Hudson Rock, which The Record says confirmed Report URI's findings, published its own analysis on InfoStealers on 16 November. The firm says it recovered eight poisoned Optimizely project files and a malicious loader from video provider minute-ly. It adds that evidence from researcher Kirk of Ohey extends the campaign to two more providers, Kissmetrics and StorifyMe. The named web properties include the BBC, Zoom, GitLab's marketing site, HSBC's UAE public website, CNN, Fox News and Salesforce. Hudson Rock counts 21 named properties, which it describes as a documented portion of the activity rather than a full victim count. In Optimizely's case, Hudson Rock says, the attackers' code sat inside customers' project JavaScript settings alongside legitimate experimentation code.

What remains unclear

Hudson Rock said its evidence did not show how the attackers gained initial access at any of the four providers. It also said the evidence did not show that the named websites' backend systems were compromised. How many malicious page loads, thefts and device infections occurred is still unknown, according to Hudson Rock.

Collin Hogue-Spears of Black Duck told The Record that the skimmer reads payment forms that sites build themselves, but cannot reach a payment processor's hosted iframe. He advised affected companies to establish which of their pages served the compromised Optimizely code, over what period, and which card transactions went through those pages during it. He said every card entered on such a page while the skimmer was running should be treated as exposed.