Vulnerability & Exploit Database

Back to search

AsusWRT LAN Unauthenticated Remote Code Execution

The HTTP server in AsusWRT has a flaw where it allows an unauthenticated client to perform a POST in certain cases. This can be combined with another vulnerability in the VPN configuration upload routine that sets NVRAM configuration variables directly from the POST request to enable a special command mode. This command mode can then be abused by sending a UDP packet to infosvr, which is running on port UDP 9999 to directly execute commands as root. This exploit leverages that to start telnetd in a random port, and then connects to it. It has been tested with the RT-AC68U running AsusWRT Version 3.0.0.4.380.7743.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/linux/http/asuswrt_lan_rce

Authors

  • Pedro Ribeiro <pedrib [at] gmail.com>

References

Targets

  • AsusWRT < v3.0.0.4.384.10007

Platforms

  • unix

Architectures

  • cmd

Reliability

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/http/asuswrt_lan_rce msf exploit(asuswrt_lan_rce) > show targets ...targets... msf exploit(asuswrt_lan_rce) > set TARGET <target-id> msf exploit(asuswrt_lan_rce) > show options ...show and set options... msf exploit(asuswrt_lan_rce) > exploit