The attackers slipped code designed to steal credit card information into the Optimizely scripts on the websites of 178 organizations. The lesson for any business website: every third-party script is a backdoor.
Optimizely is a platform for testing and personalizing web pages, used by large websites: the website loads a snippet of JavaScript code directly from Optimizely's servers. The company confirmed that someone exploited a vulnerability in the account creation process within Optimizely Experimentation and injected malicious code into some customers’ projects. The code was served from Optimizely’s servers, using their certificate, for approximately 16 hours on websites such as CNN, BBC, Zoom, Salesforce, GitLab, and KLM. Researcher Scott Helme found it in 188 of the 1,611 snippets he checked.
What the code did, according to StepSecurity's analysis:
- replaced the crypto wallet addresses copied by visitors with the attackers' addresses;
- stole card data entered into forms and sent screenshots and cookies;
- on iPhones running older versions of iOS, it loaded pages that attempted to hack the phone.
Optimizely says it has fixed the breach, deleted the code, and secured its customers' accounts. It has not yet explained how an issue with account creation allowed access to other customers' projects.
Why this matters to you, even if you don’t use Optimizely: the pattern repeats itself. The same type of attack previously targeted OptinMonster scripts, TrustPulse, and PushEngage (pop-up and notification tools for WordPress), where the code created new administrator accounts when the administrator visited their own site, and Brevo’s chat and tracking widget, where the code installed a malicious plugin. In all cases, the websites were up to date: the problem lay with the script provider. A small business’s website also typically loads third-party scripts: analytics, chat, pop-ups, ad pixels, and newsletter forms.
What you need to do:
- Ask the person who maintains your website for a list of the external scripts that are loaded, and remove the ones you no longer use.
- On payment and login pages, keep only the scripts that are strictly necessary; paying on the payment processor’s page is safer than using a credit card form on your own site.
- If your site is on WordPress, periodically check the list of administrators and installed plugins; any account or plugin you don’t recognize should be treated as a sign of compromise.
This article was generated with AI assistance.