Optimizely hack turns world's biggest websites into malware dispensers
Some of the world's most popular websites spent Monday serving malware to visitors after crooks found a way into a piece of software used to A/B test web pages.
Scott Helme, a security researcher at Report URI, identified malicious JavaScript being served by websites belonging to at least 178 organizations, including the BBC, CNN, Zoom, IKEA, Salesforce, HSB, and TalkTalk. All have one thing in common: they use Optimizely's Web Experimentation software.
Optimizely allows businesses to tweak the content and layout of their websites without changing the underlying site code. Unfortunately, someone other than its paying customers figured out how to do just that.
The attackers abused a feature that allows Optimizely customers to add their own JavaScript to web pages. The malicious code was distributed alongside the legitimate stuff from Optimizely's own content delivery network, giving customers little reason to suspect anything was amiss.
Optimizely has since confirmed that the criminals exploited a vulnerability, dubbed "OPTIMJACK" by researchers, in the sign-up process for its experimentation software, adding that it had patched the hole, removed the offending code, revoked tokens, and notified affected customers.
"Earlier today, Optimizely identified a security incident in which an unauthorized party exploited a vulnerability in Experimentation and used it to add malicious JavaScript to some customer projects," the company said. We've fixed the vulnerability and removed the injected code from affected projects. We've also taken steps to secure affected user accounts and put additional protections in place to prevent unauthorized code from being delivered."
Of the 1,611 Optimizely scripts examined by Helme and his team, 188 contained malicious code, including those used by Optimizely's own website and login portal. Given the researchers examined only a subset of the scripts, the number of affected businesses could be higher.
The malware underwent several revisions over the course of Monday, with cryptocurrency theft among the crooks' money-making schemes. Copy a wallet address to your clipboard and the malware could quietly swap it out for one belonging to the attackers, diverting any funds sent to that address.
A card skimmer added later in the day grabbed card numbers, expiration dates, and security codes from payment forms. However, according to a separate analysis by StepSecurity, card details entered into an iframe hosted by a third-party payment processor were beyond the malware's reach.
There was something nasty in store for Apple users, too. The malware attempted to deploy the Coruna and DarkSword exploit kits on iPhones and iPads running older versions of iOS, though how many devices the criminals managed to compromise is anyone's guess.
Helme traced roughly $7,000 in cryptocurrency to the attackers' wallets on Monday, though there's no telling how much more the crooks stand to make from stolen payment card details.
By 2152 UTC on Monday, TalkTalk was the only organization remaining on Report URI's list whose Optimizely code still contained the malware.
All that money spent securing corporate websites, and the attackers found their way onto them via a bit of software the marketing department uses to tinker with web pages. (R)