Huawei VRP Default Credentials (SSH)
🗓️ 22 Apr 2020 00:00:00Reported by Copyright (C) 2020 Greenbone AGType
openvas🔗 plugins.openvas.org👁 53 Views
# SPDX-FileCopyrightText: 2020 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.108755");
script_version("2025-05-28T05:40:15+0000");
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:"last_modification", value:"2025-05-28 05:40:15 +0000 (Wed, 28 May 2025)");
script_tag(name:"creation_date", value:"2020-04-22 10:00:04 +0000 (Wed, 22 Apr 2020)");
script_name("Huawei VRP Default Credentials (SSH)");
script_category(ACT_ATTACK);
script_family("Default Accounts");
script_copyright("Copyright (C) 2020 Greenbone AG");
# nb: Don't use the keys or dependencies to / from gb_huawei_vrp_network_device_consolidation.nasl
# / gb_huawei_vrp_network_device_ssh_banner_detect.nasl because ssh_detect.nasl is checking for an
# additional banner which isn't necessarily a VRP device.
script_dependencies("ssh_detect.nasl", "gb_default_credentials_options.nasl");
script_require_ports("Services/ssh", 22);
script_mandatory_keys("ssh/huawei/vrp/detected");
script_exclude_keys("default_credentials/disable_default_account_checks");
script_xref(name:"URL", value:"https://support.huawei.com/enterprise/en/doc/EDOC1000060368/25506195/understanding-the-list-of-default-user-names-and-passwords");
script_xref(name:"URL", value:"https://support.huawei.com/enterprise/en/doc/EDOC1000079719/1b8f7bdb/logging-in-to-an-ar-router-through-a-web-system");
script_tag(name:"summary", value:"The remote Huawei Versatile Routing Platform (VRP) device is
using known default credentials for the SSH login.");
script_tag(name:"vuldetect", value:"Tries to login via SSH using known default credentials.");
script_tag(name:"insight", value:"The remote Huawei Versatile Routing Platform (VRP) device is
lacking a proper password configuration, which makes critical information and actions accessible
for people with knowledge of the 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.");
script_tag(name:"solution", value:"Change the default password.");
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("ssh_func.inc");
include("misc_func.inc");
include("port_service_func.inc");
port = ssh_get_port( default:22 );
if( ssh_dont_try_login( port:port ) )
exit( 0 );
if( ! banner = ssh_get_serverbanner( port:port ) )
exit( 0 );
# SSH-2.0-HUAWEI-1.5
# SSH-2.0-HUAWEI-VRP-3.10
# SSH-2.0-VRP-3.3
# SSH-1.99-VRP-3.4
if( banner != "SSH-2.0--" && banner != "SSH-1.99--" && ! egrep( string:banner, pattern:"^SSH-[0-9.]+-(HUAWEI|VRP)-", icase:FALSE ) )
exit( 0 );
creds = make_list(
"admin:[email protected]",
"admin:admin",
"admin:Admin@huawei",
"admin:Admin@123",
"root:admin",
"super:sp-admin"
);
cmd = "display version";
report = 'It was possible to login to the remote Huawei VRP device via SSH with the following known credentials:';
foreach cred( creds ) {
if( ! soc = open_sock_tcp( port ) )
continue;
split = split( cred, sep:":", keep:FALSE );
if( max_index( split ) != 2 ) {
close( soc );
continue;
}
username = split[0];
password = split[1];
login = ssh_login( socket:soc, login:username, password:password, priv:NULL, passphrase:NULL );
if( login == 0 ) {
cmd_res = ssh_cmd( socket:soc, cmd:cmd, return_errors:FALSE, pty:TRUE, nosh:TRUE, clear_buffer:TRUE );
ssh_disconnect( _last_libssh_sess );
if( display_vers = egrep( pattern:"(Huawei Versatile Routing Platform|VRP \(R\) software)", string:cmd_res ) ) {
vuln = TRUE;
report += '\n\nUsername: "' + username + '", Password: "' + password + '"';
report += '\n\nIt was also possible to execute "' + cmd + '" as "' + username + '". Result:\n\n' + chomp( display_vers );
}
}
close( soc );
sleep( 5 ); # nb: The devices behaves "strange" with too many logins in a short amount of time.
}
if( vuln ) {
security_message( port:port, data:report );
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 May 2025 00:00Current
7.5High risk
Vulners AI Score7.5