Skip to main content
Vulnerability Database/CVE-2024-12266

CVE-2024-12266: ELEX WooCommerce Auth Bypass Vulnerability

CVE-2024-12266 is an authentication bypass flaw in ELEX WooCommerce Dynamic Pricing and Discounts plugin allowing unauthenticated attackers to access sensitive data. This post 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-12266 Overview

CVE-2024-12266 affects the ELEX WooCommerce Dynamic Pricing and Discounts plugin for WordPress in all versions up to and including 2.1.7. The plugin exposes two administrative functions, elex_dp_export_rules() and elex_dp_import_rules(), without any capability check. Unauthenticated attackers can reach these endpoints to export or import product pricing rules and retrieve phpinfo() output. The flaw is tracked under CWE-862: Missing Authorization and reported through the Wordfence Vulnerability Report.

Critical Impact

Unauthenticated attackers can import or export WooCommerce pricing rules and extract phpinfo() details that aid further exploitation of the host.

Affected Products

  • ELEX WooCommerce Dynamic Pricing and Discounts plugin for WordPress
  • All versions up to and including 2.1.7
  • WordPress sites running WooCommerce with the vulnerable plugin enabled

Discovery Timeline

  • 2024-12-24 - CVE-2024-12266 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-12266

Vulnerability Analysis

The plugin registers two administrative handlers that manage pricing rule import and export workflows. Both elex_dp_export_rules() and elex_dp_import_rules() run without verifying the caller's WordPress capabilities or validating a nonce. As a result, any unauthenticated HTTP request to the exposed admin endpoints is processed as if issued by an administrator.

The export routine returns the configured pricing rules to the requester, exposing merchant business logic and discount configurations. The import routine accepts attacker-supplied rule data and persists it to the WordPress options store, letting attackers overwrite pricing on live stores. The affected code paths are visible in the WordPress Elex Exporter Code and WordPress Elex Importer Code.

The export path additionally invokes phpinfo(), disclosing server configuration, installed modules, environment variables, and loaded extensions to the unauthenticated caller.

Root Cause

The root cause is a missing authorization check on administrative plugin functions. Neither current_user_can() nor check_admin_referer() is called before the import or export logic executes. WordPress plugin guidance requires capability enforcement on any state-changing or data-exposing admin action.

Attack Vector

Exploitation requires only network access to the WordPress site hosting the vulnerable plugin. An attacker issues a crafted HTTP request to the admin endpoints that invoke the vulnerable functions. No authentication, user interaction, or elevated privileges are required. See the WordPress Code Changeset Details for the vendor fix.

The vulnerability is described in prose because no verified public proof-of-concept code is available. Review the WordPress Code Changeset File Update for the second patched file.

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-12266

Indicators of Compromise

  • Unexpected HTTP requests to admin endpoints associated with elex-exporter.php or elex-importer.php from unauthenticated clients.
  • Response bodies containing phpinfo() output served from the WordPress admin surface.
  • Unauthorized modifications to WooCommerce dynamic pricing rules or discount configurations in the database.
  • WordPress options tables showing imported rule sets that administrators did not create.

Detection Strategies

  • Review web server access logs for POST or GET requests targeting the ELEX plugin's admin files without a valid authenticated session.
  • Monitor WordPress audit logs for pricing rule changes that lack a corresponding administrator login event.
  • Alert on outbound responses whose size suggests phpinfo() disclosure from /wp-admin paths.

Monitoring Recommendations

  • Enable a Web Application Firewall rule set that blocks unauthenticated access to the vulnerable endpoints.
  • Track plugin version inventory across all WordPress sites to identify instances running 2.1.7 or earlier.
  • Correlate WooCommerce order and pricing anomalies with plugin administrative events in a centralized SIEM.

How to Mitigate CVE-2024-12266

Immediate Actions Required

  • Update the ELEX WooCommerce Dynamic Pricing and Discounts plugin to the version released after 2.1.7.
  • If an immediate patch is not possible, deactivate and remove the plugin from the WordPress installation.
  • Audit WooCommerce pricing rules for unauthorized modifications introduced before patching.
  • Rotate any sensitive credentials visible through server phpinfo() output, including API keys stored in environment variables.

Patch Information

The vendor addressed the issue in a release following 2.1.7. The fix adds capability and nonce checks to the import and export handlers. See the vendor commit in the WordPress Code Changeset Details.

Workarounds

  • Restrict access to /wp-admin/admin.php endpoints associated with the plugin at the web server or WAF layer.
  • Deny public access to elex-exporter.php and elex-importer.php within the plugin's admin/ directory.
  • Disable the plugin until the patched release can be installed.
bash
# Example nginx rule to block direct access to the vulnerable plugin files
location ~* /wp-content/plugins/elex-woocommerce-dynamic-pricing-and-discounts/admin/(elex-exporter|elex-importer)\.php$ {
    deny all;
    return 403;
}

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.