In the week before Black Friday, a card-stealing script sat on the checkout pages of five online stores. The researchers who found it say it only turned on for phone-sized screens, only on the checkout page, and that it sent card details out over the same kind of channel a video call uses. It was removed on Nov 24 or 25, after they reported it.
If you test your own shop on a laptop and look at the home page, the report says you would likely have seen nothing. That is the part I want you to take away. The script was built so that the usual way of checking a site would probably miss it.
If you build or maintain any page that takes a card, or even just a login, the useful question is not “does my page look fine in my browser.” It is smaller and you can answer it this week: which files does the payment page load, who can change them, and what has the browser been told it is allowed to talk to? The experience-based judgment I keep coming back to is that a page is only as safe as the least-watched file it loads.
This post reads the original report, explains the attack in plain words, gives you three checks to run on your own payment or login page, and ships a small read-only script that does the mechanical part.
What the researchers found
The report is from InfoHawk, dated Nov 27, 2026. I re-read it on Nov 29 before writing this. Here is what it says, and only what it says.
- A card-skimming script was planted on the online stores of five retailers in the week before Black Friday.
- All five removed it on Nov 24 or 25, after the researchers notified them.
- The researchers watched it in action on one of the five sites, where it sent their test card’s details to a third party. On the other four they did not capture live card data leaving the page.
- The script was built, they believe, to take a card number, expiry and security code, plus name, address, phone and email, as the shopper typed.
- It did this before the store checked the payment. So a card could be taken even if the order was then declined or cancelled, and nothing would look wrong to the shopper.
- They say plainly: “we do not know how many, if any, shopper details or payment credentials may have been captured.”
The three ways the script got onto the stores are the part a developer should read twice.
| Route into the page | What it means in plain words |
|---|---|
| A marketing pixel | A tracking script the store loads from an ad-attribution vendor. The vendor’s file was altered. |
| A cookie-banner setting | The banner’s configuration had a link field that also held a hidden image, and that image’s error handler loaded the bad code. |
| A file on the store’s own CDN | The store’s own content-delivery server held an altered file. |
Three different doors, one kit behind them, and by the researchers’ account all of it appears to rely on the same attacker infrastructure. That is why they think other sites may be affected too.
I am not naming the retailers or the vendors here. They have all acted on the report, and the report is linked at the end if you want the names.

The file that carried the loader sat outside the store’s application code each time. A git diff of your application repository may show nothing, and your tests may pass. A plain home-page scan likely misses it too: the report says the server turned the skimmer on only for checkout pages, and only for small or touch screens.
The attack in seven steps, in plain words
Three short definitions first, because the rest of the post depends on them.
WebRTC is the browser feature that lets a web page open a direct channel to another party and pass data over it. It is what makes video calls in a browser tab work. A “data channel” is the part of it that carries plain data instead of audio or video.
CSP (Content-Security-Policy) is a response header your server sends with a page. It tells the browser what the page is allowed to load and where it is allowed to send data. It is a seat belt, not a lock: it only works if you set it, and a long or wide list limits very little.
connect-src is one directive inside CSP. It limits which hosts the page’s scripts may contact with ordinary web requests such as fetch and XMLHttpRequest.
Now the kit, as the report describes it:

- Store page. The loader gets onto the page through one of the three doors above.
- Load script. The loader pulls the real skimmer from a cloud storage bucket.
- Phone only. It runs only on small or touch screens. One of the variants ran only on the
/checkoutpath. - Web request. It makes two ordinary web requests to a host with an ad-network-style name, to get relay details and to send a connection offer.
- WebRTC channel. The connection opens through a relay, the same kind of relay ordinary video-call apps use, so the traffic blends in.
- Code comes in. The skimmer arrives in chunks over the channel, is checked against a hash, then run.
- Data goes out. At the one store where they watched it work, the card details left the same way.
Notice what the report says about where a CSP rule can help: only step 4 is an ordinary web request, which a connect-src rule can block. Steps 5 to 7 run over the WebRTC data channel, “outside connect-src.”
I did not test that claim myself, but one thing I could check supports it. MDN’s list of what connect-src controls is fetch(), XMLHttpRequest, WebSocket, EventSource, Navigator.sendBeacon(), the ping attribute on links, and fetchLater(). WebRTC is not on that list. So the report’s statement and the reference page agree. I also did not verify whether any other CSP directive can control WebRTC traffic directly, so I am not going to tell you one exists.
What a connect-src rule can and cannot do
The report’s advice for site owners is one sentence: on every page that takes payment, set a connect-src rule that lists only the hosts you use. Its reasoning is that this blocks the two web requests the script needs before WebRTC opens, and “without them the skimmer never arrives, whichever file was tampered with.”
That is a good property. It does not depend on you spotting the bad file, only on knowing the short list of hosts your payment page really talks to. A request to some unknown ad-looking host then fails in the browser, whichever door the loader came through.
Two limits, and the second is my inference, not the report’s:
- Once code is already running over the WebRTC channel, the report says
connect-srcis not what governs that traffic. The rule protects the way in, not what happens after. - A
connect-srcrule says nothing about which files the page loads. If a tampered file comes from a host you already allow, such as your own CDN, the rule may not stop the loader from running. Stopping the loader from loading is a different job, and it is the reason checks 1 and 3 below exist.
So treat the rule as one layer. The three checks are how you find out whether you have the other layers.
The three checks

Run these on the page that takes the payment or the login, not on the home page. If you have a staging site with a copy of the checkout, start there.
Check 1: list every script that loads on the payment page
You want a list of every host that serves a script to this page, then a one-line answer for each: who can change that file, and does this page need it at all?
Open your payment step in the browser, wait until it finishes loading, open DevTools, and paste this into the console:
1// Run on the payment step after the page has finished loading.
2const mine = location.hostname;
3const hosts = new Set(
4 performance.getEntriesByType('resource')
5 .filter(e => e.initiatorType === 'script')
6 .map(e => new URL(e.name).hostname)
7);
8[...hosts].filter(h => h !== mine).sort();
You get an array of host names. Every name that is not yours is a place where someone else can change what runs on your payment page.
Two limits. This shows scripts the browser loaded as script files. It does not show code that another script fetched and then ran with eval, which is the kind of thing step 6 describes, and over WebRTC it would not show at all. That is why the list is a starting point, not a clean bill of health.
Also, the report’s advice goes further than “list them”: review which tracking pixels load on pages that take payment or sign-in details, who can change those files, and whether they need to be there at all. In my experience the honest answer for many of them is “no, they could sit on the order-confirmation page instead.” That is my opinion, not the report’s.
Check 2: read the Content-Security-Policy header
This tells you whether the browser has been given any limit on where the page’s scripts can send data.
1curl -sI https://your-shop.example/checkout | grep -i '^content-security-policy'
A checkout URL often redirects to the cart when you are not signed in. If curl gives you a redirect, use DevTools instead: Network tab, click the first request (the page itself), and read Response Headers.
There are only a few states to look for:
- No header at all. The browser applies no limit.
- Report-only header only. The name is
Content-Security-Policy-Report-Only. MDN’s wording: the policy is not enforced, it only generates reports. Nothing is blocked. - A header with no
connect-src. The browser falls back todefault-src. If that is missing too, there is no limit on where requests can go. connect-srcset to a star, orhttps:. That allows every host, so it limits nothing.connect-srcset to a short list of hosts you actually use. This is the state you want.
Check 3: are the card fields inside a payment provider’s frame
Right-click the card number box and choose Inspect. Look up the tree from that input. Is it inside an <iframe> whose address belongs to your payment provider, or is it a plain <input> in your own page?
If it is inside the provider’s frame, a script on your page cannot read what the shopper types, because the browser keeps the frame’s contents away from the page. If it is in your page, any script on that page can read it, including a skimmer.
The report makes the same point from the other side: card fields should sit in an isolated payment frame, and third-party tags should be kept off these pages entirely.
A small script that does the mechanical part
The three checks are easy to forget and tedious to repeat on five pages. This is a read-only script, standard library only, that looks at one page and prints what it can see for all three. It never sends anything anywhere except one GET to the URL you give it.
1#!/usr/bin/env python3
2"""checkout_check.py - three checks for a page that takes payment or a login.
3
4Usage:
5 python3 checkout_check.py https://your-shop.example/checkout
6 python3 checkout_check.py --headers headers.txt --html page.html --host shop.example
7
8Read-only. It fetches one page (or reads two saved files) and prints what it sees.
9It cannot see scripts that a tag manager adds after the page loads.
10"""
11import argparse
12import re
13import sys
14import urllib.request
15from urllib.parse import urlparse
16
17WIDE = {"*", "https:", "http:", "data:", "blob:"}
18
19
20def fetch(url):
21 req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0 checkout-check"})
22 with urllib.request.urlopen(req, timeout=20) as r:
23 headers = {k.lower(): v for k, v in r.getheaders()}
24 html = r.read(600_000).decode("utf-8", "replace")
25 return headers, html, urlparse(url).hostname or ""
26
27
28def read_headers(path):
29 out = {}
30 for line in open(path, encoding="utf-8"):
31 if ":" in line:
32 k, v = line.split(":", 1)
33 out[k.strip().lower()] = v.strip()
34 return out
35
36
37def parse_csp(value):
38 d = {}
39 for part in value.split(";"):
40 toks = part.strip().split()
41 if toks:
42 d[toks[0].lower()] = toks[1:]
43 return d
44
45
46def check_scripts(html, host):
47 srcs = re.findall(r"<script[^>]*\ssrc=[\"']([^\"']+)", html, re.I)
48 inline = len(re.findall(r"<script(?![^>]*\ssrc=)[^>]*>", html, re.I))
49 third = sorted({urlparse(s).hostname for s in srcs
50 if s.startswith(("http://", "https://", "//"))
51 and urlparse(s if not s.startswith("//") else "https:" + s).hostname not in (host, None)})
52 print(f"CHECK 1 scripts in the HTML: {len(srcs)} with src=, {inline} inline")
53 if third:
54 print(f" REVIEW other hosts: {', '.join(third)}")
55 print(" for each one, ask: who can change that file, and does this page need it?")
56 else:
57 print(" OK no script from another host in the HTML (tag managers can still add some later)")
58
59
60def check_csp(headers):
61 enforced = headers.get("content-security-policy")
62 report_only = headers.get("content-security-policy-report-only")
63 print("CHECK 2 Content-Security-Policy")
64 if not enforced and not report_only:
65 print(" REVIEW no CSP header: nothing limits where a script on this page can send data")
66 return
67 if not enforced:
68 print(" REVIEW report-only header only: it reports, it does not block")
69 return
70 csp = parse_csp(enforced)
71 src = csp.get("connect-src", csp.get("default-src"))
72 if src is None:
73 print(" REVIEW no connect-src and no default-src: requests may go to any host")
74 elif WIDE & set(src):
75 print(f" REVIEW connect-src is wide: {' '.join(src)}")
76 else:
77 hosts = [s for s in src if not s.startswith("'")]
78 print(f" OK connect-src is a list: {' '.join(src)} ({len(hosts)} host(s) + keywords)")
79 if len(hosts) > 8:
80 print(" long list: remove any host this page does not call")
81
82
83def check_card_fields(html):
84 print("CHECK 3 card fields")
85 inputs = re.findall(r"<input[^>]*(?:cc-number|card[-_ ]?number|cardnumber)[^>]*>", html, re.I)
86 frames = [urlparse(u).hostname or u for u in re.findall(r"<iframe[^>]*\ssrc=[\"']([^\"']+)", html, re.I)]
87 if inputs:
88 print(f" REVIEW {len(inputs)} card input(s) sit in the page itself: any script on the page can read them")
89 else:
90 print(" INFO no card input in the HTML")
91 if frames:
92 print(f" INFO iframe hosts: {', '.join(sorted(set(frames)))}")
93 if not inputs and not frames:
94 print(" the fields may be built by JavaScript: open DevTools and inspect the card box")
95
96
97def main():
98 ap = argparse.ArgumentParser()
99 ap.add_argument("url", nargs="?")
100 ap.add_argument("--headers")
101 ap.add_argument("--html")
102 ap.add_argument("--host", default="")
103 a = ap.parse_args()
104 if a.url:
105 headers, html, host = fetch(a.url)
106 print(f"page: {a.url}")
107 elif a.headers and a.html:
108 headers, html, host = read_headers(a.headers), open(a.html, encoding="utf-8").read(), a.host
109 print(f"files: {a.headers} + {a.html}")
110 else:
111 sys.exit("give a URL, or --headers and --html")
112 check_scripts(html, host)
113 check_csp(headers)
114 check_card_fields(html)
115
116
117if __name__ == "__main__":
118 main()
It has one honest weakness: it reads the HTML your server sends. It cannot see scripts that a tag manager adds after the page loads, and it cannot see card fields built by JavaScript. For those, use the console snippet in check 1 and Inspect in check 3. If your payment step sits behind a login, save the page source and the response headers from DevTools and run it in file mode.
Running it on made-up fixtures
I wrote three fixture pages for three imaginary shops. The domains end in .example, so they are not real hosts. Shop A has a short connect-src list and a card frame. Shop B has no CSP and a card input in the page. Shop C has connect-src *. Here is Shop B, the worst of them:
1$ python3 checkout_check.py --headers shop-b.headers --html shop-b.html --host shop.example
2files: shop-b.headers + shop-b.html
3CHECK 1 scripts in the HTML: 2 with src=, 1 inline
4 REVIEW other hosts: px.ad-pixel.example, tags.tag-manager.example
5 for each one, ask: who can change that file, and does this page need it?
6CHECK 2 Content-Security-Policy
7 REVIEW no CSP header: nothing limits where a script on this page can send data
8CHECK 3 card fields
9 REVIEW 1 card input(s) sit in the page itself: any script on the page can read them
Shop A came out with an OK on check 2 and an INFO on check 3. It still gets a REVIEW on check 1 for the payment provider’s script, and that is fine: the line is not an accusation, it is the question you answer once and write down. Shop C came out with a REVIEW on connect-src *, and its own CDN host showed up as another host. That is deliberate. The report’s third door was a file on a store’s own CDN, so your own CDN belongs on the “who can change this” list.
Running it on this site
I also ran it against the home page of this site. This site has no payment or login page, so the result is a demonstration, not an incident.
1$ python3 checkout_check.py https://zemna.net/
2page: https://zemna.net/
3CHECK 1 scripts in the HTML: 3 with src=, 4 inline
4 REVIEW other hosts: static.cloudflareinsights.com, www.googletagmanager.com
5 for each one, ask: who can change that file, and does this page need it?
6CHECK 2 Content-Security-Policy
7 REVIEW no CSP header: nothing limits where a script on this page can send data
8CHECK 3 card fields
9 INFO no card input in the HTML
10 the fields may be built by JavaScript: open DevTools and inspect the card box
So this site fails check 2 the same way Shop B does: it sends no CSP header. For a blog with analytics that is a lower-stakes situation than a checkout, but it shows the check is not about other people’s shops. If I added a policy here, I would start in report-only mode, for the reason in the next section.
Adding a connect-src rule without breaking the page
A CSP written from memory will break something on day one: a payment widget, an address autocomplete, a map. The safe way in is to start with the report-only header, watch what the browser says, and only then switch to the enforcing one.
Here is a Laravel middleware that sets a report-only policy. Treat the host names as placeholders and replace them with the hosts your page really uses:
1<?php
2// app/Http/Middleware/CheckoutCsp.php
3namespace App\Http\Middleware;
4
5use Closure;
6use Illuminate\Http\Request;
7use Symfony\Component\HttpFoundation\Response;
8
9class CheckoutCsp
10{
11 public function handle(Request $request, Closure $next): Response
12 {
13 $response = $next($request);
14
15 $policy = implode('; ', [
16 "default-src 'self'",
17 "script-src 'self' https://js.payment-provider.example",
18 "connect-src 'self' https://api.payment-provider.example",
19 "frame-src https://js.payment-provider.example",
20 ]);
21
22 // Report-only first. Rename the header to
23 // Content-Security-Policy once the browser console is quiet.
24 $response->headers->set('Content-Security-Policy-Report-Only', $policy);
25
26 return $response;
27 }
28}
Attach it to the payment and login routes only, so a mistake cannot break the rest of the site:
1use App\Http\Middleware\CheckoutCsp;
2
3Route::get('/checkout', [CheckoutController::class, 'show'])
4 ->middleware(CheckoutCsp::class);
Then do a real test purchase in a sandbox mode of your payment provider. Open the browser console on every step. Browsers normally print each violation there, naming the directive and the blocked host. Add the host only if you can say why the page needs it. When the console is quiet through a full test purchase, switch the header name.
A connect-src list that grows to twenty hosts is not doing the job. If you cannot keep the list short, that is itself the finding: the payment page is loading too much.
What I ran, and what I did not
I read the InfoHawk report in full on Nov 29, wrote the script and three fixture shops, and ran them. I ran the script once against the home page of this site, a static blog with no payment page. I did not run anything against any store in the report. I did not load a checkout in a phone, an emulator or DevTools device mode, so I cannot say whether emulation triggers the same server behaviour as a real phone. I did not run the console snippet in a browser, and I did not test whether a connect-src rule blocks the step 4 requests. Those parts are the report’s claims, labelled as such.
What this post is not saying
- It is not saying any store was careless. By the report, the loader reached them through vendor files and a CDN file.
- It is not saying a CSP rule makes you safe. It is one layer, and part of this attack travels outside it.
- It is not saying how many shoppers were affected. The researchers say they do not know. If you used a card at one of those stores last week, the report’s advice is to check your statements and tell your bank.
What you should do Monday morning
Monday, Nov 30, is Cyber Monday, so the payment page is probably not the page you want to touch that day. Do the reading first and change things second.
- Open your payment step and your login page in DevTools and run the console snippet from check 1. Write the outside hosts into a text file, and next to each one who can change that file and why this page needs it. Delete the line if you cannot answer, then talk to whoever owns that script about removing it.
- Read the
Content-Security-Policyheader on the same page (check 2) and write down which of the five states you are in. - Inspect the card box (check 3). If the fields sit in your own page and not in a provider’s frame, put that at the top of your list.
- Run
checkout_check.pyon the page source and headers you saved, and keep the output next to your notes. - If you have no
connect-srcyet, ship the report-only middleware to the payment and login routes first, and enforce it once a full sandbox purchase is quiet. - Put “review third-party scripts on payment pages” in the calendar once a quarter, with a name next to it.
If this was useful, two neighbouring checks sit in the same spirit. Laravel’s log file and .env top a credential-harvesting ranking is three requests you can run on your own site. Does your Gmail script count? is another rule that is easy to miss until a date arrives. For more in this area see the developer tools hub, the Laravel and Vue SaaS hub, and the start here page.
Further reading
Source InfoHawk: Credit card skimming scripts using WebRTC found on popular shopping sites (Nov 27, 2026)
