A security flaw was discovered in some NetGear routers that could be easily exploited by a remote attacker to gain root access on the device and remotely run code.
Some versions of Netgear routers remain affected by a security flaw that could be exploited by hackers to gain root access on the device and remotely run code. On Friday, a researcher who used the online moniker AceW0rm released a proof-of-concept code exploit because Netgear hasn’t replied to his ethical disclosure.
AceW0rm privately disclosed the flaw to Netgear in August but he did not receive any response from the company.
— Acew0rm (@Acew0rm1) 11 dicembre 2016
In a first time, security experts warned of serious security issues in two Netgear routers, the Netgear R7000 and R6400 routers but the situation is worst.
Netgear now as publicly admitted the vulnerability and informed its customer that it is aware of the issue.
“NETGEAR is aware of the security issue #582384 that allows unauthenticated web pages to pass form input directly to the command-line interface. A remote attacker can potentially inject arbitrary commands which are then executed by the system.” reads the Security Advisory for VU 582384 published by Netgear.
The company informed its customers that the following products are vulnerable:
The routers belong to Netgear’s Nighthawk line of home routers.
The CERT/CC at the Software Engineering Institute at Carnegie Mellon University published an advisory to confirm that the vulnerability is quite easy to exploit and suggested to discontinue the use of the routers waiting for a patch.
“Exploiting this vulnerability is trivial. Users who have the option of doing so should strongly consider discontinuing use of affected devices until a fix is made available.” reads the advisory published by the CERT.
The exploitation of the flaw is quite simple, attackers just need victims info into visiting a website that contains specially crafted malicious code to trigger the vulnerability.
“Netgear R7000, firmware version 22.214.171.124_1.1.93 and possibly earlier, and R6400, firmware version 126.96.36.199_1.0.4 and possibly earlier, contain an arbitrary command injection vulnerability.” reads the advisory issued by the CERT/CC.”By convincing a user to visit a specially crafted web site, a remote attacker may execute arbitrary commands with root privileges on affected routers. A LAN-based attacker may do the same by issuing a direct request.
The advisory states that in order to exploit the flaw, the victim could visit a website like:
then the malicious commands would execute automatically with root privileges.
Waiting for a fix, users have a unique option, disable the web server running on the vulnerable routers until the device is restarted by using the following command:
This command will disable the router’s web administration until the device is restarted, the advisory published by the CERT invites users to read Bas’ Blog for more details.
In order to verify if you are vulnerable open your browser and visit the following address:
(For most people, this URL will work: http://www.routerlogin.net/cgi-bin/;uname$IFS-a)
If a web page appears you’re vulnerable.
Another simple method to verify if you are running a vulnerable router is to follow the procedure described in the Kalypto Pink’s blog post.