
Scanner and proof-of-concept exploit for CVE-2016-15043, an unauthenticated arbitrary file upload RCE in the WP Mobile Detector WordPress plugin up to 3.5.

Fast YAML-based vulnerability scanner with template-driven detection engine for automated security testing across web apps, APIs, networks, DNS, and cloud infrastructure.

Open-source web application security scanner for automated vulnerability detection, manual penetration testing, and API security testing with a proxy-based interception engine.

This repository contains the scanner component for Greenbone Community Edition.
| Field | Value |
|---|---|
| CVE | CVE-2016-15043 |
| 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 | WP Mobile Detector (websitez-wp-mobile-detector) all versions up to and including 3.5 |
| Fixed in | 3.6 (extension whitelist in resize.php); 3.9 adds an exif_imagetype() signature check |
| Class | Unauthenticated arbitrary file write through resize.php, PHP execution in the plugin dir |
| Runtime | Python 3.8+, stdlib only |
WP Mobile Detector ships a standalone image resizer at /wp-content/plugins/wp-mobile-detector/resize.php. In versions up to 3.5 that file takes the raw src request parameter and runs file_put_contents(cache/basename(src), file_get_contents(src)) with no file type validation, so an unauthenticated attacker can make the target write arbitrary bytes into the plugin directory and then request the stored file, which PHP executes. The scanner replays the Nuclei two-request flow (http(1) && http(2), max-request 2) and reports the verdict per target.
The WP Mobile Detector plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in resize.php file in versions up to, and including, 3.5. This makes it possible for unauthenticated attackers to upload arbitrary files on the affected site's server which may make remote code execution possible.
How the two template requests map onto the plugin code:
The patch in 3.6 restricts caching to png, gif, jpg, jpeg, jif, jfif (and svg) extensions, and 3.9 additionally requires exif_imagetype() to report GIF, JPEG or PNG, so the .php payload no longer reaches disk.
<body>(.*?)</body> (template matcher 2, dotall, case-insensitive).condition: and; a
partial hit (only one request matching) is recorded but not counted as
vulnerable.<token>.php so the cache-miss branch is always exercised, then the plain
site root index.php for installs where the first probe is rewritten.Scanner (URL file + threads + CSV, streamed rows, JSON sidecar):
python3 scanner/CVE-2016-15043/scanner.py urls.txt 4 out.csv
python3 scanner/CVE-2016-15043/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-15043/exploit.py http://target.example
python3 exploit/CVE-2016-15043/exploit.py http://target.example --csv e.csv --json e.json --verbose
RCE POC SUITE
scanner : CVE-2016-15043 v1.0.0 (WP Mobile Detector <= 3.5)
endpoint: GET /wp-content/plugins/wp-mobile-detector/resize.php?src=<url> then GET /wp-content/plugins/wp-mobile-detector/cache/<basename src>
matchers: status 200 AND Content-Type image/gif on resize.php, then status 200 AND regex '<body>(.*?)</body>' on the cached file (and)
threads : 4 | csv: .scratch/s15043.csv | json: .scratch/s15043.json
[2026-12-03 16:06:14] loaded 1 target(s) from urls.txt
[2026-12-03 16:06:14] summary total=1 answered=1 vulnerable=1 errors=0
[2026-12-03 16:06:14] timing wall=8ms avg=7ms max=7ms
[2026-12-03 16:06:14] wrote .scratch/s15043.csv (1 row(s)) and .scratch/s15043.json
| Column | Meaning |
|---|---|
| n | 1-based row number, in completion order |
| url | target as provided (scheme auto-prepended if missing) |
| status | ok when resize.php answered at all, else error |
| vulnerable | True when both template matcher groups matched for one ladder probe |
| elapsed_ms | per-target wall time |
| token | 12-char md5 correlation id, also the probe filename stem |
| result_b64 | base64(JSON) with per-probe resize status/content type, cache status, regex capture and the two matcher flags |
| 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/CT5RWe