Checklist · WooCommerce audit
WooCommerce security audit checklist: step-by-step guide
A WooCommerce store carries risks an ordinary WordPress checklist does not touch: payment-page scripts, hosted gateway webhooks, card-testing bots, REST API keys, Shop Manager roles, and customer personal data in order tables and logs. This step-by-step WooCommerce security audit checklist covers 26 concrete checks across five store layers — with read-only commands you can run against a live or staging store without interrupting checkout.
Published Last reviewed
- Scope
- 26 WooCommerce-specific checks across five store layers
- Safety
- Every command below is read-only and safe to inspect on staging or off-peak
- PCI DSS 4.0
- Includes checkout-script and integrity checks aligned with Req. 6.4.3 & 11.6.1
- Foundation
- Run alongside the 31-point WordPress security audit checklist
How to use it
Audit the store with evidence, without touching live orders
Every check below is designed to produce evidence — a browser network list, a WP-CLI table, or a file-permission output — rather than a guess. Run file and database inspections on a staging clone or during a quiet trading window, and never type a real customer card number while testing checkout.
This guide focuses on the e-commerce layers specific to WooCommerce. Pair it with the baseline WordPress security audit checklist for core integrity, hosting isolation, SSH access, and server patching.
Figure 1 · Five store-specific audit layers
Twenty-six WooCommerce checks beyond a baseline WordPress audit.
| Store layer | Checks | What is verified with evidence |
|---|---|---|
| Checkout & PCI DSS 4.0 | 5 | Every checkout script, CSP header & PHP checkout hook |
| Gateways & card-testing | 5 | Stripe/PayPal webhooks, live/test split & bot limits |
| Roles & REST / Store API | 5 | Shop Manager rights, REST API key scopes & webhooks |
| Order PII & wc-logs | 5 | Blocked wc-logs, HPOS tables & sanitized staging |
| Extensions & recovery | 6 | Commercial plugins, coupon logic & tested order restore |
Layer 1 · Checkout & PCI DSS 4.0
Checkout scripts, payment hooks, and PCI DSS v4.0 (6.4.3 & 11.6.1)
Hosted payment fields (Stripe Elements, PayPal iframes) keep raw card numbers off your server, but attackers target the surrounding checkout DOM and server-side checkout hooks. PCI DSS v4.0 Requirements 6.4.3 and 11.6.1 require knowing and authorizing every script on payment pages.
- 01
Inventory every script domain loaded on checkout (logged out)
Open your checkout and order-pay pages in a clean private window, logged out, on both desktop and mobile. Filter the browser Network tab by JS and record every third-party host. Strip marketing pixels, heatmaps, and chat widgets that have no business running on payment pages.
- 02
Verify hosted payment fields sit inside the gateway’s own iframe
Inspect the card-number input in browser DevTools. Confirm it renders inside an iframe served from your payment provider’s domain (for example js.stripe.com or paypal.com) and that no second or fallback card form appears in your page HTML.
- 03
List every PHP callback hooked into WooCommerce checkout actions
Run a read-only search across wp-content (excluding WooCommerce core) so every plugin or theme file running code during checkout is accounted for:
grep -rnE "add_(action|filter)\(\s*['\"](woocommerce_(before_checkout_form|after_checkout_form|checkout_process|checkout_order_processed|payment_complete)|woocommerce_store_api_checkout_order_processed)['\"]" wp-content --include='*.php' | grep -v '^wp-content/plugins/woocommerce/'Flag any callback inside
wp-content/mu-plugins, a child theme’sfunctions.php, or an unfamiliar plugin file for manual code review. - 04
Check checkout Content-Security-Policy (CSP) and HTTPS enforcement
Inspect HTTP response headers on /checkout/ and confirm HSTS is enabled, no mixed content loads, and a CSP restricts script-src and form-action to attributable domains:
curl -sI https://example.com/checkout/ | grep -iE "^(strict-transport-security|content-security-policy|x-frame-options|x-content-type-options):"Test a new CSP in Content-Security-Policy-Report-Only mode first so you do not block your own payment gateway scripts.
- 05
Check template overrides in your active theme
Outdated or altered WooCommerce template overrides inside your theme can reintroduce patched vulnerabilities or hide injected markup:
ls -la wp-content/themes/*/woocommerce/checkout 2>/dev/nullCompare any file found against the matching version inside wp-content/plugins/woocommerce/templates/checkout/.
Layer 2 · Gateways & Card-Testing
Payment gateways, webhook secrets, and card-testing defense
Automated carding bots probe WooCommerce stores daily using stolen card lists, triggering gateway chargebacks, processor fees, and sudden account holds.
- Every active payment gateway (Stripe, PayPal, Klarna, Square, Authorize.net) is on a current, vendor-supported release and unused gateways are disabled and removed
- Live vs. test mode keys are cleanly separated, and production gateway keys are never copied onto staging or local developer environments
- Webhook endpoints enforce cryptographic signature verification (for example Stripe webhook signing secrets) so forged payment-succeeded calls cannot mark unpaid orders as paid
- Checkout and Store API order-creation endpoints have rate limiting and bot mitigation (Cloudflare WAF rules, Turnstile, or gateway fraud screening) to stop rapid card-testing bursts
- Guest checkout, failed-order volume, and unusually high small-item decline spikes trigger operational alerts so carding attacks are caught in minutes rather than days
Layer 3 · Roles & APIs
Shop Managers, customer accounts, and WooCommerce REST / Store API keys
Store staff, agencies, shipping apps, and ERP connectors accumulate high-privilege credentials over years of operation — and rarely clean them up when a tool is replaced.
- 01
Audit Administrators and Shop Managers against current staff
List every privileged WordPress and WooCommerce account and confirm each belongs to a named, active person with two-factor authentication enabled:
wp user list --role__in=administrator,shop_manager --fields=ID,user_login,user_email,roles,user_registeredCheck whether any plugin has granted Shop Managers unfiltered_html, plugin-install, or user-edit capabilities that effectively elevate them to Administrator.
- 02
Inventory every WooCommerce REST API key and its permission scope
Old shipping, accounting, and CRM integrations frequently leave behind Read/Write REST keys that expose every order and customer record:
wp db query "SELECT key_id, user_id, description, permissions, last_access FROM $(wp db prefix)woocommerce_api_keys ORDER BY last_access DESC"Revoke any key whose integration is retired, whose owner cannot be named, or that holds Read/Write access when Read-only is sufficient.
- 03
Review active WooCommerce webhooks and destination URLs
Verify that every registered webhook points to an active service you control and carries a non-empty secret:
wp db query "SELECT webhook_id, name, status, delivery_url, topic FROM $(wp db prefix)wc_webhooks"An unfamiliar delivery_url on order.created or customer.created is a direct data-exfiltration channel.
- 04
Audit Store API and anonymous REST exposure
Verify that /wp-json/wc/store/ and /wp-json/wp/v2/users do not leak customer or administrator details to anonymous visitors, and that custom REST routes check permission_callback properly.
- 05
Rate-limit My Account login, password reset, and XML-RPC
Confirm My Account login and password-reset endpoints enforce brute-force rate limits to prevent customer account takeover, and disable XML-RPC unless an active integration explicitly requires it.
Layer 4 · Customer PII & GDPR
Order data, HPOS tables, wc-logs, and staging exposure
WooCommerce stores personal identifiable information across orders, logs, emails, and exports. Publicly exposed logs and unsanitized staging copies are among the most common real-world GDPR findings.
- 01
Verify wp-content/uploads/wc-logs is blocked from direct web access
WooCommerce and payment gateway debug logs can record billing names, emails, addresses, and full API payloads. Confirm directory listing is off and random log files cannot be fetched over HTTP:
ls -lh wp-content/uploads/wc-logs 2>/dev/null | head -n 20Ensure an index/deny rule blocks direct access at Nginx or Apache level, disable verbose gateway debug logging once troubleshooting finishes, and verify log retention is bounded.
- 02
Check for forgotten CSV exports, SQL dumps, or backup archives in the web root
Order export plugins and hurried migrations often leave downloadable archives inside
wp-content/uploads/or public_html:find . -maxdepth 3 -type f \( -name "*.sql" -o -name "*.sql.gz" -o -name "*.zip" -o -name "*orders*.csv" \) 2>/dev/nullAny archive reachable over the web containing customer names, addresses, or password hashes should be removed immediately and treated as an exposure check.
- 03
Confirm HPOS vs. legacy order table coverage and database privileges
Verify whether the store runs High-Performance Order Storage (wc_orders tables) or legacy postmeta storage, and confirm the database user has privileges limited strictly to that store’s schema.
- 04
Sanitize staging and development copies of customer orders
Confirm staging sites are blocked behind HTTP auth or IP allow-lists, mask or strip production customer PII, and disable live gateway webhooks and outbound customer emails.
- 05
Verify production debug output and transactional email hygiene
Confirm
WP_DEBUG_DISPLAYis false in production, PHP error logs sit outside the public web root, and order emails do not expose sensitive tokens or unnecessary account details.
Layer 5 · Extensions & Recovery
Commercial extensions, store business logic, and order-safe recovery
Stores run heavier extension stacks than standard sites — and losing 24 hours of order rows during a crude backup restore means lost revenue and broken accounting.
- Every paid and free WooCommerce extension (payment, shipping, tax, subscriptions, memberships, page builders) is tracked by version, licensed from its official vendor, and free of nulled copies or known CVEs
- Unused extensions and inactive themes are deleted rather than left deactivated on disk
- PHP runs on an actively supported release, and core/plugin checksums pass without unexplained file modifications
- Coupon stacking, negative-quantity/price tampering, refund permissions, and subscription cancellation or entitlement boundaries have been sanity-checked with a non-admin test account
- Database backups run frequently enough to match order volume (daily at minimum, hourly or point-in-time for busy stores), are stored off-server, and a full restore has been tested on staging — including verifying recent orders and checkout completion
- An incident contact list names who pauses checkout, notifies the payment processor, and investigates if customers report card fraud
When to escalate
Where a self-audit checklist ends and a manual store audit begins
Running these 26 checks yourself will surface the most obvious configuration gaps: stale REST keys, exposed wc-logs, unnecessary checkout tags, and unpatched extensions. That alone puts a store well ahead of most.
Where a checklist cannot go is adversarial validation — confirming whether a custom checkout hook leaks fields, whether a Shop Manager plugin grants hidden privilege escalation, whether a conditional Magecart script fires only for logged-out mobile shoppers, or producing sanitized evidence that a payment acquirer or cyber insurer will accept. That is what the manual WooCommerce security audit service delivers, in 2–4 business days with zero checkout downtime.
Common questions
Common questions about auditing a WooCommerce store
How often should I run a WooCommerce security audit?
Run a quick extension, REST key, and user-role review monthly, and a full checklist or independent manual audit quarterly — plus before peak sales seasons (such as Black Friday), after adding a payment or subscription extension, or after any staff or agency handoff.
Will running these read-only checks break my live checkout?
No. The grep, ls, curl header, and WP-CLI SELECT/list commands in this guide only inspect configuration and files. Avoid toggling live gateway settings, revoking API keys, or enforcing a strict CSP directly on production before checking dependencies on staging.
We use Stripe Elements or PayPal — do we still need to audit checkout scripts?
Yes. Hosted iframes prevent your server from seeing the card number typed inside the iframe, but a compromised checkout page can still overlay a fake card form or skim billing details before the gateway loads. PCI DSS v4.0 Requirements 6.4.3 and 11.6.1 specifically address payment-page script authorization and integrity.
Can a WordPress security plugin like Wordfence replace a WooCommerce security audit?
No. Security plugins monitor file signatures and block known HTTP exploit patterns, but they do not audit your WooCommerce REST API key scopes, webhook signing secrets, coupon or subscription business logic, third-party tag-manager scripts, or whether your backups restore recent orders cleanly.