Hacking

Microsoft found auth bypass, system hijack flaws in Netgear routers

Microsoft experts have disclosed a series of vulnerabilities in the firmware of Netgear routers which could lead to data leaks and full system takeover.

Microsoft researchers discovered multiple vulnerabilities in the firmware of the Netgear DGN-2200v1 series router that can allow attackers to bypass authentication, access stored credentials, and even take over devices.

Experts discovered the security issues while researching device fingerprinting in the new device discovery capabilities in Microsoft Defender for Endpoint. The experts noticed that a device owned by non-IT personnel was trying to access a Netgear DGN-2200v1 router’s management port, then investigated the anomalous behavior.

The traffic was TLS-encrypted, so the researchers focused on the router and investigate the presence of security weaknesses that can be exploited by threat actors.

Microsoft identified three vulnerabilities, tracked as PSV-2020-0363, PSV-2020-0364 and PSV-2020-0365 by Netgear, and reported them to the vendor that fixed them ans released a security advisory.

“In our research, we unpacked the router firmware and found three vulnerabilities that can be reliably exploited.” reads the advisory published by Microsoft. “The critical security issues (those with CVSS Score: 7.1 – 9.4) have been fixed by NETGEAR.”

An attacker can exploit the flaws to bypass authentication for the router’s management pages and take over the router

This kind of attack scenario is very dangerous for organizations because it can lead to the compromise of a network allowing threat actors to breach the target’s infrastructure.

The experts downloaded the firmware for the device from Netgear’s website and noticed that the anomalous communication used the standard port that HTTPd server.

The archive available on the website is a .zip file containing release notes (.html) and the firmware image itself (.chk file). Running binwalk on the .chk file ended up extracting the filesystem (squash-fs).

Researchers performed a static analysis of the HTTPd binary and dynamic analysis using the QEMU emulator.

The analysis revealed that the pages that were served without authentication include some “pseudo code” as the first page handling code inside HTTPd, automatically approving certain pages such as “form.css or “func.js.”

“While there is no harm in approving those pages, one thing that stood out was the fact that NETGEAR decided to use strstr to check if a page has “.jpg”, “.gif” or “ess_” substrings, trying to match the entire URL.” Microsoft continues.

“We can therefore access any page on the device, including those that require authentication, by appending a GET variable with the relevant substring (like “?.gif”). For example: hxxps://10[.]0[.]138/WAN_wan.htm?pic.gif. This is a complete and fully reliable authentication bypass.”

Experts also discovered that it was possible to discover router credentials using a side-channel attack.

They also used the first authentication-bypass vulnerability to recover the user name and password used by the router using other existing weaknesses.

The experts focused on the router’s configuration backup\restore feature and abusing the authentication bypass the got the file: hxxp://router_addr:8080/NETGEAR_DGN2200[.]cfg?pic[.]gif.

Reverse-engineering the backup\restore functionality the researchers reached their goal.

“After some preparatory steps, the contents are DES-encrypted with a constant key “NtgrBak”. This allows an attacker to get the plaintext password (which is stored in the encrypted NVRAM) remotely. The user name, which can very well be variations of ‘admin’, can be retrieved the same way.” concludes Microsoft.

“With this research, we have shown how a simple anomalous connection to a router, found through the endpoint discovery service, drove us to find several vulnerabilities on a popular router. Routers are integral to networking, so it is important to secure the programs supporting its functions.”

Follow me on Twitter: @securityaffairs and Facebook

[adrotate banner=”9″][adrotate banner=”12″]

Pierluigi Paganini

(SecurityAffairs – hacking, IoT)

[adrotate banner=”5″]

[adrotate banner=”13″]

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

Nation-state actors exploited two zero-days in ASA and FTD firewalls to breach government networks

Nation-state actor UAT4356 has been exploiting two zero-days in ASA and FTD firewalls since November…

3 hours ago

Hackers hijacked the eScan Antivirus update mechanism in malware campaign

A malware campaign has been exploiting the updating mechanism of the eScan antivirus to distribute…

10 hours ago

US offers a $10 million reward for information on four Iranian nationals

The Treasury Department's Office of Foreign Assets Control (OFAC) sanctioned four Iranian nationals for their…

17 hours ago

The street lights in Leicester City cannot be turned off due to a cyber attack

A cyber attack on Leicester City Council resulted in certain street lights remaining illuminated all…

17 hours ago

North Korea-linked APT groups target South Korean defense contractors

The National Police Agency in South Korea warns that North Korea-linked threat actors are targeting…

1 day ago

U.S. Gov imposed Visa restrictions on 13 individuals linked to commercial spyware activity

The U.S. Department of State imposed visa restrictions on 13 individuals allegedly linked to the…

2 days ago

This website uses cookies.