[Openvas-commits] r3229 - in trunk/openvas-plugins: . scripts

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon May 4 20:25:04 CEST 2009


Author: mime
Date: 2009-05-04 20:25:02 +0200 (Mon, 04 May 2009)
New Revision: 3229

Added:
   trunk/openvas-plugins/scripts/jetty_34800.nasl
   trunk/openvas-plugins/scripts/webcalendar_detect.nasl
Modified:
   trunk/openvas-plugins/ChangeLog
Log:
Added new plugins

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2009-05-04 11:08:55 UTC (rev 3228)
+++ trunk/openvas-plugins/ChangeLog	2009-05-04 18:25:02 UTC (rev 3229)
@@ -1,4 +1,9 @@
 2009-05-04 Michael Meyer <mime at gmx.de>
+	* scripts/webcalendar_detect.nasl
+	scripts/jetty_34800.nasl:
+	Added new plugins
+
+2009-05-04 Michael Meyer <mime at gmx.de>
 	* scripts/sip_detection.nasl:
 	Fixed typo which prevented detection of sip. 
 	Added detection of Asterisk PBX.

Added: trunk/openvas-plugins/scripts/jetty_34800.nasl
===================================================================
--- trunk/openvas-plugins/scripts/jetty_34800.nasl	2009-05-04 11:08:55 UTC (rev 3228)
+++ trunk/openvas-plugins/scripts/jetty_34800.nasl	2009-05-04 18:25:02 UTC (rev 3229)
@@ -0,0 +1,88 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id:$
+#
+# Jetty Cross Site Scripting and Information Disclosure
+# Vulnerabilities
+#
+# Authors
+# Michael Meyer
+#
+# Copyright:
+# Copyright (c) 2009 Michael Meyer
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2
+# (or any later version), as published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+###############################################################################
+
+if (description)
+{
+ script_id(100183);
+ script_bugtraq_id(34800);
+ script_version ("1.0");
+
+ script_name(english:"Jetty Cross Site Scripting and Information Disclosure Vulnerabilities");
+ desc["english"] = "
+
+ Overview:
+  Jetty is prone to a cross-site scripting vulnerability and an
+  information-disclosure vulnerability.
+
+  An attacker may leverage these issues to execute arbitrary script
+  code in the browser of an unsuspecting user in the context of the
+  affected site, steal cookie-based authentication credentials, and
+  obtain sensitive information.
+
+  Jetty 6.1.16 and prior versions are affected. 
+
+ Solution:
+  The vendor has released an update. See http://jetty.mortbay.org/jetty/index.html
+  for more information.
+
+ See also:
+  http://www.securityfocus.com/bid/34800
+
+ Risk factor : Medium";
+
+ script_description(english:desc["english"]);
+ script_summary(english:"Determine if Jetty is vulnerable to XSS and Information Disclosure");
+ script_category(ACT_GATHER_INFO);
+ script_family(english:"Web Servers");
+ script_copyright(english:"This script is Copyright (C) 2009 Michael Meyer");
+ script_dependencie("find_service.nes", "http_version.nasl");
+ script_require_ports("Services/www", 80);
+ exit(0);
+}
+
+include("misc_func.inc");
+include("http_func.inc");
+include("version_func.inc");
+
+port = get_http_port(default:80);
+if(!get_port_state(port)) exit(0);
+if(get_kb_item("Services/www/" + port + "/embedded" ))exit(0);
+
+banner = get_http_banner(port:port);
+if (!banner)exit(0);
+if(!egrep(pattern:"Server: Jetty", string:banner) ) exit(0);
+
+version = eregmatch(pattern: "Server: Jetty\(([0-9.]+[pre0-9]*)\)", string: banner);
+
+if(!isnull(version[1])) {
+  if(version_is_less_equal(version: version[1], test_version: "6.1.16")) {
+   security_warning(port:port);
+   exit(0);
+ }
+}  
+
+exit(0);


Property changes on: trunk/openvas-plugins/scripts/jetty_34800.nasl
___________________________________________________________________
Name: svn:keyword
   + ID

Added: trunk/openvas-plugins/scripts/webcalendar_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/webcalendar_detect.nasl	2009-05-04 11:08:55 UTC (rev 3228)
+++ trunk/openvas-plugins/scripts/webcalendar_detect.nasl	2009-05-04 18:25:02 UTC (rev 3229)
@@ -0,0 +1,111 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# WebCalendar Detection
+#
+# Authors:
+# Michael Meyer
+#
+# Copyright:
+# Copyright (c) 2009 Michael Meyer
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2
+# (or any later version), as published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+###############################################################################
+
+# need desc here to modify it later in script.
+desc["english"] = "
+
+ Overview:
+  This host is running WebCalendar, a PHP-based calendar application.
+
+ See also:
+  http://www.k5n.us/webcalendar.php
+
+ Risk factor : None";
+
+if (description)
+{
+ script_id(100184);
+ script_version ("1.0");
+
+ script_name(english:"WebCalendar Detection");  
+
+ script_description(english:desc["english"]);
+ script_summary(english:"Checks for the presence of WebCalendar");
+ script_category(ACT_GATHER_INFO);
+ script_family(english:"Service detection");
+ script_copyright(english:"This script is Copyright (C) 2009 Michael Meyer");
+ script_dependencie("find_service.nes", "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");
+include("global_settings.inc");
+
+port = get_http_port(default:80);
+
+if(!get_port_state(port))exit(0);
+if(!can_host_php(port:port))exit(0);
+
+dirs = make_list("/webcalendar","/calendar",cgi_dirs());
+foreach dir (dirs) {
+
+ url = string(dir, "/login.php"); 
+ req = http_get(item:url, port:port);
+ buf = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);  
+ if( buf == NULL )continue;
+ 
+ if(egrep(pattern: "WebCalendar", string: buf, icase: TRUE) &&
+    egrep(pattern:"Set-Cookie: webcalendar", string: buf) )
+ { 
+     if(strlen(dir)>0) {
+        install=dir;
+     } else {
+        install=string("/");
+     }  
+    
+    vers = string("unknown");
+
+    ### try to get version.
+    version = eregmatch(string: buf, pattern: "WebCalendar v([0-9.]+) \(",icase:TRUE);
+    
+    if ( !isnull(version[1]) ) {
+       vers=version[1];
+    } 
+    
+    set_kb_item(name: string("www/", port, "/webcalendar"), value: string(vers," under ",install));
+
+    info = string("None\n\nWebCalendar Version '");
+    info += string(vers);
+    info += string("' was detected on the remote host in the following directory(s):\n\n");
+    info += string(install, "\n"); 
+
+    desc = ereg_replace(
+        string:desc["english"],
+        pattern:"None$",
+        replace:info
+    );    
+       
+       if(report_verbosity > 0) {
+         security_note(port:port,data:desc);
+       }
+       exit(0);
+  
+ }
+}
+exit(0);


Property changes on: trunk/openvas-plugins/scripts/webcalendar_detect.nasl
___________________________________________________________________
Name: svn:keyword
   + ID



More information about the Openvas-commits mailing list