
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.
| Field | Value |
|---|---|
| CVE | CVE-2016-15042 |
| Severity | critical |
| CVSS | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| CWE | CWE-434 (Unrestricted Upload of File with Dangerous Type) |
| Affected | Frontend File Manager (nm_filemanager) < 4.0; N-Media Post Front-end Form (nmedia-user-file-uploader) < 1.1 |
| Fixed in | Frontend File Manager 4.0 (2016-09-24); N-Media Post Front-end Form 1.1 (2016-10-08) |
| Class | Unauthenticated arbitrary file upload leading to RCE |
| Runtime | Python 3.8+, stdlib only |
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.
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.
<?php echo '<token>'; ?>.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
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
| Column | Meaning |
|---|---|
| n | 1-based row number |
| url | target as provided (scheme auto-prepended if missing) |
| status | ok or error (did the AJAX POST answer at all) |
| vulnerable | True when the upload+echo chain matched for either plugin variant |
| elapsed_ms | per-target wall time |
| token | 12-char md5 used as filename stem and PHP echo value |
| result_b64 | base64(JSON) full per-target details (per-variant POST/GET evidence) |
| Code | Meaning |
|---|---|
| 0 | at least one target (scanner) / the target (exploit) is vulnerable |
| 2 | no vulnerable target found or verification failed |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RWJ

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

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

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.