Security

Optimizely supply-chain attack compromised at least 178 websites

Attackers abused a signup-flow flaw in Web Experimentation to inject JavaScript served from Optimizely's CDN, delivering crypto theft, card skimming and iOS exploits.

Illustration: Optimizely logo
Illustration: Five Nines

Attackers breached JavaScript supplied through Optimizely's Web Experimentation platform and used it to infect visitors to at least 178 organisations, InfoQ reported. LavX News confirmed the count and named the BBC, CNN and GitLab among the compromised sites. InfoQ also listed Zoom, Salesforce, IKEA and Equifax among the victims.

The malicious code launched itself in visitors' browsers, dropping crypto stealers, payment-card skimmers, browser data harvesters and exploit chains aimed at weak Apple devices, according to InfoQ. The attackers abused a flaw in the Optimizely signup process to act as administrators of customer projects. They modified a customer-configurable field called Project JavaScript, so the altered files continued to be served from Optimizely's legitimate CDN with valid certificates. This was not a CDN cache-poisoning attack or a theft of customer passwords.

Payloads included the Coruna and DarkSword exploit chains, which targeted known iOS vulnerabilities and could give attackers deeper access to affected iPhones and iPads. The payment-card skimmer could not reach details entered into hosted frames such as Stripe or Adyen, but cards typed directly into website forms were potentially exposed.

Optimizely said it spotted the compromise, stopped the harmful outbound code, shut the security hole, cancelled affected tokens, ended active sessions and cleaned the injected code from customer projects, InfoQ reported. The company's incident report put the vulnerability remediation at 16:10 UTC and removal of malicious code from all affected projects at 22:24 UTC. Optimizely engaged Mandiant for forensic investigation and said the incident was limited to Web Experimentation.

Report URI found 188 infected snippets spread over 178 organisations after checking 1,611 scripts, according to InfoQ. The actual number may be higher because the investigation could only examine scripts it had identified. Investigators linked roughly $7,040 in crypto payments to wallets run by the attackers during the campaign.

Five Nines reported in November that Scott Helme's team examined 1,611 scripts and found 188 compromised files. BleepingComputer's analysis, described in the same article, found the CDN JavaScript pulled a second-stage script from https://1688360[.]cc/track.js; some files called that address outright, while others decoded it using Base64 and atob(). A variant could execute a built-in copy when the remote script was unreachable. The wallets received about $7,000 in transactions on 16 November: 0.08298 BTC, 17.02 LTC, 662.9 USDT plus 184 TRX, and 0.074 ETH. At 21:52 UTC on 16 November, just one of the 188 infected scripts still held malicious code, Helme reported.

Security researchers also noted limited use of properly enforced Content Security Policies among affected organisations, InfoQ reported. A strict CSP might have stopped the attacker's outside payload while allowing the first script from Optimizely's trusted domain. Organisations should check third-party JavaScript dependencies, restrict script execution and monitor for unexpected changes.

Sources: InfoQ, LavX News, Five Nines

Noor Haddad

Noor Haddad covers attacks, breach disclosures and exploited vulnerabilities for Five Nines. Noor writes from CISA and vendor advisories, SEC disclosures and published reporting.

Corrections. Report an error to corrections@thefivenines.com. We list substantive corrections on the corrections page.