Optimizely Compromised amirulcyber.com · 57 points · 11 comments · HN thread TL;...
HN Best 200 @best
Optimizely Compromised amirulcyber.com · 57 points · 11 comments · HN thread
TL;DR A security write-up reports that attacker JavaScript injected into Optimizely-hosted tag bundles was served to visitors of about 15 major websites, including CNN, Zoom, Fox News, BBC and GitLab. The payload swaps cryptocurrency addresses in the browser, skims card details from checkout forms, and exfiltrates page URLs, cookies and screenshots to attacker-controlled hosts.
- The loader appends a script from 1688360[.]cc/track.js inside an Optimizely bundle; the same line appears in ten more unrelated organisations' Optimizely project or snippet IDs.
- The payload has four modules: a crypto clipper covering eight chains, a card skimmer using Luhn and CVV checks, screenshot and cookie exfiltration, and an iOS-only second stage loading boot.js from two .icu hosts.
- Affected sites include edition.cnn.com, zoom.com, foxnews.com, bbc.com, salesforce.com, about.gitlab.com and ae.com; side vectors include a first-party bundle, a Jscrambler-protected script and a malvertising ad wrapper.
- Two affected sites blocked the loader with a Content-Security-Policy script-src rule, so the injected script never executed there.
- The report lists block-now IOCs (domains, paths and SHA-256 hashes) and suggests checks: searching served bundles for the C2 domain, monitoring CSP violations, and testing with a canary wallet address on staging.
Discussion The thread is short and mostly practical. It starts with a commenter who does not use Optimizely asking for a simple best practice, which turns into a debate about whether Subresource Integrity or Content Security Policy actually limits this kind of third-party compromise. Several commenters point out that SRI cannot stop a script from loading further scripts, and that CSP is the control that matters. The mood is sceptical and somewhat cynical about third-party SaaS and marketing tags, with one commenter criticising the source article's writing style as AI-like slop.
- CSP with domain allowlists is the real defence against tag-layer injection (many): Commenters argue that CSP script-src restrictions limit what a compromised third-party script can load and exfiltrate to. A commenter recalls enforcing strict CSP for site-builder customers to make such attacks less effective.
- Third-party tags and SaaS sprawl make this inevitable (some): One commenter blames constant SaaS releases, new dependencies and marketing teams adding tracking code without security review, and says ad networks are a further problem.
- SRI alone is not enough (some): Subresource Integrity verifies that a file is unchanged, but it does not stop a trusted script from loading other, malicious scripts. Pinning hashes is therefore only a partial answer.
- The source article reads like low-quality generated text (a few): A commenter objects to the report's phrasing, such as the 'tag layer' framing, and calls the write-up slop, suggesting the better source is the Report URI write-up.
Links from the comments
- Commenter-recommended alternative write-up with a section on how CSP helped or didn't.
- Optimizely status page, showing an ongoing partial outage at the time of the comment.
- MDN page on Subresource Integrity, suggested as a first step for third-party scripts.
- MDN guide to Content Security Policy, including how to whitelist domains.
#supplyChain #webSecurity #cryptoClipper #cardSkimming #Optimizely #CSP