CVE-2024-12712
Executive Summary
CVE-2024-12712 is a Missing Authorization vulnerability in the Shopping Cart & eCommerce Store WordPress plugin (vendor: Wp easycart), affecting all versions up to and including 5.7.8. The vulnerability resides in the plugin’s webhook function, which fails to perform a capability check before processing requests. This allows unauthenticated attackers to modify order statuses, potentially leading to order manipulation, fraud, and disruption of eCommerce operations. The CVSS v3.1 base score is 5.3 (Medium), with a vector of AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N. No public exploit code or proof-of-concept has been released, and the vendor has not yet provided a patch. The EPSS score is 0.0%, indicating low exploitation likelihood at this time, but the risk remains due to the ease of exploitation (no authentication required).
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability affects a WordPress plugin distributed via the official WordPress plugin repository. Users are advised to monitor the plugin’s update channel and apply any security patches as soon as they become available. Since the plugin is part of the WordPress ecosystem, supply chain risks include compromised plugin updates or malicious forks. Ensure that only signed and verified updates from the official repository are installed.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – Exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): None (N) – No authentication needed.
- User Interaction (UI): None (N) – No user action required.
- Scope (S): Unchanged (U) – Impact confined to the vulnerable component.
- Confidentiality (C): None (N) – No data exposure.
- Integrity (I): Low (L) – Order statuses can be modified, but not arbitrary data.
- Availability (A): None (N) – No denial of service.
Threat Level: Medium. The vulnerability is easy to exploit but has limited impact (only order status modification). However, in eCommerce contexts, this can lead to financial fraud, customer dissatisfaction, and reputational damage.
Deep Dive & Mechanics
The vulnerability exists in the webhook function of the Shopping Cart & eCommerce Store plugin. This function is intended to handle incoming webhook requests (e.g., from payment gateways) to update order statuses. However, the function does not verify that the request originates from an authenticated administrator or a trusted source. Specifically, the code lacks a current_user_can() check or nonce verification, allowing any unauthenticated HTTP request to trigger order status changes.
Root Cause: Missing capability check (CWE-862) in the webhook handler. The function likely uses wp_ajax_nopriv_* or a direct REST endpoint without proper authorization.
Attack Vector: An attacker sends a crafted HTTP POST request to the webhook endpoint (e.g., /wp-json/wp-easycart/v1/webhook or similar) with parameters to change an order’s status (e.g., from “pending” to “completed” or “cancelled”). The plugin processes the request without verifying the sender’s identity.
Impact: Unauthorized modification of order statuses can lead to:
- Fraudulent order completions (goods shipped without payment).
- Order cancellations causing customer disputes.
- Inventory manipulation.
- Loss of trust in the eCommerce platform.
Vulnerable vs. Patched Code
Since no patch is available, the vulnerable code pattern is described below. A patched version would include proper authorization checks.
Vulnerable Code (Conceptual):
// In wp-easycart/webhook-handler.php
function handle_webhook() {
$order_id = $_POST['order_id'];
$new_status = $_POST['status'];
// No capability check!
update_order_status($order_id, $new_status);
wp_die();
}
add_action('wp_ajax_nopriv_webhook', 'handle_webhook');
Patched Code (Expected):
function handle_webhook() {
// Verify nonce or capability
if (!current_user_can('manage_woocommerce') && !wp_verify_nonce($_REQUEST['_wpnonce'], 'webhook_nonce')) {
wp_die('Unauthorized', 403);
}
$order_id = intval($_POST['order_id']);
$new_status = sanitize_text_field($_POST['status']);
update_order_status($order_id, $new_status);
wp_die();
}
add_action('wp_ajax_webhook', 'handle_webhook'); // Only for authenticated users
Exploitation & Lab Setup
Red Team (Attack Simulation)
Prerequisites:
- Target WordPress site with the vulnerable plugin (<=5.7.8).
- Knowledge of the webhook endpoint (e.g., via plugin source code or fuzzing).
Exploitation Steps:
- Identify the webhook endpoint. Common patterns:
/wp-json/wp-easycart/v1/webhookor/wp-admin/admin-ajax.php?action=webhook. - Send a POST request with order ID and desired status.
Example cURL command:
curl -X POST https://target-site.com/wp-admin/admin-ajax.php \
-d "action=webhook&order_id=123&status=completed"
Expected Result: Order #123 status changes to “completed” without authentication.
Blue Team (Defense & Detection)
Detection:
- Monitor for unusual POST requests to
admin-ajax.phpwithaction=webhookfrom unauthenticated sources. - Alert on rapid order status changes (e.g., multiple orders changed in short time).
- Use Web Application Firewall (WAF) rules to block requests to known vulnerable endpoints without valid nonces.
Mitigation:
- Disable the webhook functionality if not used.
- Implement IP whitelisting for webhook endpoints.
- Apply virtual patching via WAF until official patch is released.
Indicators of Compromise (IOCs)
- Network IOCs:
- POST requests to
/wp-admin/admin-ajax.phpwithaction=webhookparameter. - Requests containing
order_idandstatusparameters without a valid nonce.
- POST requests to
- Log IOCs:
- WordPress debug log entries showing unauthorized access to webhook action.
- Sudden changes in order statuses without corresponding payment or admin action.
- File IOCs:
- Modified plugin files (if attacker uploads malicious version).
- Suspicious entries in
.htaccessorwp-config.php(unlikely for this CVE).
Detection Engineering
YARA Rule
rule CVE_2024_12712_Webhook_Exploit {
meta:
description = "Detects exploitation attempts of CVE-2024-12712 in WordPress wp-easycart plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-12712"
strings:
$webhook_action = "action=webhook"
$order_id = "order_id="
$status_param = "status="
condition:
all of them
}
Sigma Rule
title: CVE-2024-12712 WordPress wp-easycart Webhook Exploitation
id: 8a9b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects unauthenticated POST requests to admin-ajax.php with webhook action, indicating exploitation of CVE-2024-12712.
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: access
detection:
selection:
cs-method: POST
cs-uri-query|contains: 'action=webhook'
cs-uri-query|contains: 'order_id='
cs-uri-query|contains: 'status='
condition: selection
falsepositives:
- Legitimate webhook calls from payment gateways (if IP whitelisted)
level: high
Suricata Rule
alert http any any -> $EXTERNAL_NET any (
msg:"CVE-2024-12712 WordPress wp-easycart Webhook Exploitation Attempt";
flow:to_server,established;
content:"POST"; http_method;
content:"admin-ajax.php"; http_uri;
content:"action=webhook"; http_client_body;
content:"order_id="; http_client_body;
content:"status="; http_client_body;
classtype:attempted-admin;
sid:10000001;
rev:1;
reference:cve,2024-12712;
)
Remediation & Mitigation
Immediate Actions:
- Disable the webhook functionality if not required: Remove or comment out the
add_action('wp_ajax_nopriv_webhook', ...)line in the plugin code. - Implement IP whitelisting for the webhook endpoint (e.g., via
.htaccessor WAF). - Monitor order status changes and set up alerts for anomalies.
Long-term Fix:
- Apply the official patch once released by the vendor.
- Upgrade to a patched version (currently none available).
- Consider replacing the plugin with a more secure alternative if no patch is forthcoming.
Workaround:
- Use a WordPress security plugin (e.g., Wordfence) to add virtual patching or block unauthenticated access to
admin-ajax.phpwith specific actions.
Valters IT
Securing Digital Frontiers
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.