Member-only story
The Optimizely Malware Had a Plan for Your CSP. It Was Called eval.
Third-party JavaScript security after the Optimizely attack: the CSP and SRI setup for Rails
Raza Hussain
9 min read16 hours ago
Press enter or click to view image in full size Third-Party JavaScript Security After the Optimizely Attack
What does third-party JavaScript security need after the Optimizely supply chain attack? A host allowlist is not enough.
At 04:21 UTC on November 16, a few lines of JavaScript showed up in the BBC’s Optimizely snippet. By the evening, Report URI had counted 188 infected snippets belonging to 178 organisations, and some sites were skimming card numbers from their own checkout forms.
The attacker had written the payload a fallback. If a Content Security Policy blocked the script URL, an inline copy ran through eval , and Optimizely's own docs tell customers to allow eval .
Here’s the short answer.…