#
# This script was written by Chris Foster
#
#
# See the Nessus Scripts License for details
#

account = "db2fenc1";
password = "ibmdb2";

if(description)
{
 script_id(11861);
 script_version ("$Revision: 7189 $");
 script_tag(name:"cvss_base", value:"7.5");
 script_tag(name:"risk_factor", value:"High");
 script_cve_id("CVE-2001-0051");
 script_name("Default password (ibmdb2) for db2fenc1");

 desc =
"
The account 'db2fenc1' has the password 'ibmdb2'
An attacker may use it to gain further privileges on this system

Risk factor : High
Solution : Set a strong password for this account or disable it.
This may disable dependant applications so beware";

 script_description(desc);
		 
 script_summary("Logs into the remote host");

 script_copyright("This script is Copyright (C) 2003 Chris Foster");

 script_category(ACT_GATHER_INFO);

 script_family("Default Accounts");
 
 script_dependencie("find_service.nes", "ssh_detect.nasl");
 script_require_ports("Services/telnet", 23, "Services/ssh", 22);
 script_require_keys("Settings/ThoroughTests");
 exit(0);
}

#
# The script code starts here : 
#
include("default_account.inc");
include("global_settings.inc");

if ( ! thorough_tests ) exit(0);

port = check_account(login:account, password:password);
if(port)security_hole(port);
