This module exploits a buffer overflow in the zhttpd binary (/bin/zhttpd). It is present on more than 40 Zyxel routers and CPE devices. The code execution vulnerability can only be exploited by an attacker if the zhttp webserver is reachable. No authentication is required. After exploitation, an attacker will be able to execute any command as root, including downloading and executing a binary from another host.
Linux
armle
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/misc/zyxel_multiple_devices_zhttp_lan_rce
msf exploit(zyxel_multiple_devices_zhttp_lan_rce) > show targets
...targets...
msf exploit(zyxel_multiple_devices_zhttp_lan_rce) > set TARGET < target-id >
msf exploit(zyxel_multiple_devices_zhttp_lan_rce) > show options
...show and set options...
msf exploit(zyxel_multiple_devices_zhttp_lan_rce) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security