Guides · ← All guides
Ecommerce Website Security: The Exposures That Put Your Checkout at Risk
Published: November 14, 2026 · Last reviewed: November 14, 2026 · 8 min read
Run a free BreachHunter assessment on your site →
Card skimming (the Magecart pattern) taught the industry the store-specific lesson: attackers do not need your payment processor — they need one script slot on your checkout page, reached through an unpatched plugin, a compromised third-party tag, or a stolen admin session. The external assessment cannot see your tag manager's internals, but it grades every precondition that makes skimming and its cousins possible.
This guide maps the scanner's check classes onto store reality: the checkout page's headers and mixed content, the admin panel that runs the store, the database exposures that hold order data, the TLS posture under PCI's quarterly-scan requirement, and the third-party script hygiene that CSP exists to govern.
Skimming math: why CSP and admin security are checkout controls
A skimmer is just a script that reads payment fields and phones home. It arrives through three doors an assessment touches: the store's admin panel (a hijacked admin injects it in minutes — hence MFA and limiting per the panel guide); a vulnerable plugin or theme (the version-disclosure and update problem); and third-party scripts already legitimately on the page that get compromised upstream. CSP is the control that speaks to the third door and audits the second: a policy that allow-lists script sources makes an injected foreign script — the skimmer's phone-home — fail to load or fail to send.
PCI ties the bow: stores handling cards sit under PCI DSS, which since 2018 demands TLS 1.2+ (the obsolete-protocol finding is a compliance defect, not a preference) and quarterly external vulnerability scans by an approved vendor for in-scope systems. Your assessment cadence is thus not a marketing choice; for many stores it is a written obligation your acquirer can ask you to evidence — the store version of the questionnaire problem in the SaaS guide.
The data exposures: backups, dumps and the database port
Order data is the store's crown jewels, and the sensitive-path family reads like a store-robbery catalog: the backup archive with the full store, the SQL dump with every order (names, addresses, purchase histories), the database port answering the internet directly, the phpMyAdmin door in front of it. Each of these is rated HIGH or CRITICAL in the table without any reference to payments — on a store their contents add personal-data breach obligations to the security failure.
Mixed content deserves a store-specific mention too: the checkout page that pulls an image or a widget over HTTP breaks the padlock on the exact page where the padlock is doing commercial work, and active mixed content on checkout is worse — a script slot an attacker can rewrite in transit is a skimmer delivered by the network. The cleanup order in the mixed content guide starts with checkout pages for stores, not the blog archive.
Worked example: alderandoak.example
Alder & Oak, a furniture store selling online and in person, ran its first assessment after its payment processor's quarterly compliance scan flagged TLS issues. The BreachHunter report widened the picture from the processor's two findings to the store's actual posture:
Store assessment highlights: alderandoak.example TLS 1.0/1.1 accepted (PCI defect) No CSP on checkout (skimming layer absent) /backup.sql -> 200 38,400 orders in the dump Mixed content: 3 resources on /checkout (1 script, HTTP)
The dump was the emergency: deleted within the hour, database credentials rotated, and the exposure assessed with counsel (the file's access logs showed scanner probes but no confirmed full download — logged, documented, and the store's backup practice rebuilt into private storage). TLS was restricted to 1.2+, the mixed-content script moved to its HTTPS endpoint, and a report-only CSP week began the anti-skimming rollout. The processor's next quarterly scan passed, and the store's own cadence — monthly external scans, CSP reports reviewed — is now the control that keeps “store security” from being an annual surprise.
The five actions to take
A store's assessment triage, in money order:
- Kill data exposures first: backup archives, SQL dumps, public database ports and database panels — rotate what they contained.
- Fix checkout TLS: 1.2+ only, valid matching certificate, HSTS on — and keep the quarterly compliance scan green.
- Clear mixed content on checkout and account pages before anywhere else.
- Roll out CSP report-only, inventory every third-party script on payment pages, then enforce an allow-list.
- Lock the admin: MFA, limiting, and a plugin/theme inventory with automatic updates — the skimmer's favorite doors.
Run a free BreachHunter assessment on your site →
Frequently asked questions
Our payments run through a hosted processor. Are we still in skimming scope?
Yes — the skimmer does not need your processor; it reads the card fields on your page (or your hosted fields' surrounding page) before the processor is involved. Hosted payment reduces your PCI scope; it does not remove your page from the attack. CSP and tag hygiene remain yours.
Does PCI really require quarterly scans?
PCI DSS requires quarterly external vulnerability scans by an Approved Scanning Vendor for in-scope internet-facing systems, plus scans after significant changes. A BreachHunter-style assessment is the same discipline on the same cadence — many stores run their own scans monthly so the quarterly ASV scan holds no surprises.
Which third-party scripts should a store worry about most?
Any script executing on checkout or account pages: analytics, chat widgets, review badges, A/B tools. Each is a supply-chain trust decision. Inventory them, prefer tag-manager governance with approvals, and let CSP's allow-list be the enforced record of what is permitted to run.
A backup.sql was exposed but logs show no download. Are we fine?
You are luckier than the alternative, and the correct actions barely change: remove, rotate, document the log review, and rebuild the backup practice. “No evidence of download” from your own logs is a finding to record, not a proof — logs have gaps, and the rotation is cheap beside the doubt.
How often should a store scan?
Monthly external assessments, after every platform/plugin change of consequence, and aligned so a clean self-scan lands just before each quarterly compliance scan. Stores change fast — products, plugins, campaigns — and the scan cadence should match the change cadence.