Rapid7 Vulnerability & Exploit Database

Zyxel Unauthenticated LAN Remote Code Execution

Back to Search

Zyxel Unauthenticated LAN Remote Code Execution

Disclosed
02/01/2022
Created
03/21/2023

Description

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.

Author(s)

  • Steffen Robertz <s.robertz@sec-consult.com>
  • Gerhard Hechenberger <g.hechenberger@sec-consult.com>
  • Thomas Weber <t.weber@sec-consult.com>
  • Stefan Viehboeck <v.viehboeck@sec-consult.com>
  • SEC Consult Vulnerability Lab

Platform

Linux

Architectures

armle

Development

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/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

;