Hijacked Optimizely scripts hit 178 organizations
Malicious code reached visitors of at least 178 organizations through Optimizely scripts. See what happened and how to review the scripts your pages load.
TL;DR: An attacker abused a flaw in Optimizely Web Experimentation to add malicious code to scripts that customer websites load. Visitors to at least 178 organizations received a card skimmer and exploit kits, and sites that load third-party scripts should review what they serve.
What happened
According to The Hacker News, Optimizely said that an attacker exploited a bug in Optimizely Web Experimentation and slipped harmful code into some of the scripts its customers' sites fetch from the service. Report URI, a firm that watches the scripts websites run, found that the code reached people browsing sites run by at least 178 organizations, among them CNN, the BBC and Zoom. The reports describe a card skimmer and exploit kits aimed at iOS.
The key lesson is that the sites did not change their own code. A script served from a third party ran with the full trust of each page, including pages where people enter payment details.
Am I affected?
You are in scope if your pages load scripts from Optimizely Web Experimentation, or from any other service you do not host. Work through these steps:
- List every external script your pages load, especially on checkout and login pages.
- Follow Optimizely's own guidance for its customers and check its status messages.
- Use a content security policy that allows scripts only from sources you expect, and consider integrity checks where a script is static.
- Watch for unexpected changes in what those scripts do, and tell your payment provider if card pages were exposed.
How to check with Stackurity
Stackurity does not cover this kind of problem. It does not monitor the content of scripts that a third-party service serves to your visitors, so it cannot tell you whether a hijacked script reached your pages. What it does cover is your own inventory: servers, applications, repositories and images, including versioned front-end libraries found in your templates. See the risk guide for how findings are ranked, or start a free trial.
Sources: The Hacker News.