Optimizely hack spread to 450+ domains via a signup flaw

Published

The malicious code that rode Optimizely's website snippets on November 16 got there through a hole in the company's own account signup process, and it reached far more websites than first counted. Researchers at Zscaler ThreatLabz say they found more than 450 unique domains and more than 3,000 URLs serving the attacker's script, according to the original report by Atinderpal Singh.

That is a big jump from the 178 organizations identified in the first public tally, which we covered in our initial report on the attack. At that point neither the vulnerability nor the entry point had been publicly described.

A signup bug that opened customers' scripts

Optimizely Web Experimentation lets companies run A/B tests and personalization by loading a JavaScript snippet on their pages. Each project has a Project JavaScript field where the customer can add custom code that runs on every page that loads the snippet. Zscaler says a flaw in the Web Experimentation account signup flow gave the attacker unauthorized write access to that field for multiple customer projects.

Whatever the attacker wrote there was then served through the normal delivery paths, including Optimizely's own content delivery network and, in some cases, customer domains. Because many sites already trusted and allowed Optimizely's scripts, the injected code ran without any visible change to the page.

Optimizely reported that it blocked the vulnerable path, deployed a fix, removed the injected code, ended active sessions, revoked tokens, reset access for affected accounts and notified impacted customers.

Crypto swaps, card skimming and iPhone exploits

In most affected snippets, the injected code was a small loader that pulled a second stage called track.js from attacker infrastructure. Zscaler says that payload:

DarkSword has surfaced before, in a fake iPhone Duo preorder page. Zscaler stresses that apart from the iOS branch, everything the script did was confined to the website it loaded on; it could not read other tabs or other sites' cookies.

The affected domains span airlines, banking, insurance, retail, news media, telecoms, smart home and SaaS, which Zscaler says points to a broader impact across industries than earlier reporting suggested. The report does not attribute the attack to a named group.

Update iOS and audit the Project JavaScript field

Indicators

The lesson from the new detail is uncomfortable for anyone who relies on a trusted third-party script: the attacker did not need to breach a single customer site, only to find one weak door in the vendor's signup page.

This briefing is provided by IntelFusions for informational and defensive purposes only. It is based on sources assessed to be reliable at the time of writing, and analytic judgments carry the confidence levels indicated. Indicators of compromise are defanged; re-arm them only in controlled environments. IntelFusions is not affiliated with the organizations named and makes no warranty as to completeness or accuracy.

Read the full analysis on IntelFusions