Description
Pi-Hole versions 3.0 - 5.3 allows for command line input to the removecustomcname, removecustomdns, and removestaticdhcp functions without properly validating the parameters before passing to sed. When executed as the www-data user, this allows for a privilege escalation to root since www-data is in the sudoers.d/pihole file with no password.
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/linux/local/pihole/remove_commands_lpemsf undefined(remove_commands_lpe) > show actions ...actions...msf undefined(remove_commands_lpe) > set ACTION < action-name >msf undefined(remove_commands_lpe) > show options ...show and set options...msf undefined(remove_commands_lpe) > 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