Blog News

Optimizely hack served malware to readers of CNN, BBC and Fox News sites

A hijacked Optimizely script served malware on 178 sites, including CNN, BBC and Fox News. What happened and what small publishers should check.

Illustration of a laptop showing a news page with a cracked puzzle piece plugged in, next to a cloud with a warning sign and a padlock

On November 16, an attacker slipped malicious JavaScript into the Optimizely accounts of 178 organizations, and for most of that Monday the code ran on their public websites. News sites were on the list: CNN, the BBC and Fox News all served it to readers, along with Zoom, Salesforce, GitLab, IKEA and HSBC, BleepingComputer reported.

Optimizely is a testing and personalization service that publishers load on their pages to try out headlines, layouts and offers. The script came from Optimizely's own content delivery network, so browsers trusted it like any other part of the page. Readers did not have to click anything. Opening an article was enough.

For newsrooms, the lesson is about the code they did not write. Every tag on a news page is a decision about who else gets to run software in front of your readers, whether that page was built by your own staff or by a custom website development company. A testing tool added years ago for one headline experiment can still be loading on every article today.

What happened in the Optimizely attack?

The attacker abused a flaw in Optimizely's account signup flow to get into customer projects and write code into the "Project JavaScript" field, where customers normally add their own custom code. Optimizely told The Record: "The vulnerable path is blocked, the injected code was removed, and customers have been contacted directly."

The timeline, based on reporting by BleepingComputer, The Record and Report URI:

  • 04:21 UTC, Nov. 16. The first injection appears in the BBC's Optimizely script.
  • During the day. Security researcher Scott Helme of Report URI spots the unauthorized scripts through Content Security Policy reports and script monitoring on customer sites.
  • About 20:40 to 21:10 UTC. A large-scale cleanup removes the code, including from the BBC's script at 21:07.
  • Afterward. Optimizely says it ended active sessions, revoked tokens and reset access for affected accounts. The company says fewer than 5% of its customers were hit and that it was not a password breach.

What did the malicious code do to readers?

The code was built to steal money and data from whoever loaded the page. According to Report URI's analysis, it could:

  • swap cryptocurrency wallet addresses for ones the attacker controlled;
  • skim payment card details typed into forms on the page;
  • take cookies and screenshots;
  • deliver iOS exploit kits known as Coruna and DarkSword to devices running iOS 18.6 or earlier.

Report URI traced about $7,040 in cryptocurrency to attacker wallets within nine hours. Helme told The Record that nobody yet knows "how many credit cards were skimmed, how many cookies or screenshots were stolen, or how many iOS devices were infected." Payment forms hosted inside processors' own iframes were out of the script's reach.

What should readers do if they visited an affected site?

Readers who opened affected sites on November 16 should take three steps:

  1. Update iPhones and iPads to the current iOS version.
  2. Check card statements for charges you do not recognize.
  3. Compare any cryptocurrency transfer made that day against the address you meant to use.

Treat any follow-up email about the hack with suspicion. The same habits that help you tell satire from fake news apply here: check who sent it before you click.

What should small publishers check on their own sites?

Only 15% of the affected sites had a Content Security Policy strict enough to block the payload, Report URI found. Any outside script on a page carries the same risk, whatever the size of the outlet. A short audit:

  • List every third-party script. Open a story page, check the browser's network tab, and write down each outside domain that loads code. Remove tools nobody uses.
  • Add a Content Security Policy with reporting. Report URI's advice: "Restrict connect-src, avoid 'unsafe-eval' where you can, and turn on reporting." Reports are how this attack was caught.
  • Keep payments off your pages. Use a payment provider's hosted checkout or iframe rather than collecting card numbers in your own forms.
  • Limit who can change vendor accounts. Turn on two-factor sign-in and remove staff who have left.

If you are weighing whether to keep this work in-house or hand it to an outside team, our guide on whether a newsroom should outsource website development covers what the contract should say about security and maintenance.

Optimizely has hired a forensics firm and says it will publish a root cause and final indicators when the investigation ends.

Sources for this report

From the blog of The Smattering, where we write plainly about satire, media literacy and how we work. More posts.

Get the next one first

Free satire in your inbox once or twice a week.