Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
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
工具/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.

查看仓库
2026年12月4日尚未审核
内容在请求的语言中不可用。显示英文版本。

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

下载工具

相关工具

  • amass

    深度攻击面映射与资产发现

  • subfinder

    快速被动子域名枚举工具。

  • reconftw

    reconFTW 是一款旨在通过对目标域运行最佳工具集以执行扫描和发现漏洞的自动侦察工具。

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    Callisto

    jetp1ane/callisto

    自动化二进制漏洞分析工具,通过Ghidra反编译可执行文件,使用Semgrep扫描伪C代码,并利用GPT-3.5-Turbo验证发现以减少误报。

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    针对 CVE-2026-43499 的一键式 Android 内核漏洞利用应用,通过内核模块加载实现权限提升,并提供偏移提取与设备端分析工具。

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher 平台,可部署伪基站 GSM 小区以拦截短信、注入消息并追踪移动设备

    721
  • 4

    opencti

    opencti-platform/opencti

    开放式网络威胁情报平台

    535
  • 5

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    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

探索所有工具

浏览我们的工具集合

查看所有工具 →