cbcvebase.
CVE-2019-16057
published 2019-09-16

CVE-2019-16057: The login_mgr.cgi script in D-Link DNS-320 through 2.05.B10 is vulnerable to remote command injection.

PriorityP199critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOITRansomware
CISA Known Exploited Vulnerabilitydue 2022-05-06
Exploited in the wild
EPSS
87.21%
99.7th percentile
The login_mgr.cgi script in D-Link DNS-320 through 2.05.B10 is vulnerable to remote command injection.

Affected

1 ranges
VendorProductVersion rangeFixed in
dlinkdns-320_firmware<= 2.05.b10

Detection & IOCsextracted from sources · hover to see the quote

path/cgi-bin/login_mgr.cgi
url{{BaseURL}}/cgi-bin/login_mgr.cgi?C1=ON&cmd=login&f_type=1&f_username=admin&port=80%7Cpwd%26id&pre_pwd=1&pwd=%20&ssl=1&ssl_port=1&username=
commandport=80%7Cpwd%26id
snort
alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"ET EXPLOIT DLink DNS 320 Remote Code Execution (CVE-2019-16057)"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/login_mgr.cgi"; fast_pattern; content:"cmd|3d|login"; distance:0; content:"&port="; distance:0; pcre:"/^\d{2,5}+(?!\&|\d)/R"; reference:cve,2019-16057; reference:url,blog.cystack.net/d-link-dns-320-rce/; classtype:attempted-admin; sid:2028603; rev:2; metadata:attack_target Networking_Equipment, created_at 2019_09_18, cve CVE_2019_16057, deployment Perimeter, performance_impact Low, confidence Medium, signature_severity Major, tag CISA_KEV, updated_at 2020_09_02, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;)
  • Exploit requests target GET /cgi-bin/login_mgr.cgi with a pipe-injected command in the 'port' parameter (e.g., port=80|pwd&id). Successful exploitation returns output containing 'uid=', 'gid=', and 'pwd&id' in the HTTP response body with status 200.
  • Shodan/FOFA fingerprinting: devices exposing 'ShareCenter' or 'sharecenter' in HTML body are candidate targets for this CVE.
  • The Emerging Threats Snort rule (SID 2028603) detects exploitation by matching GET requests to /cgi-bin/login_mgr.cgi containing 'cmd=login' and '&port=' with a numeric port value not followed by '&' or another digit — indicating injected shell metacharacters.
  • ·The D-Link DNS-320 is end-of-life and will not receive patches. CISA mandates disconnection rather than patching.
  • ·Vulnerability affects all firmware versions up to and including 2.05.B10; no patched firmware version exists for this EoL device.

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.