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

📄 jserv_execute.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## Written by Michael Scheidell <scheidell at secnap.net># based on a script written by Hendrik Scholz <hendrik@scholz.net> ## See the Nessus Scripts License for details##if(description){ script_id(10925); script_version("$Revision: 38 $"); script_cve_id("CVE-2001-0307");  name["english"] = "Oracle Jserv Executes outside of doc_root"; script_name(english:name["english"]);  desc["english"] = "Detects Vulnerability in the execution of JSPs outsidedoc_root.A potential security vulnerability has been discovered inOracle JSP releases 1.0.x through 1.1.1 (inApache/Jserv). This vulnerability permits access to andexecution of unintended JSP files outside the doc_root inApache/Jserv. For example, accessinghttp://www.example.com/a.jsp//..//..//..//..//..//../b.jspwill execute b.jsp outside the doc_root instead of a.jspif there is a b.jsp file in the matching directory.Further, Jserv Releases 1.0.x - 1.0.2 have additionalvulnerability:Due to a bug in Apache/Jserv path translation, anyURL that looks like:http://host:port/servlets/a.jsp, makes Oracle JSPexecute 'd:\servlets\a.jsp' if such a directorypath actually exists. Thus, a URL virtual path, anactual directory path and the Oracle JSP name(when using Oracle Apache/JServ) must match forthis potential vulnerability to occur.Vulnerable systems:Oracle8i Release 8.1.7, iAS Release version 1.0.2Oracle JSP, Apache/JServ Releases version 1.0.x - 1.1.1Solution:Upgrade to OJSP Release 1.1.2.0.0, available on OracleTechnology Network's OJSP web site.Risk factor : High"; script_description(english:desc["english"]);  summary["english"] = "Oracle Jserv Server type and version"; script_summary(english:summary["english"]);  script_category(ACT_GATHER_INFO);  script_copyright(english:"This script is Copyright (C) 2002 Michael Scheidell"); family["english"] = "General"; script_family(english:family["english"]); script_dependencie("find_service.nes", "httpver.nasl", "no404.nasl",  "http_version.nasl"); script_require_ports("Services/www", 80); script_require_keys("www/apache"); exit(0);}## The script code starts here#include("http_func.inc");include("http_keepalive.inc");port = get_http_port(default:80);str = http_get_cache(item:"/", port:port);if(ereg(pattern:".*apachejserv/1\.(0|1\.[0-1][^0-9])",string:str))      security_hole(port);

⌨️ 快捷键说明

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