cyberstrong_eshop_sql.nasl

来自「漏洞扫描源码,可以扫描linux,windows,交换机路由器」· NASL 代码 · 共 78 行

NASL
78
字号
## This script was written by Josh Zlatin-Amishav <josh at tkos dot co dot il>## This script is released under the GNU GPLv2## Fixed by Tenable:#   - added See also.if(description){ script_id(19391); script_cve_id("CVE-2003-0509"); script_bugtraq_id(14101, 14103, 14112); if (defined_func("script_xref")) {   script_xref(name:"OSVDB", value:"10098");   script_xref(name:"OSVDB", value:"10099");   script_xref(name:"OSVDB", value:"10100"); } script_version ("$Revision: 38 $"); name["english"] = "Cyberstrong eShop SQL Injection Vulnerabilities"; script_name(english:name["english"]); desc["english"] = "The remote host is running Cyberstrong eShop, a shopping cart writtenin ASP.The remote version of this software contains several input validationflaws leading to SQL injection vulnerabilities.  An attacker mayexploit these flaws to affect database queries, possibly resulting indisclosure of sensitive information (for example, the admin's user andpassword) and attacks against the underlying database. See also : http://archives.neohapsis.com/archives/bugtraq/2003-07/0006.htmlSolution : None at this timeRisk factor : High"; script_description(english:desc["english"]); summary["english"] = "Checks for an SQL injection in Cyberstrong eShop v4.2"; script_summary(english:summary["english"]); script_category(ACT_ATTACK); script_family(english:"CGI abuses"); script_copyright(english:"Copyright (C) 2005 Josh Zlatin-Amishav"); script_dependencies("http_version.nasl"); script_require_ports("Services/www", 80); script_exclude_keys("Settings/disable_cgi_scanning"); exit(0);}include("http_func.inc");include("http_keepalive.inc");port = get_http_port(default:80);if(!get_port_state(port))exit(0);if(!can_host_asp(port:port)) exit(0);function check(url){ req = http_get(item:url +"/20Review.asp?ProductCode='", port:port); res = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE); if ( res == NULL ) exit(0); if ( 'Microsoft OLE DB Provider for ODBC Drivers' >< res && 'ORDER BY TypeID' >< res ) {        security_hole(port);        exit(0); }}foreach dir ( cgi_dirs() ){  check(url:dir);}

⌨️ 快捷键说明

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