HP IP Console Switch KVM Default Credentials (HTTP)
🗓️ 19 Aug 2013 00:00:00Reported by Copyright (C) 2013 Greenbone AGType
openvas🔗 plugins.openvas.org👁 21 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.103765");
script_version("2023-12-13T05:05:23+0000");
script_tag(name:"last_modification", value:"2023-12-13 05:05:23 +0000 (Wed, 13 Dec 2023)");
script_tag(name:"creation_date", value:"2013-08-19 11:03:03 +0100 (Mon, 19 Aug 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_name("HP IP Console Switch KVM Default Credentials (HTTP)");
script_category(ACT_ATTACK);
script_family("Default Accounts");
script_copyright("Copyright (C) 2013 Greenbone AG");
script_dependencies("find_service.nasl", "httpver.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "gb_php_http_detect.nasl", "gb_default_credentials_options.nasl", "global_settings.nasl");
script_require_ports("Services/www", 443);
script_exclude_keys("Settings/disable_cgi_scanning", "default_credentials/disable_default_account_checks");
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:"vuldetect", value:"This check tries to login into the remote KVM as Admin.");
script_tag(name:"insight", value:"It was possible to login with username 'Admin' and an empty password.");
script_tag(name:"solution", value:"Set a password.");
script_tag(name:"summary", value:"The remote HP KVM is using known default credentials.");
script_tag(name:"solution_type", value:"Mitigation");
script_tag(name:"qod_type", value:"remote_vul");
exit(0);
}
if(get_kb_item("default_credentials/disable_default_account_checks"))
exit(0);
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
port = http_get_port(default:443);
if(!http_can_host_php(port:port))
exit(0);
buf = http_get_cache(port:port, item:"/login.php");
if(!egrep(pattern:'<title>HP IP Console Switch .* Explorer</title>', string:buf) || "loginUsername" >!< buf)exit(0);
useragent = http_get_user_agent();
host = http_host_name(port:port);
req = 'POST /login.php HTTP/1.1\r\n' +
'Host: ' + host + '\r\n' +
'User-Agent: ' + useragent + '\r\n' +
'Accept-Encoding: Identity\r\n' +
'Connection: close\r\n' +
'Referer: https://' + host + ' /login.php\r\n' +
'Cookie: avctSessionId=; /home.php-t1s=1\r\n' +
'Content-Type: application/x-www-form-urlencoded\r\n' +
'Content-Length: 59\r\n' +
'\r\n' +
'action=login&loginUsername=Admin&loginPassword=&language=de';
buf = http_keepalive_send_recv(port:port, data:req);
if("302 Found" >!< buf || "/home.php" >!< buf) exit(0);
session = eregmatch(pattern:"avctSessionId=([0-9]+)", string:buf);
if(isnull(session[1]))exit(0);
avctSessionId = session[1];
req = 'GET /home.php HTTP/1.1\r\n' +
'Host: ' + host + '\r\n' +
'User-Agent: ' + useragent + '\r\n' +
'Connection: close\r\n' +
'Accept-Encoding: Identity\r\n' +
'Accept-Language:en-us;\r\n' +
'Cookie: avctSessionId=' + avctSessionId + '\r\n\r\n';
buf = http_keepalive_send_recv(port:port, data:req);
if("Admin" >< buf && "/appliance-overview.php" >< buf && "/logout.php" >< buf) {
security_message(port:port);
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
13 Dec 2023 00:00Current
7.5High risk
Vulners AI Score7.5