Unauthenticated command execution on Netgear DGN devices

Title:    Unauthenticated command execution on Netgear DGN devices
Discovery date: 01/05/2013
Release date:   31/05/2013
Credits:        Roberto Paleari (roberto@greyhats.it, twitter: @rpaleari)

Class:           Authentication bypass, command execution

This security vulnerability affects the following products and firmware
   * Netgear DGN1000, firmware version <
   * Netgear DGN2200 v1
Other products and firmware versions are probably also vulnerable, but they
were not checked.

Attackers can leverage this vulnerability to bypass existing authentication
mechanisms and execute arbitrary commands on the affected devices, with root

Briefly, the embedded web server skips authentication checks for some URLs
containing the "currentsetting.htm" substring. As an example, the following URL
can be accessed even by unauthenticated attackers:


Then, the "setup.cgi" page can be abused to execute arbitrary commands. As an
example, to read the /www/.htpasswd local file (containing the clear-text
password for the "admin" user), an attacker can access the following URL:


Basically this URL leverages the "syscmd" function of the "setup.cgi" script to
execute arbitrary commands. In the example above the command being executed is
"cat /www/.htpasswd", and the output is displayed in the resulting web
page. Slightly variations of this URL can be used to execute arbitrary

For DGN1000, Netgear included a fix for this issue inside firmware version According to Netgear, DGN2200 v1 is not supported anymore, while v3
and v4 should not be affected by this issue; these versions were not tested by
the author.

The author is not responsible for the misuse of the information provided in
this security advisory. The advisory is a service to the professional security
community. There are NO WARRANTIES with regard to this information. Any
application or distribution of this information constitutes acceptance AS IS,
at the user's own risk. This information is subject to change without notice.
Rate this post
Брой прочитания на тази страница: 711
Netgear DGN1000 / DGN2200 – Multiple Vulnerabilities

Вашият коментар

Вашият имейл адрес няма да бъде публикуван. Задължителните полета са отбелязани с *