Rapid7 Vulnerability & Exploit Database

NETGEAR WNR2000v5 (Un)authenticated hidden_lang_avi Stack Buffer Overflow

Back to Search

NETGEAR WNR2000v5 (Un)authenticated hidden_lang_avi Stack Buffer Overflow

Disclosed
12/20/2016
Created
05/30/2018

Description

The NETGEAR WNR2000 router has a stack buffer overflow vulnerability in the hidden_lang_avi parameter. In order to exploit it, it is necessary to guess the value of a certain timestamp which is in the configuration of the router. An authenticated attacker can simply fetch this from a page, but an unauthenticated attacker has to brute force it. Brute forcing the timestamp token might take a few minutes, a few hours, or days, but it is guaranteed that it can be bruteforced. This module implements both modes, and it works very reliably. It has been tested with the WNR2000v5, firmware versions 1.0.0.34 and 1.0.0.18. It should also work with hardware revisions v4 and v3, but this has not been tested - with these routers it might be necessary to adjust the LibcBase variable as well as the gadget addresses.

Author(s)

  • Pedro Ribeiro <pedrib@gmail.com>

Platform

Unix

Architectures

cmd

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

;