cbcvebase.
CVE-2017-6077
published 2017-02-22

CVE-2017-6077: ping.cgi on NETGEAR DGN2200 devices with firmware through 10.0.0.50 allows remote authenticated users to execute arbitrary OS commands via shell metacharacters…

PriorityP190critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOIT
CISA Known Exploited Vulnerabilitydue 2022-09-07
Exploited in the wild
EPSS
68.20%
99.3th percentile
ping.cgi on NETGEAR DGN2200 devices with firmware through 10.0.0.50 allows remote authenticated users to execute arbitrary OS commands via shell metacharacters in the ping_IPAddr field of an HTTP POST request.

Affected

2 ranges
VendorProductVersion rangeFixed in
netgeardgn2200_firmware<= 10.0.0.50
netgeardgn2200_series_firmware<= 10.0.0.50

Detection & IOCsextracted from sources · hover to see the quote

url/ping.cgi
commandping_IPAddr=12.12.12.12; <cmd>
path/bin/bd
snort
alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"ET EXPLOIT Possible Netgear DGN2200 RCE (CVE-2017-6077)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ping.cgi"; startswith; endswith; http.header; content:"DIAG_diag.htm|0d 0a|"; fast_pattern; http.request_body; content:"&ping_IPAddr="; content:"|3b|"; distance:0; reference:url,www.exploit-db.com/exploits/41394; reference:cve,2017-6077; classtype:attempted-user; sid:2027093; rev:4; metadata:attack_target IoT, created_at 2019_03_18, cve CVE_2017_6077, deployment Perimeter, performance_impact Low, confidence Medium, signature_severity Major, tag CISA_KEV, updated_at 2024_04_13;)
  • Exploit sends HTTP POST to /ping.cgi with shell metacharacter (semicolon, 0x3b) injected into the ping_IPAddr field to achieve OS command injection.
  • Exploit sets the HTTP Referer header to DIAG_diag.htm; presence of this referer in POST requests to /ping.cgi is a strong indicator of exploitation.
  • Exploit uses HTTP Basic Authentication with default credentials (admin/password, Gearguy/Geardog, or Guest/Guest) against the target router.
  • Presence of SUID backdoor binary /bin/bd on some firmware versions can be used for privilege escalation post-exploitation; check for its existence during forensic analysis.
  • CVE-2017-6077 can be chained with a CSRF (CVE-2017-6366) to achieve unauthenticated RCE by tricking an authenticated user into visiting a malicious page.
  • ·The exploit targets firmware versions 10.0.0.20 through 10.0.0.50 (latest at time of disclosure); devices on these versions are vulnerable.
  • ·Hardcoded credentials (Gearguy/Geardog and Guest/Guest) are present on SOME firmware versions, lowering the bar for exploitation.
  • ·The vulnerability affects DGN2200 hardware versions v1, v2, v3, and v4; all variants should be treated as vulnerable until patched.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
vulncheck9.8CRITICAL
cisa9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.