# # This script was written by Xue Yong Zhi # # See the Nessus Scripts License for details # if(description) { script_id(11348); script_version ("$Revision$"); script_cve_id("CVE-1999-1309"); #NO bugtraq_id name["english"] = "Sendmail long debug local overflow"; script_name(english:name["english"]); desc["english"] = " The remote sendmail server, according to its version number, allows local users to gain root access via a large value in the debug (-d) command line option Solution : Install sendmail newer than versions 8.6.8 or install a vendor supplied patch. Risk factor : High (Local) / None (remote with no account)"; script_description(english:desc["english"]); summary["english"] = "Checks the version number"; summary["francais"] = "Vérification du numéro de série de sendmail"; script_summary(english:summary["english"], francais:summary["francais"]); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2003 Xue Yong Zhi", francais:"Ce script est Copyright (C) 2003 Xue Yong Zhi"); family["english"] = "SMTP problems"; family["francais"] = "Problèmes SMTP"; script_family(english:family["english"], francais:family["francais"]); script_dependencie("find_service.nes", "smtpserver_detect.nasl"); script_require_ports("Services/smtp", 25); script_require_keys("SMTP/sendmail"); exit(0); } # # The script code starts here # include("smtp_func.inc"); port = get_kb_item("Services/smtp"); if(!port) port = 25; banner = get_smtp_banner(port:port); if(banner) { #looking for Sendmail 8.6.7 and previous if(egrep(pattern:".*sendmail[^0-9]*(SMI-)?8\.([0-5]|[0-5]\.[0-9]+|6|6\.[0-7])/.*", string:banner, icase:TRUE)) security_hole(port); }