Skip to main content

CVE-2024-3216: WooCommerce PDF Invoices Auth Bypass Flaw

CVE-2024-3216 is an authentication bypass vulnerability in WooCommerce PDF Invoices plugin that allows unauthenticated attackers to reset plugin settings. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-3216 Overview

CVE-2024-3216 affects the WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels plugin for WordPress developed by Webtoffee. The vulnerability stems from a missing capability check on the wt_pklist_reset_settings() function. Unauthenticated attackers can send a crafted request to reset all plugin settings, affecting invoice generation, packing slip configuration, and shipping label workflows for WooCommerce stores. All versions up to and including 4.4.2 are vulnerable. The flaw is categorized under CWE-862 (Missing Authorization).

Critical Impact

Unauthenticated remote attackers can reset all plugin settings on affected WordPress sites, disrupting WooCommerce invoice, packing slip, and shipping label operations.

Affected Products

  • Webtoffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels plugin versions up to and including 4.4.2
  • WordPress sites running the vulnerable plugin with WooCommerce
  • E-commerce environments depending on the plugin for order fulfillment documentation

Discovery Timeline

  • 2024-04-06 - CVE-2024-3216 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-3216

Vulnerability Analysis

The vulnerability resides in the wt_pklist_reset_settings() function within the plugin's admin class file class-wf-woocommerce-packing-list-admin.php. The function executes a settings reset routine without validating the capabilities of the requester. WordPress exposes admin-related AJAX endpoints at /wp-admin/admin-ajax.php, which are reachable without authentication when the handler does not enforce current_user_can() checks or verify a valid nonce.

An attacker needs only to issue an HTTP request targeting the vulnerable action. Because the handler fails to confirm that the caller holds manage_options or an equivalent administrative capability, the reset operation proceeds for any requester. The impact is limited to integrity of plugin configuration; confidentiality and availability of the broader WordPress site are not directly affected.

Root Cause

The root cause is a missing authorization check [CWE-862]. The wt_pklist_reset_settings() function was registered as an accessible action handler without a corresponding capability verification or nonce validation. See the WordPress Plugin Code Review for the vulnerable code path.

Attack Vector

Exploitation occurs over the network with no authentication and no user interaction. An attacker sends a single HTTP POST request to the WordPress AJAX endpoint, invoking the vulnerable action. The server executes the reset function and restores plugin settings to defaults. Repeated requests can be used to continuously disrupt plugin configuration until the vulnerability is patched. Refer to the Wordfence Vulnerability Report for additional context.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2024-3216

Indicators of Compromise

  • Unexpected restoration of plugin settings to default values without administrator action
  • HTTP POST requests to /wp-admin/admin-ajax.php referencing wt_pklist_reset_settings or related plugin action names from unauthenticated sources
  • Loss of custom invoice templates, numbering sequences, or shipping label configurations
  • WooCommerce order documentation reverting to vendor defaults across the store

Detection Strategies

  • Audit web server access logs for POST requests to admin-ajax.php containing the wt_pklist_reset_settings action parameter
  • Correlate plugin settings change events in the WordPress database with authenticated administrator sessions to identify unauthorized resets
  • Monitor requests to admin-ajax.php originating from IP addresses that lack a prior authenticated session cookie

Monitoring Recommendations

  • Enable WordPress audit logging to capture changes to plugin options and settings tables
  • Alert on anomalous rates of unauthenticated requests to wp-admin/admin-ajax.php
  • Track the installed version of the WooCommerce PDF Invoices plugin across managed WordPress sites to confirm all instances exceed 4.4.2

How to Mitigate CVE-2024-3216

Immediate Actions Required

  • Update the WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels plugin to a version later than 4.4.2
  • Back up current plugin settings and WooCommerce configuration before applying the update
  • Review recent plugin settings changes to identify any unauthorized resets that may have already occurred
  • Restrict access to /wp-admin/admin-ajax.php at the web application firewall layer where feasible

Patch Information

Webtoffee addressed the missing authorization check in versions following 4.4.2. Administrators should install the latest available release of the plugin from the WordPress plugin repository. Verify the patched version adds a current_user_can() capability check and nonce validation to wt_pklist_reset_settings() before the reset logic executes. Consult the Wordfence Vulnerability Report for patch confirmation details.

Workarounds

  • Deploy a web application firewall rule that blocks unauthenticated POST requests containing the wt_pklist_reset_settings action parameter
  • Temporarily deactivate the plugin on production sites until the patched version is installed if update deployment is delayed
  • Restrict /wp-admin/ access to known administrator IP ranges via server configuration where operationally viable
bash
# Example WAF rule (ModSecurity) blocking the vulnerable action
SecRule REQUEST_URI "@contains /wp-admin/admin-ajax.php" \
    "chain,deny,status:403,id:1002024321,msg:'Block CVE-2024-3216 exploit attempt'"
    SecRule ARGS:action "@streq wt_pklist_reset_settings" \
        "chain"
        SecRule &REQUEST_COOKIES:/wordpress_logged_in_/ "@eq 0"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.