📄 webcalendar_info_disclosure.nasl
字号:
## This script was written by David Maciejak <david dot maciejak at kyxar dot fr># This script is released under the GNU GPL v2## kst-depend-miscif(description){ script_id(80021); script_version("$Revision: 1.3 $"); script_bugtraq_id(17853); script_xref(name:"OSVDB", value:"25280"); script_cve_id("CVE-2006-2247"); name["english"] = "WebCalendar User Account Enumeration Disclosure Issue"; script_name(english:name["english"]); desc["english"] = "Synopsis:The remote web server is affected by an information disclosure issue. Description:The version of WebCalendar on the remote host is prone to a useraccount enumeration weakness in that in response to login attempts itreturns different error messages depending on whether the user existsor the password is invalid. See also:http://www.securityfocus.com/archive/1/433053/30/0/threadedhttp://www.securityfocus.com/archive/1/436263/30/0/threadedhttp://www.nessus.org/u?2fe61fc9Solution :Upgrade to WebCalendar 1.0.4 or later.Risk factor : Medium / CVSS Base Score : 5.0(CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N)"; script_description(english:desc["english"]); summary["english"] = "Checks for WebCalendar User Account Enumeration Disclosure weakness"; script_summary(english:summary["english"]); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2006 David Maciejak"); family["english"] = "CGI abuses"; family["francais"] = "CGI abuses"; script_family(english:family["english"], francais:family["francais"]); script_dependencies("webcalendar_detect.nasl"); script_exclude_keys("Settings/disable_cgi_scanning"); script_require_ports("Services/www", 80); exit(0);}#codeinclude("http_func.inc");include("http_keepalive.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, "/webcalendar"));if (isnull(install)) exit(0);matches = eregmatch(string:install, pattern:"^(.+) under (/.*)$");if (!isnull(matches)) { dir = matches[2]; url = string(dir, "/login.php"); req = http_get(item:url, port:port); res = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE); if (res == NULL) exit(0); if ("webcalendar_session=deleted; expires" >< res && '<input name="login" id="user"' >< res) { postdata=string( "login=nessus", unixtime(), "&", "password=nessus" ); req = string( "POST ", url, " HTTP/1.1\r\n", "Host: ", get_host_name(), "\r\n", "Content-Type: application/x-www-form-urlencoded\r\n", "Content-Length: ", strlen(postdata), "\r\n", "\r\n", postdata ); #display("req='", req, "'.\n"); res = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE); #display("res='", res, "'.\n"); if (res == NULL) exit(0); if ("Invalid login: no such user" >< res) { security_warning(port); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -