A website testing tool served malware on the BBC's and TalkTalk's sites. What it means for your website
Cyber Security

A website testing tool served malware on the BBC's and TalkTalk's sites. What it means for your website

On Monday 16 November an attacker abused Optimizely, a tool big organisations use to test changes to their web pages, to push malicious code to visitors of 178 organisations. The lesson for smaller firms is about the outside code your own site loads.

23 November 20264 min read

On Monday 16 November some of the best known websites in the world served malicious code to their visitors. Security researcher Scott Helme of Report URI found it in 188 of the 1,611 Optimizely snippets his team checked, belonging to 178 organisations including the BBC, Zoom, IKEA and Salesforce, Infosecurity Magazine reported. ISPreview reported that the websites of Virgin Media, O2 and TalkTalk were among those caught up. Report URI said the real number of affected organisations was likely higher, because it could only check the snippets it found in time.

How it happened

Optimizely's Web Experimentation tool lets businesses change the content and layout of their pages without touching the site's own code. Each customer's website loads a piece of JavaScript from Optimizely's content delivery network, and that file can include a field of custom code that runs on every page. The attacker inserted code into that field and left the rest of each file untouched, so the tampered files were still served from Optimizely's trusted network, Infosecurity Magazine reported. According to The Register, Optimizely said that "an unauthorized party exploited a vulnerability in Experimentation and used it to add malicious JavaScript to some customer projects", and that it had fixed the vulnerability and removed the injected code. The Register reported that the flaw was in the sign up process for the software.

What the code did

The Register reported that the malicious code was revised several times during the day. It swapped cryptocurrency wallet addresses copied to the clipboard for the attacker's own, and Report URI said those wallets had received about $7,040 by 19:25 UTC on 16 November, according to Infosecurity Magazine. It also worked as a card skimmer, capturing card details typed into websites' own forms, and stole some cookies and page screenshots. On iPhones and iPads it tried to deliver two iOS exploit kits, and Report URI advised visitors to update to iOS 18.7.3 or later, or iOS 26.3 or later. Infosecurity reported that the first injection was seen at 04:21 UTC and that all infected files had been cleaned by 23:11 UTC.

The detail that limited the damage

Infosecurity Magazine reported that cards entered in hosted payment iframes, the payment boxes supplied and hosted by a payment provider rather than by the website itself, were out of the skimmer's reach. Websites that take card details in their own forms had no such protection.

Why a small business should care

None of the companies named was hacked directly, ISPreview noted: a trusted third party system loaded by their websites was briefly hijacked. Most small business websites load code from elsewhere too, such as analytics, chat widgets, booking tools, cookie banners and advertising tags, and each one runs on your pages alongside your own code. William Wright, CEO of Closed Door Security, told Infosecurity Magazine that supply chain breaches "may be an inherent weakness of the web in its current form, but this doesn't excuse organizations from failing to reduce their own attack surface".

What this means for your business

Ask whoever built or manages your website for a list of every outside script it loads, and remove any you no longer use: an old tracking tag or a chat tool from a trial you never kept still runs on every page. If you take card payments on your site, check the card details are entered into a form hosted by your payment provider rather than on your own page; in this attack, Infosecurity Magazine reported, cards entered that way were out of the skimmer's reach. Make sure the logins for your website, analytics and marketing tools use two factor authentication, and keep staff phones and tablets updated. If you are in Exeter or the wider South West and want a second pair of eyes on your website and the tools behind it, talk to us.

#WEARECOBALT

Ready when you are.

Tell us what's slowing your business down. We'll tell you exactly how we'd fix it — plainly, with no obligation.