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

📄 netscaler_web_cookie_info.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
# netscaler_web_cookie_info.nasl# GPLv2## History:## 1.00, 11/21/07# - Initial release# kst-depend-rpc    desc["english"]="Synopsis :The remote web server is prone to an information disclosure attack. Description :It is possible to extract information about the remote CitrixNetScaler appliance obtained from the web management interface'ssession cookie, including the appliance's main IP address and softwareversion. See also :http://www.securityfocus.com/archive/1/484182/100/0/threadedRisk factor :Medium / CVSS Base Score : 5.0(CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N)";if (description)    {    script_id(80023);    script_version("$Revision: 1.3 $");    name["english"]="NetScaler web management cookie information";    summary["english"]="Reports NetScaler web cookie information";    family["english"]="Misc.";    script_name(english:name["english"]);    script_description(english:desc["english"]);    script_summary(english:summary["english"]);    script_family(english:family["english"]);    script_category(ACT_GATHER_INFO);    script_cve_id("CVE-2007-6193");    script_xref(name:"OSVDB", value:"44155");    script_copyright(english:"This script is Copyright (c) 2007 nnposter");    script_dependencies("netscaler_web_login.nasl");    script_require_keys("www/netscaler");    script_require_ports("Services/www",80);    exit(0);    }if (!get_kb_item("www/netscaler")) exit(0);if (!get_kb_item("http/password")) exit(0);include("misc_func.inc");include("url_func.inc");include("http_func.inc");function cookie_extract (cookie,parm){local_var match;match=eregmatch(string:cookie,pattern:' '+parm+'=([^; \r\n]*)',icase:TRUE);if (isnull(match)) return;return match[1];}port=get_http_port(default:80);if (!get_kb_item("www/netscaler/"+port)) exit(0);cookie=get_kb_item("/tmp/http/auth/"+port);if (!cookie) exit(0);found="";nsip=cookie_extract(cookie:cookie,parm:"domain");if (nsip && nsip+"."=~"^([0-9]{1,3}\.){4}$")    found+='Main IP address  : '+nsip+'\n';nsversion=urldecode(estr:cookie_extract(cookie:cookie,parm:"nsversion"));if (nsversion)    {    replace_or_set_kb_item(name:"www/netscaler/"+port+"/version",                           value:nsversion);    found+='Software version : '+nsversion+'\n';    }if (!found) exit(0);report = string(    desc["english"],    "\n\n",    "Plugin output :\n",    "\n",    "It was possible to determine the following information about the\n",    "Citrix NetScaler appliance by examining the web management cookie :\n",    "\n",    found);security_warning(port:port,data:report);

⌨️ 快捷键说明

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