Description
This exploits a command execution in Pi-Hole <= 4.3.2. A new DHCP static lease is added with a MAC address which includes an RCE. Exploitation requires /opt/pihole to be first in the $PATH due to exploitation constraints. DHCP server is not required to be running.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/unix/http/pihole/dhcp_mac_execmsf undefined(dhcp_mac_exec) > show actions ...actions...msf undefined(dhcp_mac_exec) > set ACTION < action-name >msf undefined(dhcp_mac_exec) > show options ...show and set options...msf undefined(dhcp_mac_exec) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub