How online checkout skimmers steal cards and who pays

Hidden JavaScript skimmers steal card numbers on HTTPS sites, but U.S. law caps credit card fraud liability at $50 while debit cards risk unlimited losses.

Published 12 min read50 sources
A browser window with a padlock in its address bar holds a checkout form; dark script ribbons run behind the page and slip out through a hidden side channel.
Hidden script code running inside a legitimate online checkout page. Editorial illustration.

Key findings

  • Federal law caps credit card fraud liability at $50, and card-network policies usually reduce it to $0.344
  • A skimmed debit number carries $0 liability only if the error is reported within 60 days of the statement.340
  • Stolen numbers often sit unused for five months or more, so statements need review long after a purchase.31

General information only: legal and regulatory summaries are general information, not legal advice; rules vary by jurisdiction and change over time, so consult a qualified attorney for your situation.

On this page
  1. HTTPS and page scripts
  2. Capturing card data
  3. Infection counts and dwell time
  4. Credit and debit liability
  5. Wallets and virtual cards
  6. Checkout precautions
  7. Common questions
  8. Sources

Online checkout skimmers run hidden JavaScript inside the shopper's browser. The script can read form fields as they are typed or draw a fake payment form over a legitimate HTTPS store. The padlock and https:// address do not inspect that code once the page loads.12

Under U.S. federal law, credit card fraud liability is capped at $50, and card-network rules usually bring the consumer's cost to $0. Debit card fraud can take cash out of a checking account for up to 10 business days before provisional credit, and missing the 60-day statement deadline can expose the account holder to unlimited liability.34

Apple Pay uses hardware-isolated security codes so the webpage never receives a reusable card number. Single-use and merchant-locked virtual cards block reuse at other stores. PayPal and hosted payment iframes have been bypassed on compromised sites.56

  • $50Maximum credit card fraud liability under U.S. law
  • $0Usual credit card liability under card-network rules
  • 60 daysReporting deadline for debit card fraud from the statement

Figures as given in the text above, from sources 34, 3, 4.

HTTPS and page scripts

HTTPS protects data in transit between a shopper's device and a retailer's web server, not what happens inside the browser. Most shoppers look for the padlock icon and an https:// address before entering a payment card.7 Once a legitimate checkout page loads, HTTPS does not inspect or restrict the JavaScript running on it. Client-side scripts share access to the page's form inputs and buttons, so malicious code planted on an otherwise genuine store can read everything typed into it.12

Attackers get skimming code onto checkout pages in two ways.18 One is a break-in to the retailer's own server, via stolen administrator credentials or unpatched e-commerce software. In late 2024, seven criminal groups used a flaw called CosmicSting to compromise about 5% of Adobe Commerce and Magento stores; six weeks after Adobe shipped an emergency patch for a later Magento vulnerability, CVE-2025-54236, only about 38% of stores had applied it.910 Once inside, hackers hide skimmers in storefront files, CSS stylesheets, favicons, invisible image elements and scheduled jobs that restore the malware after administrators delete it.1112

The second route is a third-party script. Retailers embed external code for analytics, tag managers, live chat, reviews and package tracking, and each vendor is a potential injection point.1013 On October 24, 2026, a Brazilian crew exploited an unpatched Plausible analytics flaw on the Convertr e-commerce platform to harvest the entire payment form, including Brazilian CPF tax IDs, across dozens of fashion brands.14

Capturing card data

Browser skimmers steal payment details silently while letting the real order go through.215 Attackers rely on two collection methods and an increasingly evasive network channel.

Keylogging and fake checkout overlays

Basic JavaScript skimmers attach keyloggers or input listeners directly to checkout form fields, recording card numbers, expiration dates, CVVs, names, billing addresses and phone numbers.216 They read field values as the buyer types or moves between boxes, so the data is captured even if the cart is abandoned or the payment fails.117

Where merchants isolate payment boxes or hand card collection to an external processor, skimmers draw a fake overlay on top of the real payment screen. Sansec documented a campaign across 99 Magento stores that hid skimming logic inside invisible <svg> image tags and used onload triggers to render the overlay.1011 A shopper types card details into the attacker's copy and sees a bogus message such as "Payment failed, please try again". The second attempt submits to the store's real processor, the confirmation page loads normally, and neither buyer nor merchant notices the theft.215

Bypassing security rules with WebRTC

Skimmers once shipped stolen numbers out of the browser through HTTP POST requests, fetch calls or hidden image URLs, and defenders answered with Content Security Policy headers, particularly the connect-src rule limiting which domains a page can contact.1718 PCI DSS v4.0.1, which made payment-page script authorization and tamper detection mandatory on March 31, 2025, pushed merchants to enumerate and monitor every script on checkout pages, though a January 2025 revision to the SAQ A self-assessment questionnaire removed those requirements for merchants that outsource card collection to iframes or redirects.1920

Attackers moved the exfiltration channel to WebRTC, the browser feature normally used for real-time audio, video and peer-to-peer data. Sansec's March 2026 analysis of a skimmer on the online store of a car manufacturer describes an RTCPeerConnection data channel that skips signaling servers, forges the handshake in JavaScript, copies a valid page nonce onto its own script tag, and delivers payload chunks during browser idle time.1018

WebRTC data channels run over DTLS-encrypted UDP, so tools watching HTTP egress record an ordinary checkout while card data leaves through traffic that CSP's connect-src directive does not govern.17 Browsers still do not support the dedicated CSP webrtc directive, and only newer controls such as Chrome's Connection Allowlist can block these connections by default.21

Other crews route stolen data through trusted services. Sansec found a Magecart family storing skimmer code in Stripe customer metadata and writing stolen card details back through Stripe's API, and Source Defense documented stolen inputs held in browser storage and then sent through Braintree's sandbox API inside customer-profile fields.122

Skimming attacks and technique milestones, 2024 to 2026
  1. October 2024Reported on October 1, seven criminal groups exploit a flaw called CosmicSting to compromise 5% of all Adobe Commerce and Magento stores.
  2. September 2025Attackers weaponize a critical vulnerability called SessionReaper (CVE-2025-54236) in September and October 2025.
  3. March 2026On March 24, Sansec publishes a forensic analysis of a WebRTC skimmer found on the online store of a car manufacturer valued at over $100 billion.
  4. April 2026On April 7, Sansec documents a campaign across 99 Magento stores that hid skimming logic inside invisible svg image tags.
  5. June 2026On June 4, Sansec finds a Magecart family storing skimmer code inside Stripe customer metadata and writing stolen card details back through Stripe's API.
  6. October 2026On October 18, Sansec reports scripts injected into four Shopify apps. On October 24, a Brazilian crew exploits an unpatched Plausible analytics flaw on the Convertr platform.

Figures as given in the text above, from sources 1, 17, 2, 7 .

Infection counts and dwell time

No government agency publishes an annual census of e-skimming infections, so every count depends on how a security firm scans the web and what it counts. Recorded Future identified 2,951 domains infected with Magecart e-skimmers in June 2025 and 3,341 in July 2025.23 Sansec, which crawls hundreds of thousands of retailers worldwide, has found more than 60,000 stores infected with skimming malware since 2015.24 In Verizon's 2025 Data Breach Investigations Report, Magecart accounted for only 1% of System Intrusion breaches yet generated 80% of all payment card breaches.2526

Dwell times vary just as widely, because automated crawlers, incident responders and breach surveys measure different populations and define discovery differently.27

Source and date Measurement scope Reported duration Why this figure differs
Sansec (Nov 2024)928 Global store crawler network 13 days average operation; 20% reinfected Tracks skimmers visible on public checkout pages; misses hidden server-side malware.916
Sansec / Aviatrix (Oct 2026)1314 Convertr/Plausible supply-chain attack ~48 hours undetected by alerts High-profile SaaS compromise spotted quickly by external threat researchers.1314
Sansec & Silent Push (2025–2026)914 Extreme long-tail cases ~2 to 4+ years Individual cases: Brazilian stores (~2 yrs), printing platform (>2.5 yrs), Silent Push Jan 2026 case (>4 yrs).914
Verizon 2025 DBIR29 Non-actor-disclosed breaches (2025 dataset) 24 days median dwell time Covers broader breach types (down from 30 days in 2023 DBIR), not e-skimmers alone.29
Mandiant M-Trends 20262730 Enterprise IR engagements (2025 data) 14 days median (9 days internal; 25 days external) Median across all corporate intrusions investigated by Mandiant; up from 11 days in 2024.2730
IBM Cost of a Data Breach 202627 602 breached organizations 183 days mean time to identify Arithmetic mean (average) across major corporate breaches; pulled up by multi-month leaks.27

About one in five compromised merchants is reinfected after cleanup, because attackers leave behind rogue administrator accounts or server backdoors. In February 2026, a top-10 global supermarket chain's PrestaShop store remained infected four days after Sansec tried to alert the company.910

Even after a store removes a skimmer, criminals rarely spend stolen cards immediately. In a controlled 2020 experiment, Anti-Phishing Working Group researchers bought from 50 compromised stores using unique test cards and monitored them for 11 months; thieves attempted fraudulent charges on 15 of the 50, and in 14 of those cases misuse began at least 50 days after exposure.31

Mastercard reported in 2024 that fraudulent charges usually begin around five months after skimming, once automated checker bots validate the numbers and dark web brokers sell them for $5 to $30 apiece, and that shoppers at infected merchants are 31% more likely to become fraud victims.3233 Recorded Future documented waits ranging from six weeks to more than a year.23

Credit and debit liability

Two federal statutes decide who absorbs the loss after a checkout skimmer steals payment details, and whether a bank balance is frozen while the bank investigates.3435

The Truth in Lending Act, 15 U.S.C. § 1643, implemented by the Consumer Financial Protection Bureau as Regulation Z, governs consumer credit cards. Under 12 CFR § 1026.12(b), a cardholder's statutory liability for unauthorized charges is the lesser of $50 or the amount charged before the issuer is notified, and $0 for charges made afterward; voluntary network policies from Visa and Mastercard usually bring the cardholder's cost to $0.436

Regulation Z also grants a billing-error and merchant-dispute right covering unauthorized charges, accounting errors and goods not delivered as agreed, the same 60-day window a shopper uses to dispute an unrefunded charge on a mispriced order.3437 Commercial and business credit cards generally fall outside TILA's consumer cap and can carry higher contractual liability.38

Debit cards run on the Electronic Fund Transfer Act, 15 U.S.C. § 1693g, implemented as Regulation E, which sets liability according to whether the physical card left the holder's possession. A lost or stolen card reported within two business days of learning of the theft caps liability at $50; waiting longer raises the cap to $500 for transfers the bank can prove timely notice would have stopped.339

A number copied by a skimmer while the holder still has the card falls under a separate provision carrying $0 statutory liability, provided the error is reported within 60 days after the bank transmits the statement showing the first unauthorized transfer.40 Miss that window and liability becomes unlimited for unauthorized transfers made after day 60 and before notice, if the bank establishes that timely notice would have prevented them.

The difference most people feel is cash flow. A disputed credit card charge is withheld from the payment, so no money leaves the account. On a debit card the bank has up to 10 business days after notice to post provisional credit, and the balance stays reduced until it does.3437 Regulation E also covers only electronic transfer errors, so a debit user has no statutory claim for undelivered merchandise.

CFPB guidance says a bank cannot require contact with the merchant before opening an unauthorized-transfer investigation, and that consumer negligence such as writing down a PIN cannot raise liability above the Regulation E caps.3941

Attribute Credit Card (Reg Z, 12 CFR 1026) Debit Card: Lost/Stolen Card (Reg E, 12 CFR 1005) Debit Card: Skimmed Number Only (Reg E, 12 CFR 1005) Business Credit Card (Reg Z Carve-Out)
Statutory liability cap $50 max ($0 in practice via card networks)344 $50 (<=2 business days); $500 (>2 business days)339 $0 if reported within 60 days of statement340 Can exceed $50 by contract438
Missed 60-day statement window Billing-error window (1026.13) is 60 days; 1026.12(b) has no unlimited cliff437 Unlimited for transfers occurring after day 60339 Unlimited for transfers occurring after day 60339 Governed by commercial card agreement4
Impact on your cash during dispute None; disputed sum withheld from payment34 Checking balance reduced up to 10 business days until provisional credit34 Checking balance reduced up to 10 business days until provisional credit34 Depends on issuer contract
Investigation timeline Acknowledge in 30 days; resolve in <=90 days3437 Provisional credit in 10 business days; resolve in 45–90 days3437 Provisional credit in 10 business days; resolve in 45–90 days3437 Not fixed by consumer Reg Z rules38
Statutory merchant-dispute right Yes (12 CFR § 1026.13 covers undelivered/defective goods)3437 No (EFT errors only; network chargebacks voluntary)3437 No (EFT errors only; network chargebacks voluntary)3437 Limited commercial protections38

Wallets and virtual cards

Virtual cards, mobile wallets and PayPal each meet a hacked page differently, and popular advice treats all three as skimmer-proof.

Virtual card numbers

A virtual card generates a temporary proxy number, expiration date and CVV linked to the underlying account. Because the cardholder types those proxy digits into the store's webpage, a JavaScript or WebRTC skimmer still captures them.142

A single-use virtual card invalidates itself after one transaction clears. Thieves typically hold skimmed batches for weeks or months before spending them, so the number is dead before it reaches a marketplace.3143 These cards break subscriptions, recurring memberships, hotel holds and split shipments, and they cannot stop a fraudulent storefront from keeping or overcharging a first payment.

A merchant-locked virtual card stays active for recurring charges and refunds at one approved merchant and declines attempts anywhere else, so a stolen number is useless at other stores. Without a spending cap, someone can still charge it at that merchant until the cardholder pauses or deletes it.4244 The same token logic now underpins how AI shopping agents pay for orders, with merchant restrictions carrying the weight instead of the shopper's signature.

Apple Pay

Apple Pay authorizes payment with hardware on the device instead of a static number in a web form. Apple's platform security documentation, updated December 19, 2024, describes private payment keys held inside the Secure Element chip, out of reach of software; using them requires approval from the Secure Enclave after Face ID, Touch ID, a device passcode or a double-click on an unlocked Apple Watch.

The Secure Element calculates a transaction-specific security code using Elliptic Curve Diffie-Hellman encryption, mixed with an Apple Pay server anti-replay value and verification metadata, and the payment network and issuer validate that code once per purchase. An intercepted payload cannot be replayed at another merchant or turned back into a card number.6

What remains is social engineering. On a hacked store, skimmers display fake card forms or bogus error messages to push shoppers into typing a plastic number, and Recorded Future documented a June 2025 UK phishing operation that spun up 207 domains in 12 days to collect card details and one-time passcodes for loading stolen cards onto criminal wallets. Neither attack pulls stored credentials out of a shopper's Apple Pay wallet.26

PayPal and hosted iframes

Outsourcing card collection to a hosted iframe rests on the browser's Same-Origin Policy, which normally bars a store's JavaScript from reading inside a cross-origin frame served by PayPal, Braintree or Stripe.455 Researchers have documented three bypasses on live stores. Attackers have swapped hosted payment iframes for their own; HUMAN Security detailed how the "Inter" Magecart toolkit defeated Braintree Hosted Fields on a compromised Magento store by loading a lookalike script, editing its origin check and collecting card data inside a rogue iframe while PayPal approved the real order.

A December 2020 skimmer exposed by researcher Eric Brandel and Sansec used postMessage to mimic PayPal's checkout handshakes and inject a convincing fake PayPal iframe onto the page.12 Others draw fake payment fields in front of the real hosted box, collect the first entry, show a retry prompt and pass the second to the authentic processor.1

Isolation holds only for an unspoofed cross-origin window. Paying from a stored PayPal balance after confirming the address bar reads paypal.com keeps card numbers off the merchant's page; typing a card into an embedded PayPal or processor widget on the merchant's own URL does not.15

Checkout Method Can Page Scripts Read What You Enter? Stops Reuse at Other Stores? Main Skimmer Bypass or Caveat
Standard card form Yes117 No42 Direct keylogging, formjacking overlays, and WebRTC exfiltration.12
Single-use virtual card Yes142 Yes, once one charge clears4643 Fails on subscriptions/holds; does not stop fake shops taking first payment.43
Merchant-locked virtual card Yes142 Yes, for all other stores4247 Can be charged at that same store unless capped or paused.4247
Apple Pay (authentic sheet) No (hardware Secure Element + anti-replay code)6 Yes (single-transaction cryptographic validation)6 Skimmers may show fake errors or forms to nudge users into typing raw cards.12
PayPal / Hosted iframes Sometimes (via overlays, swapped URLs, or spoofed popups)15 Only if no raw card is typed on merchant page and origin is genuine15 Braintree iframe hijacks, postMessage fake PayPal popups, and overlay forms.15

Checkout precautions

Use a credit card for online purchases. Federal statutory liability is capped at $50, and card-network rules usually bring the cardholder's cost to $0. The disputed sum is withheld from the credit card payment, and the billing-error process covers fraud and undelivered goods.344

Apple Pay is the first choice when a store supports it. If a store says Apple Pay failed and asks for a card number typed into the page, cancel the order and shop elsewhere.26 Where a card number must be typed, a single-use virtual card limits reuse on one-off orders at unfamiliar merchants. Recurring bills need a merchant-locked virtual card with a spending cap.4243 Do not type a card number into an embedded PayPal box. Sign into PayPal only in a separate window or full-page redirect on a genuine paypal.com address, and pay from the stored wallet.15

Review statements for at least six months after a purchase. Stolen numbers often sit idle for 50 days to five months, and sometimes more than a year, before criminals test them.2331 A debit card user should inspect every monthly statement within 60 days of issuance to avoid Regulation E's unlimited-liability cliff.343 At the first unauthorized charge, lock the card in the bank's app, report the fraud, and request a replacement number. Under Regulation E, the bank cannot require a call to the merchant first.841

Common questions

Does a single-use virtual card still protect me if the store's page is compromised?

Page scripts can read the proxy digits as they are typed, but the number invalidates itself once a charge clears. That breaks subscriptions, hotel holds and split shipments, and it cannot recover a first payment taken by a fraudulent storefront.143

Can my bank make me contact the merchant before it investigates debit fraud?

No. CFPB guidance says a bank cannot require merchant contact before opening an unauthorized-transfer investigation under Regulation E, and consumer negligence cannot push liability above the regulation's caps.3941

How long does a skimmer usually stay live on a hacked store?

Sansec's crawler network puts the average operation at 13 days, while documented cases run from about 48 hours to more than four years depending on who is counting.914

Sources

  1. What Is a Magecart Attack on Checkout Pages - Source Defensesourcedefense.com
  2. How to Spot and Stop E-Skimming Before It Hijacks Your Customersvikingcloud.com
  3. 1005.6 Liability of consumer for unauthorized transfers.consumerfinance.gov
  4. § 1026.12 Special credit card provisions. | Consumer Financialconsumerfinance.gov
  5. Magecart Attack Convincingly Hijacks PayPal Transactionsthreatpost.com
  6. Payment authorization with Apple Paysupport.apple.com
  7. Magecart Attacks: Prevention Tips and Security Best Practices - Krollkroll.com
  8. Magecart Attacks | NJCCICcyber.nj.gov
  9. Threat Research | Sansecsansec.io
  10. Web-skimming | Sansecsansec.io
Show all 50 sources
  1. SVG Onload Tag Hides Magecart Skimmer on 99 Stores - Sansecsansec.io
  2. Sansec research featured in the mediasansec.io
  3. Convertr Magecart Attack 2026: Analytics Script Hijacked to Stealaviatrix.ai
  4. Notorious Brazilian Magecart group hijacks Convertr checkouts viasansec.io
  5. Magecart Protection: How Attacks Work and How to Stop Them - csidecside.com
  6. What is Magecart? | Sansecsansec.io
  7. Webrtc magecart skimmersreport-uri.com
  8. Novel WebRTC skimmer bypasses security controls at $100+ billion car maker | Sansecsansec.io
  9. PCI DSS 6.4.3 and 11.6.1 Payment Page Scripts Guidenhimg.org
  10. Industry News 2025 An Introduction to Web Client Runtime Securityisaca.org
  11. PolyShell: Attackers Are Hitting 57% of Vulnerable Magento Storesatarussecurity.com
  12. Magecart skimmer turns Stripe into a malware command serversansec.io
  13. Getting Ahead of Payment Fraud: The Early Detection Window You're Missingrecordedfuture.com
  14. Magecart Early Breach Detection Feed - Sansecsansec.io
  15. Shortridge Makes Sense of Verizon's 2025 Data Breachkellyshortridge.com
  16. 2025 Data Breach Investigations Report - Verizonverizon.com
  17. What Is Dwell Time? Formula, 2026 Benchmarks, Insider Leaksjazz.security
  18. Ecommerce-security | Sansecsansec.io
  19. 2025 Data Breach Investigations Reportits.ny.gov
  20. How long stolen credentials go unnoticed - Cyber Security Awardscybersecurityawards.com
  21. Checkout Checkup: Misuse of Payment Data from Web Skimmingdocs.apwg.org
  22. What is Magecart? How E-Commerce Web Skimming Attacks Workvisualping.io
  23. Industrialization of the Fraud Ecosystem Blog - Recorded Futurerecordedfuture.com
  24. Credit Card vs Debit Card Fraud Protection in 2026: what Reg Zcreditcardvsdebitcard.com
  25. Request for Information Regarding Consumer Access to Financialfiles.consumerfinance.gov
  26. Appendix G to Part 1026 — Open-End Model Forms and Clausesconsumerfinance.gov
  27. Credit Card vs Debit Cardcreditcardvsdebitcard.com
  28. CFPB Laws and Regulations TILAfiles.consumerfinance.gov
  29. Comment for 1005.6 Liability of Consumer for Unauthorized Transfersconsumerfinance.gov
  30. Prepaid rule - files.consumerfinance.gov.files.consumerfinance.gov
  31. Electronic Fund Transfers FAQsconsumerfinance.gov
  32. Virtual Cards: What They Are & How They Protect Your Moneycrabcache.lol
  33. Single-Use Virtual Cards: When to Use Them and When Notmoderninsightdesk.info
  34. How Vendor-Locked Virtual Cards Protect Businesses from Fraudorder.co
  35. New Stealth Magecart Attack Bypasses Payment Services Usinghumansecurity.com
  36. What are one-time-use privacy cards? Explaining the benefits - Blogblog.basistheory.com
  37. Merchant-Locked Cards - Privacysupport.privacy.com
  38. A Fake Payment Page That Reused CSP Trust and Exfiltrated viasourcedefense.com
  39. New Magecart Attack Uses WebRTC to Bypass CSP, Then Tripssourcedefense.com
  40. formjacking - Support Documents and Downloadsdocs.broadcom.com

Cited Brief Tech Desk · Research desk

Investigates consumer hardware, software, apps, AI tools, repairability and internet infrastructure using manufacturer specifications, independent lab benchmarks and pricing records.

How this report was made. Data verified as of , drawing on the 50 sources listed above. Observed official or retail figures are kept separate from analyst forecasts and estimates, and calculations note their baseline assumptions. Read our methodology. Found an error? Tell us and we will fix it.

Charts and tables reflect figures cited in the text, with sources noted beneath each block. Illustrations are editorial artwork, not evidence.

Update history (1 revision)
  • : Maintenance: https image address; tags from the shared list