Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
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
Outils/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.

4 déc. 2026Pas encore vérifié
Partager
Voir le dépôt
Contenu non disponible dans la langue demandée. Affichage de la version anglaise.

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

Télécharger l’outil

Outils similaires

  • amass

    Cartographie approfondie de la surface d'attaque et découverte d'actifs

  • subfinder

    Outil rapide d'énumération passive de sous-domaines.

  • reconftw

    reconFTW est un outil conçu pour effectuer des reconnaissances automatisées sur un domaine cible en exécutant le meilleur ensemble d'outils pour réaliser des scans et découvrir des vulnérabilités.

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

  • 1

    Callisto

    jetp1ane/callisto

    Outil automatisé d'analyse de vulnérabilités binaires qui décompile des exécutables via Ghidra, analyse du pseudo-code C avec Semgrep, et valide les résultats en utilisant GPT-3.5-Turbo pour réduire les faux positifs.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Application d'exécution en un clic GhostLock (CVE-2026-43499)

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    Plateforme IMSI Catcher qui déploie une cellule GSM frauduleuse pour intercepter les SMS, injecter des messages et suivre les appareils mobiles

    721
  • 4

    opencti

    opencti-platform/opencti

    Plateforme ouverte de renseignement sur les cybermenaces

    535
  • 5

    ARTEX

    baarai/artex

    Plateforme autonome de tests d'intrusion multi-agents basée sur des LLM, avec agents planificateur/ouvrier, graphes d'actifs et d'exploration, enregistrement du trafic MITM et retest des vulnérabilités.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Outil de root Android pour Samsung Galaxy S25 Ultra (SM-S938B) qui enchaîne DirtyFrag CVE-2026-43284 et CVE-2026-43499 pour obtenir le root automatiquement au démarrage via KernelSU.

    419

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →