# # This script was written by Renaud Deraison # # See the Nessus Scripts License for details # if(description) { script_id(10609); script_cve_id("CAN-2001-0224"); script_bugtraq_id(2374); script_version ("$Revision$"); name["english"] = "empower cgi path"; script_name(english:name["english"]); desc["english"] = "It was possible to get the physical location of a virtual web directory of this host by issuing the command : GET /cgi-bin/empower?DB=whatever HTTP/1.0 Usually, the less the attacker knows about your system, the better it feels, so you should correct this problem. Solution : use a newer version of this CGI Risk factor : Low"; desc["francais"] = "Il s'est avéré possible d'obtenir l'emplacement physique du dossier web virtuel de ce serveur en entrant la commande : GET /cgi-bin/empower?DB=whatever HTTP/1.0 D'habitude, moins les pirates en savent sur votre système, mieux il se porte, donc vous devriez corriger ce problème. Solution : utilisez une nouvelle version de ce CGI Facteur de risque : Faible"; script_description(english:desc["english"], francais:desc["francais"]); summary["english"] = "Attempts to find the location of the remote web root"; summary["francais"] = "Essaye de trouver le chemin d'accès à la racine web distante"; script_summary(english:summary["english"], francais:summary["francais"]); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2001 Renaud Deraison", francais:"Ce script est Copyright (C) 2001 Renaud Deraison"); family["english"] = "CGI abuses"; family["francais"] = "Abus de CGI"; script_family(english:family["english"], francais:family["francais"]); script_dependencie("find_service.nes", "http_version.nasl"); script_require_ports("Services/www", 80); exit(0); } # # The script code starts here # include("http_func.inc"); include("http_keepalive.inc"); port = get_kb_item("Services/www"); if(!port)port = 80; if(!get_port_state(port))exit(0); foreach dir (cgi_dirs()) { d = string(dir, "/empower?DB=whateverwhatever"); req = http_get(item:d, port:port); r = http_keepalive_send_recv(port:port, data:req); if( r == NULL ) exit(0); r = tolower(r); if("db name whateverwhatever of directory /" >< r){ security_warning(port); exit(0); } }