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

📄 oracle9i_soapconfig.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This script was written by Javier Fernandez-Sanguino <jfs@computer.org># # This software is distributed under the GPL license, please# read the license at http://www.gnu.org/licenses/licenses.html#TOCGPL#if(description){ script_id(11224); script_bugtraq_id(4290); script_version("$Revision: 38 $"); script_cve_id("CVE-2002-0568"); name["english"] = "Oracle 9iAS SOAP configuration file retrieval"; script_name(english:name["english"]);  desc["english"] = "In a default installation of Oracle 9iAS v.1.0.2.2.1, it is possible toaccess some configuration files. These file includes detailedinformation on how the product was installed in the serverincluding where the SOAP provider and service manager are locatedas well as administrative URLs to access them. They might alsocontain sensitive information (usernames and passwords for databaseaccess).Solution: Modify the file permissions so that the web server processcannot retrieve it. Note however that if the XSQLServlet is presentit might bypass filesystem restrictions.More information:http://otn.oracle.com/deploy/security/pdf/ojvm_alert.pdfhttp://www.cert.org/advisories/CA-2002-08.htmlhttp://www.kb.cert.org/vuls/id/476619Also read:Hackproofing Oracle Application Server from NGSSoftware:available at http://www.nextgenss.com/papers/hpoas.pdf Risk factor : Medium"; script_description(english:desc["english"]);  summary["english"] = "Tries to retrieve Oracle9iAS SOAP configuration file";  script_summary(english:summary["english"]);  script_category(ACT_GATHER_INFO);  script_copyright(english:"This script is Copyright (C) 2003 Javier Fernandez-Sanguino"); 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");include("http_keepalive.inc");port = get_http_port(default:80);if(get_port_state(port)){ # Make a request for the configuration file# Note: this plugin can be expanded, I removed the call to # SQLConfig since it's already done directly in #10855 config[0]="/soapdocs/webapps/soap/WEB-INF/config/soapConfig.xml";# config[1]="/xsql/lib/XSQLConfig.xml"; # Already done by plugin #10855 for(i = 0; config[i] ; i = i+1 ) {     req = http_get(item:config[i], port:port);     r = http_keepalive_send_recv(port:port, data:req, bodyonly:1);     if(r == NULL) exit(0);     if ( "SOAP configuration file" >< r )	      security_warning(port, data:string("The SOAP configuration file ",config[i]," can be accessed directly :\n" + r)); } # of the for loop}

⌨️ 快捷键说明

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