Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2020-8816 PoC — Pi-hole 操作系统命令注入漏洞

Source
Associated Vulnerability
Title:Pi-hole 操作系统命令注入漏洞 (CVE-2020-8816)
Description:Pi-hole Web v4.3.2 (aka AdminLTE) allows Remote Code Execution by privileged dashboard users via a crafted DHCP static lease.
Description
A PoC for CVE-2020-8816 that does not use $PATH but $PWD and globbing
Readme
# Notes to defend against this exploit
* Patching
  * Just do it... now.
  * Subscribe to/watch the [Pi-hole repository](https://github.com/pi-hole/pi-hole) for new releases (and Issues and Pull requests if you're serious).
* Network
  * Do not expose Pi-hole to the internet.
  * Only expose Pi-hole DNS port 53 to DNS clients, not other ports like management interface.
* Management
  * Use unique and complex (meaning many characters) passphrases for admin account.

# CVE-2020-8816
**The full PoC is available in the PDF document**

This is a variation of a PoC for RCE on Pi-hole 4.3.2: https://natedotred.wordpress.com/2020/03/28/cve-2020-8816-pi-hole-remote-code-execution/ 

The original PoC requires the **$PATH** variable to be 'opt/pihole:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'. This is not the case for a Pi-hole installation on Ubuntu Server with default settings.

Therefore, my PoC requires the **$PWD** variable for www-data to be '/var/www/html/admin'. This should be the case for more types of Pi-hole installations. My PoC also solves a problem: this new string from **$PWD** does not contain the letter ‘p’ required for a ‘php -r' execution as used in the original PoC.
File Snapshot

[4.0K] /data/pocs/c7af06d347883649fe2b20254a6b1a4f35a7ed52 ├── [422K] CVE-2020-8816 PWD PoC.pdf └── [1.2K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →