📄 ldu_sql_injection.nasl
字号:
## This script was written by Josh Zlatin-Amishav <josh at ramat doti cc>## This script is released under the GNU GPLv2## Changes by Tenable Network Security :# - improved description# - do a more reliable test (if magic_quotes is on the host is not vulnerable)# - added references desc["english"] = "Synopsis : The remote web server contains a PHP script that permits SQL injectionand cross-site scripting attacks. Description :The remote version of Land Down Under is prone to various SQLinjection and cross-site scripting attacks provided PHP's'magic_quotes' setting is disabled due to its failure to sanitize therequest URI before using it in 'system/functions.php' in the function'ldu_log()'. A malicious user may be able to exploit this issue tomanipulate SQL queries, steal authentication cookies, and the like. In addition, it also fails to properly sanitize the user-suppliedsignature in forum posts.. A malicious user can exploit thisvulnerability to steal authentication cookies and manipulate the HTMLformat in 'forums.php'. See also :http://www.securityfocus.org/archive/1/408664http://www.neocrome.net/forums.php?m=posts&p=83412#83412http://archives.neohapsis.com/archives/bugtraq/2005-08/0395.htmlSolution : Upgrade to Land Down Under version 801 or later.Risk factor : Medium / CVSS Base Score : 4 (AV:R/AC:H/Au:NR/C:P/A:N/I:P/B:N)";if(description){ script_id(19678); script_cve_id("CVE-2005-2674", "CVE-2005-2675", "CVE-2005-2780"); script_bugtraq_id(14618, 14619, 14677); if (defined_func("script_xref")) { script_xref(name:"OSVDB", value:"19298"); } script_version ("$Revision: 116 $"); name["english"] = "Land Down Under <= 800 Multiple Vulnerabilities"; script_name(english:name["english"]); script_description(english:desc["english"]); summary["english"] = "Checks for SQL injection in LDU's index.php"; script_summary(english:summary["english"]); script_category(ACT_ATTACK); script_family(english:"CGI abuses"); script_copyright(english:"Copyright (C) 2005 Josh Zlatin-Amishav"); script_dependencie("ldu_detection.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);# Test an install.install = get_kb_item(string("www/", port, "/ldu"));if (isnull(install)) exit(0);matches = eregmatch(string:install, pattern:"^(.+) under (/.*)$");if (!isnull(matches)) { ver = matches[1]; dir = matches[2]; req = http_get( item:string( dir, "/index.php?", "m='", SCRIPT_NAME ), port:port ); res = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE); if ( egrep(string:res, pattern:string("MySQL error.+syntax to use near '", SCRIPT_NAME)) ) { security_warning(port); exit(0); } # Check the version number in case magic_quotes is enabled. if (ver =~ "^([0-7]|800)") { desc = str_replace( string:desc["english"], find:"See also :", replace:string( "***** OpenVAS has determined the vulnerability exists on the remote\n", "***** host simply by looking at the version number of Land Down\n", "***** Under installed there.\n", "\n", "See also :" ) ); security_warning(port:port, data:desc); exit(0); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -