Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2016-15042 — Scanner and two-stage exploit for CVE-2016-15042, an unauthenticated arbitrary file upload to RCE in N-Media WordPress plugins, verified via uploaded PHP token echo. | Kitploit
Tools/GitHubGitHub/jonathan1010/cve-2016-15042
ReconnaissanceVulnerability ScannersWeb Vulnerability ScannersExploitationWeb Application ExploitationPenetration TestingRemote Access ToolPayload Development
GitHubjonathan1010/cve-2016-15042

CVE-2016-15042

Scanner and two-stage exploit for CVE-2016-15042, an unauthenticated arbitrary file upload to RCE in N-Media WordPress plugins, verified via uploaded PHP token echo.

Dec 4, 2026Not yet reviewed
Share
View Repository

CVE-2016-15042 - WordPress Frontend File Manager < 4.0 & N-Media Post Frontend < 1.1 - Arbitrary File Upload

FieldValue
CVECVE-2016-15042
Severitycritical
CVSS9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
CWECWE-434 (Unrestricted Upload of File with Dangerous Type)
AffectedFrontend File Manager (nm_filemanager) < 4.0; N-Media Post Front-end Form (nmedia-user-file-uploader) < 1.1
Fixed inFrontend File Manager 4.0 (2016-09-24); N-Media Post Front-end Form 1.1 (2016-10-08)
ClassUnauthenticated arbitrary file upload leading to RCE
RuntimePython 3.8+, stdlib only

Summary

Both N-Media WordPress plugins expose their upload_file() handler through /wp-admin/admin-ajax.php without file-type validation, so an unauthenticated attacker can drop a .php file into the uploads directory and execute it with the next GET. The scanner replays the Nuclei two-request flow (multipart POST upload, then GET of the stored file) and proves execution with a 12-char md5 token echoed by the uploaded PHP, distinguishing real execution from plain reflection.

Description

The Frontend File Manager plugin (<4.0) and N-Media Post Front-end Form plugin (<1.1) for WordPress were vulnerable to arbitrary file uploads due to missing file type validation. This allowed unauthenticated attackers to upload arbitrary files and potentially achieve remote code execution.

The plugins call their own upload_file() from the admin-ajax action, and because wp_check_filetype() returns an empty extension for files outside the default whitelist, the plugins' own extension check treats the empty value as "allowed" and stores the raw .php file.

Detection model

  • POST /wp-admin/admin-ajax.php multipart, action=nm_postfront_upload_file, fields name=.php and file=.php whose content is <?php echo '<token>'; ?>.
  • Variant matcher (condition: and): HTTP 200 on the POST, POST body contains the uploaded filename and the word "file_name" (the plugin's JSON upload record).
  • Follow-up GET /wp-content/uploads/post_files/.php must return 200 and the body must contain the token (the PHP executed, not echoed verbatim).
  • Same two-step flow repeated with action=nm_filemanager_upload_file against /wp-content/uploads/user_uploads/ if the first variant does not match (template flow: http(1) || http(2)).
  • Token: 12-char md5 over "|CVE-2016-15042"; it is both the filename stem and the PHP echo value, so only a real PHP execution reproduces it.

Usage

Scanner (URL file + threads + CSV, streamed rows, JSON sidecar):

python3 scanner/CVE-2016-15042/scanner.py urls.txt 4 out.csv
python3 scanner/CVE-2016-15042/scanner.py urls.txt 4 out.csv --json out.json

URL file format: one target per line, # comments allowed, scheme-less hosts get http:// prepended automatically.

python3 exploit/CVE-2016-15042/exploit.py http://target.example
python3 exploit/CVE-2016-15042/exploit.py http://target.example --csv e.csv --json e.json --verbose

Example scanner output

RCE POC SUITE
 scanner : CVE-2016-15042 v1.0.0 (Frontend File Manager < 4.0, N-Media Post Front-end Form < 1.1)
 endpoint: POST /wp-admin/admin-ajax.php action=nm_postfront_upload_file|nm_filemanager_upload_file then GET the stored .php under /wp-content/uploads/
 matchers: status 200 AND POST body contains filename + word 'file_name' AND stored file echoes the token (and)
 threads : 4 | csv: /home/debian/.hermes/cache/scratch/s15042.csv | json: /home/debian/.hermes/cache/scratch/s15042.json
[2026-12-03 15:56:33] loaded 1 target(s) from /home/debian/.hermes/cache/scratch/u15042.txt
[2026-12-03 15:56:35] summary total=1 answered=1 vulnerable=0 errors=0
[2026-12-03 15:56:35] timing wall=1607ms avg=1606ms max=1606ms
[2026-12-03 15:56:35] wrote /home/debian/.hermes/cache/scratch/s15042.csv (1 row(s)) and /home/debian/.hermes/cache/scratch/s15042.json

Scanner report columns

ColumnMeaning
n1-based row number
urltarget as provided (scheme auto-prepended if missing)
statusok or error (did the AJAX POST answer at all)
vulnerableTrue when the upload+echo chain matched for either plugin variant
elapsed_msper-target wall time
token12-char md5 used as filename stem and PHP echo value
result_b64base64(JSON) full per-target details (per-variant POST/GET evidence)

Files

  • scanner/CVE-2016-15042/scanner.py - batch black-box scanner, streamed CSV + JSON sidecar
  • exploit/CVE-2016-15042/exploit.py - single-target two-stage POC with numbered checks
  • scanner/CVE-2016-15042/README.md - this file
  • scanner/CVE-2016-15042/DESCRIPTION.md - architecture, probe plan, token scheme, contracts

Exit codes

CodeMeaning
0at least one target (scanner) / the target (exploit) is vulnerable
2no vulnerable target found or verification failed

References

  • Nuclei template: http/cves/2016/CVE-2016-15042.yaml
  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2016-15042
  • Advisory: https://www.pluginvulnerabilities.com/2016-09-19/arbitrary-file-upload-vulnerability-in-front-end-file-upload-and-manager-plugin/
  • Advisory: https://www.pluginvulnerabilities.com/2016-09-19/arbitrary-file-upload-vulnerability-in-n-media-post-front-end-form/

Exploit

If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RWJ

Download Tool

Related Tools

  • amass

    In-depth attack surface mapping and asset discovery

  • subfinder

    Fast passive subdomain enumeration tool.

  • reconftw

    reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    721
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    535
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    419

Explore all tools

Browse our collection of tools

View all tools →