D-Link DIR Multiple Devices Default Credentials (HTTP)
🗓️ 09 Apr 2013 00:00:00Reported by Copyright (C) 2013 Greenbone AGType
openvas🔗 plugins.openvas.org👁 26 Views
# SPDX-FileCopyrightText: 2013 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
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.103690");
script_version("2025-07-02T05:41:52+0000");
script_tag(name:"last_modification", value:"2025-07-02 05:41:52 +0000 (Wed, 02 Jul 2025)");
script_tag(name:"creation_date", value:"2013-04-09 11:03:03 +0100 (Tue, 09 Apr 2013)");
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:"qod_type", value:"remote_vul");
script_tag(name:"solution_type", value:"Mitigation");
script_name("D-Link DIR Multiple Devices Default Credentials (HTTP)");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2013 Greenbone AG");
script_family("Default Accounts");
# nb: Experiences in the past have shown that various different devices could be affected
script_dependencies("gb_dlink_dsl_consolidation.nasl", "gb_dlink_dap_consolidation.nasl",
"gb_dlink_dir_consolidation.nasl", "gb_dlink_dwr_consolidation.nasl",
"gb_default_credentials_options.nasl");
script_mandatory_keys("d-link/http/detected");
script_require_ports("Services/www", 80, 8080);
script_exclude_keys("default_credentials/disable_default_account_checks");
script_tag(name:"summary", value:"The remote D-Link DIR device is using known default credentials.");
script_tag(name:"vuldetect", value:"Tries to login via HTTP using known default credentials.");
script_tag(name:"impact", value:"This issue may be exploited by a remote attacker to gain
access to sensitive information or modify system configuration without requiring authentication.");
script_tag(name:"affected", value:"All D-Link DIR devices. Other devices and models might be
affected as well.");
script_tag(name:"solution", value:"Change the password.");
exit(0);
}
if(get_kb_item("default_credentials/disable_default_account_checks"))
exit(0);
CPE_PREFIX = "cpe:/o:dlink";
include("host_details.inc");
include("http_func.inc");
if(!infos = get_app_port_from_cpe_prefix(cpe:CPE_PREFIX, service:"www"))
exit(0);
port = infos["port"];
CPE = infos["cpe"];
if(!dir = get_app_location(cpe:CPE, port:port))
exit(0);
if(dir == "/")
dir = "";
useragent = http_get_user_agent();
host = http_host_name(port:port);
username = "admin";
url = dir + "/session.cgi";
foreach pass (make_list("", "admin", "Admin", "password", "12345", "pass", "year2000", "private", "public")) {
login = "REPORT_METHOD=xml&ACTION=login_plaintext&USER=" + username + "&PASSWD=" + pass + "&CAPTCHA=";
len = strlen(login);
req = string("POST ", url, " HTTP/1.1\r\n",
"Host: ", host, "\r\n",
"User-Agent: ", useragent, "\r\n",
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n",
"Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\r\n",
"Accept-Encoding: identity\r\n",
"Connection: keep-alive\r\n",
"Content-Type: application/x-www-form-urlencoded; charset=UTF-8\r\n",
"Referer: http://", host, "/setup.php\r\n",
"Content-Length: 68\r\n",
"Cookie: uid=g0C06BeyB7\r\n",
"\r\n",
login);
recv = http_send_recv(port:port, data:req);
if(recv =~ "HTTP/1.. (404|500)")
exit(0);
if("<RESULT>SUCCESS</RESULT>" >< recv) {
if(strlen(pass) > 0)
message = 'It was possible to login with username "admin" and password "' + pass + '".';
else
message = 'It was possible to login with username "admin" and an empty password.';
security_message(port:port, data:message);
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
02 Jul 2025 00:00Current
7.5High risk
Vulners AI Score7.5