
Um script Python para explorar CVE-2020-8816, uma vulnerabilidade de execução remota de código no Pi-hole
Um script em Python para explorar o CVE-2020-8816, uma vulnerabilidade de execução remota de código no Pi-hole.
Este script utiliza as técnicas descobertas por François Renaud-Philippon para obter execução remota de código em um Pi-hole que esteja executando uma versão da interface web inferior a 4.3.3. O exploit exige que o caminho para o usuário www-data seja /opt/pihole:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin.
> python3 .\CVE-2020-8816.py -h
usage: CVE-2020-8816.py [-h] url password ip port
Receive a reverse shell on a Pi-hole with access to the admin web console
positional arguments:
url The URL of the Pi-hole console
password The admin password for the Pi-hole console
ip The IP address for the reverse shell to connect to
port The port for the reverse shell to connect to
optional arguments:
-h, --help show this help message and exit
