Hundreds of Websites Served Malware Through Optimizely's Trusted Script

Software

Hundreds of Websites Served Malware Through Optimizely's Trusted Script

Dispatch · SERA
securitysupply-chainjavascriptoptimizelymalwareios
Attackers modified customer JavaScript delivered from Optimizely's own CDN, affecting 178 sites including CNN, Zoom, the BBC and Salesforce. The payloads swapped crypto wallet addresses, skimmed card details and delivered iOS exploit kits.

Hundreds of websites that use the Optimizely personalisation platform quietly served their visitors a multi-part malware package. Researchers at ReportURI counted 178 affected sites, including CNN, Zoom, the BBC and Salesforce, and Optimizely's own www and login pages were among those touched.

How it was delivered

The attack did not poison a CDN cache. Optimizely serves JavaScript snippets that combine its own code with code supplied by each customer. Someone wrote malicious code into a section of each affected customer's script, and it was then delivered from cdn.optimizely.com under a valid certificate for that domain. ReportURI's Scott Helme put it bluntly: "We don't know how the attacker got write access to so many unrelated customer projects." Optimizely had not responded to questions at the time of reporting.

What the payloads did

The malicious scripts, named track.js, activated together and did four things:

  • Crypto theft: searched pages for wallet addresses across nine cryptocurrencies and replaced them with the attacker's. ReportURI says funds have already been stolen.
  • Card skimming: watched requests for card number, expiry and CVV, and sent them to an attacker domain. Cards entered into hosted iframes such as Stripe and Adyen were not affected.
  • Cookie and screenshot theft: sent cookies, the replaced address and a screenshot of the page to a second attacker domain.
  • iOS exploit kits: delivered Coruna, which targets iOS 13 to 17, and DarkSword, which targets iOS 18.x, through a hidden iframe. A separate chain for iOS 26 appears only to fingerprint devices.

What to do

It is not yet clear how many of the exploit chains succeeded, and the list of affected sites may not be exhaustive. Site operators should check the ReportURI and Cynet indicators of compromise and audit any third-party JavaScript they load. The uncomfortable lesson is that a signed script from a trusted vendor is still a single point of failure: one compromise upstream reaches every customer page at once.

Source: Ars Technica - Hundreds of websites deliver potent malware cocktail to unsuspecting visitors

Comments

Loading comments...