cbcvebase.
CVE-2017-16602
published 2018-01-23

CVE-2017-16602: This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of NetGain Systems Enterprise Manager 7.2.730 build 1034…

PriorityP182high8.8CVSS 3.0
AVNACLPRLUINSUCHIHAH
ITWVulnCheck KEV
Exploited in the wild
EPSS
3.21%
86.6th percentile
This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of NetGain Systems Enterprise Manager 7.2.730 build 1034. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed. The specific flaw exists within the org.apache.jsp.u.jsp.tools.exec_jsp servlet, which listens on TCP port 8081 by default. When parsing the command parameter, the process does not properly validate a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code under the context of Administrator. Was ZDI-CAN-5193.

Affected

2 ranges
VendorProductVersion rangeFixed in
netgain-systemsenterprise_manager
netgain_systemsnetgain_systems_enterprise_manager

Detection & IOCsextracted from sources · hover to see the quote

path/u/jsp/tools/exec.jsp
port8081
command/u/jsp/tools/exec.jsp?command=cmd+%2Fc+ping&argument=
snort
alert http $EXTERNAL_NET any -> any any (msg:"ET EXPLOIT NetGain Systems Enterprise Manager CVE-2017-16602 (Inbound)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/u/jsp/tools/exec.jsp?command=cmd+%2Fc+ping&argument="; startswith; fast_pattern; content:"http"; distance:0; reference:url,unit42.paloaltonetworks.com/mirai-variant-echobot-resurfaces-with-13-previously-unexploited-vulnerabilities/; reference:cve,2017-16602; classtype:attempted-admin; sid:2029163; rev:4; metadata:affected_product Linux, attack_target IoT, created_at 2019_12_16, cve CVE_2017_16602, deployment Perimeter, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_04_13;)
snort
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"ET EXPLOIT NetGain Systems Enterprise Manager CVE-2017-16602 (Outbound)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/u/jsp/tools/exec.jsp?command=cmd+%2Fc+ping&argument="; startswith; fast_pattern; content:"http"; distance:0; reference:url,unit42.paloaltonetworks.com/mirai-variant-echobot-resurfaces-with-13-previously-unexploited-vulnerabilities/; reference:cve,2017-16602; classtype:attempted-admin; sid:2029162; rev:4; metadata:affected_product Linux, attack_target IoT, created_at 2019_12_16, cve CVE_2017_16602, deployment Perimeter, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_04_13;)
  • Monitor for HTTP POST requests to the exec.jsp servlet path with a 'command' parameter, indicative of exploitation attempts against the NetGain EM RCE vulnerability.
  • The vulnerable servlet listens on TCP port 8081 by default; monitor this port for inbound POST requests to /u/jsp/tools/exec.jsp.
  • The exploit involves passing an unsanitized 'command' parameter to exec.jsp, which is then used directly in a system call; alert on the presence of shell metacharacters or OS commands in this parameter.
  • Authentication bypass precedes exploitation; monitor for anomalous authenticated sessions followed by POST requests to the exec.jsp endpoint.
  • ·The Snort/ET rules use 'cmd+%2Fc+ping' as the specific URI pattern; attackers may use different command payloads that would not match this exact signature — broader URI-path-based detection on /u/jsp/tools/exec.jsp is recommended as a complement.
  • ·The exploit has been observed in the wild as part of Mirai botnet variant (EchoBot) campaigns targeting IoT devices; deployment context should be considered when tuning alert thresholds.

CVSS provenance

nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.5MEDIUMAV:N/AC:L/Au:S/C:P/I:P/A:P
vulncheck8.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.