
A vulnerability scan would not have detected the Optimizely supply-chain attack, but it would have flagged issues that, if fixed, would have made it harmless.
What happened
On 16 November 2026, an attacker added a few lines to the "Project JavaScript" of customer Optimizely Web projects. Optimizely's CDN served the changed snippet as normal, so every visitor of an affected site loaded https://1688360.cc/track.js. Site owners' own code and servers were never touched.
The payload did four things:
- Wallet swapping: replaced crypto addresses in pages, forms, the clipboard and network requests with the attacker's.
- Card skimming: read card numbers, expiry and CVV from forms and sent them out with navigator.sendBeacon.
- Cookie and screenshot theft: sent non-HttpOnly cookies and page screenshots to 1688360.cc.
- iOS exploit kits: on iPhones and iPads, loaded exploit chains in a hidden iframe from .icu hosts.
Report URI found the code in 188 snippets belonging to 178 organisations, including Zoom, BBC, CNN, Salesforce and HSBC. It was live for about 17 hours before the mass cleanup (Report URI).
Why CSP decided who got hurt
According to Report URI's report, only 24 of the 159 organisations whose outcome was classified had a policy that stopped the payload outright.
- No CSP at all: 68 organisations
- CSP allowed the payload and the data theft: 50 organisations
- Payload ran, but connect-src blocked the data theft (wallet swapping still worked): 17 organisations
- Payload blocked: 24 organisations (15%)
The protective factor was a restrictive script-src. Two settings undid it: 'strict-dynamic', which trusts any script a trusted script inserts, and 'unsafe-eval', which Optimizely's own documentation asks customers to allow. Allowing cdn.optimizely.com on its own did not help, because the malicious code came from that host.
We rebuilt the four outcomes and scanned them
In order to reconstruct what running a scan on one of the vulnerable targets would have looked like, we built a static test site with a different level of CSP weakness on each of its subpages. This is the result:

HostedScan ZAP Passive scan results for the test site, listing CSP findings
Each of the findings has a dedicated section explaining the issue and how to address it:

HostedScan finding detail explaining a CSP issue and how to address it
In brief, excluding unrelated findings, this is what the scan uncovered:
- /no-csp/ Policy it copies: No CSP at all. CSP findings from HostedScan: Content Security Policy (CSP) Header Not Set
- /permissive/ Policy it copies: script-src 'self' 'unsafe-inline' 'unsafe-eval' https:, connect-src *, frame-src *. CSP findings from HostedScan: CSP: Wildcard Directive (script-src, connect-src, frame-src, worker-src), CSP: script-src unsafe-inline, CSP: script-src unsafe-eval
- /connect-blocked/ Policy it copies: script-src 'self' 'unsafe-eval' https:, connect-src 'self'. CSP findings from HostedScan: CSP: Wildcard Directive (script-src, worker-src), CSP: script-src unsafe-eval
- /strict-dynamic/ Policy it copies: script-src 'nonce-…' 'strict-dynamic'. CSP findings from HostedScan: None
- /strict/ Policy it copies: script-src 'self', connect-src 'self', frame-src 'none'. CSP findings from HostedScan: None
What each finding would have stopped
Fixing the Wildcard Directive and unsafe-eval findings on script-src alone moves a site into the "payload blocked" group. The other findings close the remaining routes.
- Content Security Policy (CSP) Header Not Set. The fix: Send a CSP. Attack stage it blocks: This is the very basis: with no policy, the browser runs and sends whatever the snippet asks for
- CSP: Wildcard Directive on script-src. The fix: List script hosts explicitly instead of https: or *. Attack stage it blocks: Loading track.js from 1688360.cc and the iOS loader boot.js from the .icu hosts
- CSP: script-src unsafe-eval. The fix: Remove 'unsafe-eval'. Attack stage it blocks: The inline fallback copy of the payload, which ran through eval when 1688360.cc was blocked, would have been blocked
- CSP: script-src unsafe-inline. The fix: Remove 'unsafe-inline'; use nonces or hashes. Attack stage it blocks: The fallback, when added as an inline <script> instead of run through eval, would have been blocked
- CSP: Wildcard Directive on connect-src. The fix: Restrict connect-src to your own APIs. Attack stage it blocks: Sending cards, cookies and screenshots to 1688360.cc/card.php and /hit.php would have been blocked
- CSP: Wildcard Directive on frame-src. The fix: Set frame-src 'none' or list frame hosts. Attack stage it blocks: The hidden iOS exploit-kit iframe would have been blocked
The 17 organisations in the middle group show why both halves matter. Their connect-src stopped the data theft, but a wildcard script-src still let the payload run, and wallet swapping happens entirely inside the page.
What the scan did not catch
The compromised snippet itself is not detected. No HostedScan scanner checks third-party script content for 1688360.cc or other indicators from this campaign. CSP findings tell you whether a compromise could run, not whether one is present. Script-change monitoring and CSP violation reports cover that side.
A policy that would have held
A site using Optimizely Web needs its script host allowed, but nothing that host's code might add. A starting point (check the event endpoint against your own Optimizely setup):
Content-Security-Policy: default-src 'self'; script-src 'self' https://cdn.optimizely.com; connect-src 'self' https://logx.optimizely.com; frame-src 'none'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'
The snippet still loads, but the script tag it injects for 1688360.cc is refused, eval is refused, and stolen data has nowhere to go. Optimizely's documentation asks for 'unsafe-eval', so test your experiments without it before rolling the policy out. Send it as Content-Security-Policy-Report-Only first, with a reporting endpoint, to see what breaks.
To check your own sites:
- Run a HostedScan ZAP scan against the public URL of each site that loads third-party scripts.
- Treat every CSP Header Not Set, Wildcard Directive and script-src unsafe-eval finding on those sites as a supply-chain exposure, not a hardening nicety.
- Fix, rescan, and confirm the findings move to "No longer found".
Speed and power,
without the complexity
The world's leading vulnerability scanners, all in one platform.