⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oracle9i_xsqlservlet_xsqlconfig.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This script was written by Matt Moore <matt.moore@westpoint.ltd.uk>## See the Nessus Scripts License for details#if(description){ script_id(10855); script_bugtraq_id(4290); script_cve_id("CVE-2002-0568"); script_version("$Revision: 38 $"); name["english"] = "Oracle XSQLServlet XSQLConfig.xml File"; name["francais"] = "Oracle XSQLServlet XSQLConfig.xml File"; script_name(english:name["english"], francais:name["francais"]);  desc["english"] = "It is possible to read the contents of the XSQLConfig.xml file which contains sensitive information.Solution: Move this file to a safer location and update your servlet engine's configuration file to reflect the change.References:http://www.nextgenss.com/papers/hpoas.pdf (Hackproofing Oracle9iAS)http://www.oracle.com/Risk factor : High"; script_description(english:desc["english"]);  summary["english"] = "Tests for presence of XSQLConfig.xml";  script_summary(english:summary["english"]);  script_category(ACT_GATHER_INFO);  script_copyright(english:"This script is Copyright (C) 2002 Matt Moore",		francais:"Ce script est Copyright (C) 2002 Matt Moore"); 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); script_require_keys("www/OracleApache"); exit(0);}# Check starts hereinclude("http_func.inc");port = get_http_port(default:80);if(get_port_state(port)){ req = http_get(item:"/xsql/lib/XSQLConfig.xml", 		port:port); soc = http_open_socket(port); if(soc) { send(socket:soc, data:req); r = http_recv(socket:soc); tip = string("On a PRODUCTION system, under no circumstances should this configuration file reside in a directory that is browseable through the virtual path of your web server.");if(tip >< r) { http_close_socket(soc); security_hole(port); }else { req = http_get(item:"/servlet/oracle.xml.xsql.XSQLServlet/xsql/lib/XSQLConfig.xml", port:port); soc = http_open_socket(port); if(soc)  {  send(socket:soc, data:req);  r = http_recv(socket:soc);  http_close_socket(soc);  if(tip >< r)	 	security_hole(port);   }  } }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -