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

📄 cubecart_xss.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## Josh Zlatin-Amishav <josh at ramat dot cc>## This script is released under the GNU GPLv2#if(description){ script_id(19945); script_cve_id("CVE-2005-3152"); script_bugtraq_id(14962); script_version ("$Revision: 38 $"); name["english"] = "Multiple CubeCart XSS vulnerabilities"; script_name(english:name["english"]); desc["english"] = "Synopsis :The remote web server contains several PHP scripts that are prone tocross-site scripting attacks. Description :The remote version of CubeCart contains several cross-site scriptingvulnerabilities to due to its failure to properly sanitize user-suppliedinput of certain variables to the 'index.php' and 'cart.php' scripts. See also : http://lostmon.blogspot.com/2005/09/cubecart-303-multiple-variable-cross.htmlSolution : Upgrade to CubeCart version 3.0.4 or later.Risk factor : Low / CVSS Base Score : 3 (AV:R/AC:H/Au:NR/C:P/A:N/I:N/B:C)"; script_description(english:desc["english"]); summary["english"] = "Checks for XSS in index.php"; script_summary(english:summary["english"]); script_category(ACT_ATTACK); script_family(english:"CGI abuses : XSS"); script_copyright(english:"Copyright (C) 2005 Josh Zlatin-Amishav"); script_dependencies("http_version.nasl", "cross_site_scripting.nasl","cubecart_detect.nasl"); script_require_ports("Services/www", 80); exit(0);}include("http_func.inc");include("http_keepalive.inc");include("url_func.inc");port = get_http_port(default:80);if(!get_port_state(port))exit(0);if(!can_host_php(port:port)) exit(0);if ( get_kb_item("www/"+port+"/generic_xss") ) exit(0);# Make sure this is really cubecartinstall = get_kb_item(string("www/", port, "/cubecart"));if (isnull(install)) exit(0);matches = eregmatch(string:install, pattern:"^(.+) under (/.*)$");if (!isnull(matches)) { ver = matches[1]; dir = matches[2]; # A simple alert. xss = "<script>alert('" + SCRIPT_NAME + "');</script>"; # nb: the url-encoded version is what we need to pass in. exss = urlencode(str:xss); req = http_get(   item:string(     dir, "/index.php?",     'searchStr=">', exss,      "&act=viewCat&Submit=Go"   ),    port:port ); res = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE); if ( xss >< res ) {        security_note(port);        exit(0); }}

⌨️ 快捷键说明

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