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.

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 layerChecksWhat is verified with evidence
Checkout & PCI DSS 4.05Every checkout script, CSP header & PHP checkout hook
Gateways & card-testing5Stripe/PayPal webhooks, live/test split & bot limits
Roles & REST / Store API5Shop Manager rights, REST API key scopes & webhooks
Order PII & wc-logs5Blocked wc-logs, HPOS tables & sanitized staging
Extensions & recovery6Commercial plugins, coupon logic & tested order restore
The five store layers and 26 checks that sit on top of a baseline WordPress security audit.

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.

  1. 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.

  2. 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.

  3. 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:

    shell
    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’s functions.php, or an unfamiliar plugin file for manual code review.

  4. 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:

    shell
    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.

  5. 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:

    shell
    ls -la wp-content/themes/*/woocommerce/checkout 2>/dev/null

    Compare 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.

  1. 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-CLI
    wp user list --role__in=administrator,shop_manager --fields=ID,user_login,user_email,roles,user_registered

    Check whether any plugin has granted Shop Managers unfiltered_html, plugin-install, or user-edit capabilities that effectively elevate them to Administrator.

  2. 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-CLI
    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.

  3. 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-CLI
    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.

  4. 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.

  5. 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.

  1. 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:

    shell
    ls -lh wp-content/uploads/wc-logs 2>/dev/null | head -n 20

    Ensure 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.

  2. 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:

    shell
    find . -maxdepth 3 -type f \( -name "*.sql" -o -name "*.sql.gz" -o -name "*.zip" -o -name "*orders*.csv" \) 2>/dev/null

    Any archive reachable over the web containing customer names, addresses, or password hashes should be removed immediately and treated as an exposure check.

  3. 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.

  4. 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.

  5. 05

    Verify production debug output and transactional email hygiene

    Confirm WP_DEBUG_DISPLAY is 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.