Vulnerabilities > CVE-2016-10174 - Classic Buffer Overflow vulnerability in Netgear products

047910
CVSS 9.8 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
network
low complexity
netgear
CWE-120
critical
exploit available
metasploit

Summary

The NETGEAR WNR2000v5 router contains a buffer overflow in the hidden_lang_avi parameter when invoking the URL /apply.cgi?/lang_check.html. This buffer overflow can be exploited by an unauthenticated attacker to achieve remote code execution.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

  • descriptionNETGEAR WNR2000v5 - (Un)authenticated hidden_lang_avi Stack Overflow (Metasploit). CVE-2016-10174. Remote exploit for Hardware platform. Tags: Metasploit Fra...
    fileexploits/hardware/remote/41719.rb
    idEDB-ID:41719
    last seen2017-03-24
    modified2017-03-24
    platformhardware
    port80
    published2017-03-24
    reporterExploit-DB
    sourcehttps://www.exploit-db.com/download/41719/
    titleNETGEAR WNR2000v5 - (Un)authenticated hidden_lang_avi Stack Overflow (Metasploit)
    typeremote
  • idEDB-ID:40949

Metasploit

descriptionThe NETGEAR WNR2000 router has a 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.
idMSF:EXPLOIT/LINUX/HTTP/NETGEAR_WNR2000_RCE
last seen2020-06-10
modified2018-09-15
published2016-12-27
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/linux/http/netgear_wnr2000_rce.rb
titleNETGEAR WNR2000v5 (Un)authenticated hidden_lang_avi Stack Overflow

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/141806/netgear_wnr2000_rce.rb.txt
idPACKETSTORM:141806
last seen2017-03-24
published2017-03-24
reporterPedro Ribeiro
sourcehttps://packetstormsecurity.com/files/141806/NETGEAR-WNR2000v5-Un-authenticated-hidden_lang_avi-Stack-Overflow.html
titleNETGEAR WNR2000v5 (Un)authenticated hidden_lang_avi Stack Overflow