# # (C) Tenable Network Security # if(description) { script_id(11678); script_bugtraq_id(7717); script_version("$Revision$"); name["english"] = "Super-M Son hServer Directory Traversal"; script_name(english:name["english"]); desc["english"] = " Super-M Son hServer is vulnerable to a directory traversal. It enables a remote attacker to view any file on the computer with the privileges of the web server. More Information: http://www.securityfocus.com/archive/1/323070 Risk factor : High"; script_description(english:desc["english"]); summary["english"] = "Super-M Son hServer is vulnerable to an exploit which lets an attacker view any file that the web server has access to."; script_summary(english:summary["english"]); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2003 Tenable Network Security"); family["english"] = "CGI abuses"; script_family(english:family["english"]); script_dependencie("find_service.nes", "http_version.nasl"); script_require_ports("Services/www", 80); exit(0); } 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); function check(req) { req = http_get(item:req, port:port); r = http_keepalive_send_recv(port:port, data:req); if ( r == NULL ) exit(0); if(("[windows]" >< r)|| ("[fonts]" >< r)) { security_hole(port:port); return(1); } return(0); } dirs = cgi_dirs(); foreach dir (dirs) { url1 = string(dir, "/.|./.|./.|./.|./.|./.|./.|./.|./.|./.|./.|./.|./windows/win.ini"); if(check(req:url1))exit(0); url2 = string(dir, "/.|./.|./.|./.|./.|./.|./.|./.|./.|./.|./.|./.|./winnt/win.ini"); if(check(req:url2))exit(0); }