A security researcher has described how he uncovered a severe security hole in dozens of different Netgear routers, meaning that “hundreds of thousands, if not over a million” devices could be at risk of having their admin passwords stolen by hackers.
Simon Kenin, a researcher at Trustwave, has explained how sheer laziness on a cold and rainy winter night stopped him from getting out of bed and going downstairs to reboot his router. Instead, he stayed under the covers and investigated whether he could find a way to hack into the device’s web admin panel, having forgotten the access password.
Shockingly, Kenin discovered that all he had to do was send a simple web request to the router’s management software to retrieve its admin password, using two security flaws previously disclosed on other Netgear routers back in 2014.
When trying to access the web panel a user is asked to authenticate, if the authentication is cancelled and password recovery is not enabled, the user is redirected to a page which exposes a password recovery token. If a user supplies the correct token to the page http://router/passwordrecovered.cgi?id=TOKEN (and password recovery is not enabled), they will receive the admin password for the router.
As it transpired, the router’s admin password could be retrieved even if the attacker does not send a legitimate password recovery token:
I found that the very first call to passwordrecovered.cgi will give out the credentials no matter what the parameter you send. This is totally new bug that I haven’t seen anywhere else. When I tested both bugs on different NETGEAR models, I found that my second bug works on a much wider range of models.
It’s bad enough that Kenin uncovered the router was vulnerable to that flaw when he was on the same Wi-Fi network, but what he also determined was that if the router’s option for remote management had been enabled, the vulnerability could also be exploited remotely by a malicious attacker.
Fortunately the opportunities for malicious hackers to exploit the flaw are stymied a little because the remote management feature is disabled on Netgear’s routers by default, but according to Kenin :hundreds of thousands, if not over a million” devices are accessible over the public internet, and should be considered to be at the greatest risk of exploitation.
In a support advisory, Netgear recommends that users check that their router’s firmware is fully up-to-date.
Kenin claims that dozens of Netgear routers are vulnerable to the security hole he uncovered if firmware is not patched:
AC1450 V18.104.22.168_10.0.16 (Latest)
D6400 V22.214.171.124_1.0.44 (V126.96.36.199_1.0.52 and above not affected)
DC112A V188.8.131.52_1.0.60 (Latest)
DGN2200v4 V184.108.40.206_5.0.8 (V220.127.116.11_1.0.66 is latest and is not affected)
JNDR3000 V18.104.22.168_1.0.16 (Latest)
R6200 V22.214.171.124_1.0.37 (V126.96.36.199_1.0.41 and above are not affected)
R6200v2 V188.8.131.52_1.0.18 (V184.108.40.206_10.1.10 is latest and is not affected)
R6250 V220.127.116.11_1.0.78 (V18.104.22.168_10.1.10 is latest and is not affected)
R6300 V22.214.171.124_1.0.58 (Latest)
R6300v2 V126.96.36.199_10.0.74 (V188.8.131.52_10.0.76 is latest and is patched)
R6700 V184.108.40.206_10.0.29 (Latest beta)
R6700 V220.127.116.11_10.0.26 (Latest stable)
R6900 V18.104.22.168_1.0.10 (Latest)
R7000 V22.214.171.124_1.1.83 (V126.96.36.199_1.1.93 is latest and is patched)
R8500 V188.8.131.52_1.0.43 (V184.108.40.206_1.0.62 and above is patched)
VEGN2610 V220.127.116.11_1.0.35 (Latest)
WNDR3400v2 V18.104.22.168_1.0.34 (V22.214.171.124_1.0.81 is latest and is not affected)
WNDR3400v3 V126.96.36.199_1.0.29 (V188.8.131.52_1.0.51 is latest and is not affected)
WNDR3700v3 V184.108.40.206_1.0.31 (Latest)
WNDR4000 V220.127.116.11_9.1.86 (Latest)
WNDR4500 V18.104.22.168_1.0.68 (Latest)
WNDR4500v2 V22.214.171.124_1.0.38 (Latest)
WGR614v10 V126.96.36.199_60.0.85NA (Latest)
WN3100RP V188.8.131.52_1.0.19 (Latest)
Lenovo R3220 V184.108.40.206_1.0.16 (Latest)
Lenovo R3220 V220.127.116.11_1.0.13
Just last month we reported that CERT was warning of a different way in which Netgear routers could be remotely exploited.
Kenin believes that Netgear is taking the problems seriously. He responsibly disclosed the vulnerabilities to them last year, and reports that the company is “committed to pushing out firmware to the currently unpatched models on an aggressive timeline.”
In addition, Netgear has signed up with the Bugcrowd bug bounty service, providing a mechanism for vulnerability researchers to communicate more easily with the company’s security team and – potentially – earn rewards for details of the flaws that they find and responsibly disclose.
The end result should be, says Kenin, “a more secure line of products and services.”
Good for Netgear, but the truth is that all router manufacturers really need to start doing a better job of securing their devices. After all, the internet is made a less safe place for all of us as more and more poorly-secured devices are connected to it.