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-13520 Overview
CVE-2024-13520 affects the Gift Cards (Gift Vouchers and Packages) WooCommerce-supported plugin for WordPress, developed by Codemenschen. The plugin fails to perform capability checks on three AJAX functions: update_voucher_price, update_voucher_date, and update_voucher_note. Unauthenticated attackers can modify the monetary value, expiration date, and user notes of any gift voucher stored by the plugin. All versions up to and including 4.4.9 are affected. The weakness is classified as Missing Authorization [CWE-862].
Critical Impact
Unauthenticated attackers can tamper with gift voucher values and metadata, enabling fraud against WooCommerce merchants using the plugin.
Affected Products
- Codemenschen Gift Vouchers plugin for WordPress, versions <= 4.4.9
- WooCommerce stores integrating the Gift Vouchers plugin
- WordPress sites using the plugin's voucher management AJAX endpoints
Discovery Timeline
- 2025-02-20 - CVE-2024-13520 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-13520
Vulnerability Analysis
The plugin exposes three AJAX actions that modify gift voucher records: update_voucher_price, update_voucher_date, and update_voucher_note. Each handler is registered without verifying that the request originates from a privileged user. The functions skip current_user_can() checks and omit nonce validation that would otherwise bind the request to an authenticated session.
As a result, any remote actor can issue a crafted HTTP POST request to admin-ajax.php and alter voucher data belonging to any customer or merchant. The impact is limited to integrity of voucher data, with no direct confidentiality or availability consequences. Attackers can inflate voucher balances, extend expired vouchers, or append arbitrary notes to voucher records.
Root Cause
The root cause is a missing authorization control [CWE-862] on sensitive state-changing operations. WordPress plugins must gate privileged AJAX handlers with both a capability check (for example, current_user_can('manage_woocommerce')) and a nonce verification using check_ajax_referer(). The affected handlers register under wp_ajax_nopriv_ hooks or lack any capability gate, so unauthenticated requests are accepted and processed.
Attack Vector
Exploitation is remote and does not require authentication or user interaction. An attacker sends an HTTP POST request to the WordPress AJAX endpoint specifying one of the vulnerable actions along with a voucher identifier and the desired new value, date, or note. The server updates the targeted voucher record without validating the caller's identity or privileges. See the Wordfence Vulnerability Report and the WordPress Plugin Changeset for the corrective code.
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 AttacksDetection Methods for CVE-2024-13520
Indicators of Compromise
- Unexpected changes to voucher price, expiration_date, or note fields in the plugin's database tables.
- POST requests to /wp-admin/admin-ajax.php with action=update_voucher_price, update_voucher_date, or update_voucher_note originating from unauthenticated sessions.
- WooCommerce order anomalies where redeemed voucher values exceed original issued amounts.
Detection Strategies
- Review web server access logs for POST requests to admin-ajax.php referencing the three vulnerable action names without an associated authenticated session cookie.
- Enable database auditing on the voucher storage tables and alert on updates occurring outside administrator sessions.
- Correlate WooCommerce order activity with voucher modification timestamps to surface tampering before redemption.
Monitoring Recommendations
- Forward WordPress and web server logs to a centralized logging platform for query-based hunting.
- Deploy a web application firewall rule to log and inspect requests to the affected AJAX actions.
- Schedule periodic integrity checks that compare current voucher balances against issuance records.
How to Mitigate CVE-2024-13520
Immediate Actions Required
- Upgrade the Gift Vouchers plugin to a version later than 4.4.9 that includes the fix from changeset 3246800.
- Audit all gift voucher records for unauthorized price, date, or note modifications since plugin installation.
- Temporarily disable the plugin on affected sites if an immediate upgrade is not possible.
Patch Information
The vendor addressed the issue in the plugin changeset published at plugins.trac.wordpress.org/changeset/3246800. The patch introduces capability checks on the update_voucher_price, update_voucher_date, and update_voucher_note handlers. Site administrators should update through the WordPress plugin dashboard to any version above 4.4.9.
Workarounds
- Block external requests to admin-ajax.php where the action parameter matches the three vulnerable function names using a WAF rule.
- Restrict access to the WordPress admin directory to trusted IP ranges where operationally feasible.
- Deactivate the plugin until the patched version can be deployed and validated in staging.
# Example WAF rule (ModSecurity) to block unauthenticated access to vulnerable AJAX actions
SecRule REQUEST_URI "@contains /wp-admin/admin-ajax.php" \
"chain,phase:2,deny,status:403,id:1013520,msg:'Block CVE-2024-13520 voucher tampering'"
SecRule ARGS:action "@rx ^(update_voucher_price|update_voucher_date|update_voucher_note)$" \
"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

