
Pi-holeのリモートコード実行の脆弱性であるCVE-2020-8816を悪用するPythonスクリプト
CVE-2020-8816を悪用するPythonスクリプトです。Pi-holeのリモートコード実行の脆弱性を利用します。
このスクリプトはFrançois Renaud-Philippon氏が発見した手法を用いて、Webインターフェースがバージョン4.3.3未満のPi-hole上でリモートコード実行を実現します。このエクスプロイトには、www-dataユーザーのパスが/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
