9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
9.6 High
AI Score
Confidence
High
8.5 High
CVSS2
Access Vector
NETWORK
Access Complexity
MEDIUM
Authentication
SINGLE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:M/Au:S/C:C/I:C/A:C
0.015 Low
EPSS
Percentile
86.8%
It was possible to login into the remote SSH server using
default credentials.
# SPDX-FileCopyrightText: 2016 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.103239");
script_version("2024-03-15T05:06:15+0000");
script_cve_id("CVE-1999-0501",
"CVE-1999-0502",
"CVE-1999-0507",
"CVE-1999-0508",
"CVE-2020-9473", # nb: From the CVE description: S. Siedle & Soehne SG 150-0 Smart Gateway before 1.2.4 has a passwordless ftp ssh user
"CVE-2023-1944", # nb: "root:root" as seen on https://github.com/kubernetes/minikube/compare/v1.29.0...v1.30.0#diff-7b41e58d929bdb16083790c3500e6f9aa19efb0976e6b65609b60396cd9ceeebL230
"CVE-2024-22902"); # nb: "root:Backup@3R" as seen on https://blog.leakix.net/2024/01/vinchin-backup-rce-chain/#default-ssh-root-credentials-cve-2024-22902
script_tag(name:"last_modification", value:"2024-03-15 05:06:15 +0000 (Fri, 15 Mar 2024)");
script_tag(name:"creation_date", value:"2016-11-02 11:47:00 +0100 (Wed, 02 Nov 2016)");
script_tag(name:"cvss_base", value:"8.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:S/C:C/I:C/A:C");
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:"2024-02-07 17:37:40 +0000 (Wed, 07 Feb 2024)");
script_name("SSH Brute Force Logins With Default Credentials Reporting");
script_copyright("Copyright (C) 2016 Greenbone AG");
script_category(ACT_ATTACK);
script_family("Brute force attacks");
script_dependencies("default_ssh_credentials.nasl");
script_require_ports("Services/ssh", 22);
script_mandatory_keys("default_ssh_credentials/started");
# nb: This VT had a script preference with the id:1, newly added preferences in the future needs to
# choose id:2 or higher to avoid conflicts with that removed preference still kept in gvmd database.
script_tag(name:"summary", value:"It was possible to login into the remote SSH server using
default credentials.");
script_tag(name:"vuldetect", value:"Reports default credentials detected by the VT
'SSH Brute Force Logins With Default Credentials' (OID: 1.3.6.1.4.1.25623.1.0.108013).");
script_tag(name:"insight", value:"As the VT 'SSH Brute Force Logins With Default Credentials'
(OID: 1.3.6.1.4.1.25623.1.0.108013) might run into a timeout the actual reporting of this
vulnerability takes place in this VT instead.");
script_tag(name:"impact", value:"This issue may be exploited by a remote attacker to e.g. gain
access to sensitive information or modify system configuration.");
script_tag(name:"solution", value:"Change the password as soon as possible.");
script_tag(name:"solution_type", value:"Mitigation");
script_tag(name:"qod_type", value:"remote_active");
exit(0);
}
include("host_details.inc");
include("ssh_func.inc");
include("misc_func.inc");
include("port_service_func.inc");
port = ssh_get_port( default:22 );
credentials = get_kb_list( "default_ssh_credentials/" + port + "/credentials" );
if( ! isnull( credentials ) ) {
report = 'It was possible to login with the following credentials <User>:<Password>\n\n';
# Sort to not report changes on delta reports if just the order is different
credentials = sort( credentials );
foreach credential( credentials ) {
report += credential + '\n';
vuln = TRUE;
}
}
if( vuln ) {
c = get_kb_item( "default_ssh_credentials/" + port + "/too_many_logins" );
if( c ) {
report += '\nRemote host accept more than ' + c + ' logins. This could indicate some error or some "broken" device.\nScanner stops testing for default logins at this point.';
}
security_message( port:port, data:report );
exit( 0 );
}
exit( 99 );
9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
9.6 High
AI Score
Confidence
High
8.5 High
CVSS2
Access Vector
NETWORK
Access Complexity
MEDIUM
Authentication
SINGLE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:M/Au:S/C:C/I:C/A:C
0.015 Low
EPSS
Percentile
86.8%