[Openvas-commits] r8152 - in trunk/openvas-plugins: . scripts
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jun 23 16:49:10 CEST 2010
Author: mime
Date: 2010-06-23 16:49:06 +0200 (Wed, 23 Jun 2010)
New Revision: 8152
Added:
trunk/openvas-plugins/scripts/gb_weborf_41064.nasl
Modified:
trunk/openvas-plugins/ChangeLog
trunk/openvas-plugins/scripts/gb_weborf_webserver_detect.nasl
Log:
Added new plugin. Get version from 404 Site if "Server:" header does not contain a version.
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2010-06-23 14:34:19 UTC (rev 8151)
+++ trunk/openvas-plugins/ChangeLog 2010-06-23 14:49:06 UTC (rev 8152)
@@ -1,5 +1,14 @@
2010-06-23 Michael Meyer <michael.meyer at greenbone.net>
+ * scripts/gb_weborf_41064.nasl:
+ Added new plugin.
+
+ * scripts/gb_weborf_webserver_detect.nasl:
+ Get version from 404 Site if "Server:" header does not contain
+ a version.
+
+2010-06-23 Michael Meyer <michael.meyer at greenbone.net>
+
* scripts/gb_fedora_2008_8425_gnome-web-photo_fc9.nasl,
scripts/gb_fedora_2010_5515_yelp_fc11.nasl,
scripts/gb_fedora_2008_8764_dbus_fc9.nasl,
Added: trunk/openvas-plugins/scripts/gb_weborf_41064.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_weborf_41064.nasl 2010-06-23 14:34:19 UTC (rev 8151)
+++ trunk/openvas-plugins/scripts/gb_weborf_41064.nasl 2010-06-23 14:49:06 UTC (rev 8152)
@@ -0,0 +1,82 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# Weborf HTTP Header Processing Denial Of Service Vulnerability
+#
+# Authors:
+# Michael Meyer <michael.meyer at greenbone.net>
+#
+# Copyright:
+# Copyright (c) 2010 Greenbone Networks GmbH
+#
+# 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(100691);
+ script_bugtraq_id(41064);
+ script_version ("1.0-$Revision$");
+
+ script_name("Weborf HTTP Header Processing Denial Of Service Vulnerability");
+
+desc = "Overview:
+Weborf is prone to a denial-of-service vulnerability.
+
+Remote attackers can exploit this issue to cause the application to
+crash, denying service to legitimate users.
+
+Weborf 0.12.1 is vulnerable; prior versions may also be affected.
+
+Solution:
+Updates are available. Please see the references for details.
+
+References:
+https://www.securityfocus.com/bid/41064
+http://freshmeat.net/projects/weborf/releases/318531
+http://code.google.com/p/weborf/source/browse/branches/0.12.2/CHANGELOG?spec=svn437&r=437";
+
+ script_tag(name:"risk_factor", value:"Medium");
+ script_description(desc);
+ script_summary("Determine if Weborf version is < 0.12.2");
+ script_category(ACT_GATHER_INFO);
+ script_family("Web Servers");
+ script_copyright("This script is Copyright (C) 2010 Greenbone Networks GmbH");
+ script_dependencies("find_service.nes");
+ script_require_ports("Services/www", 8080);
+ exit(0);
+}
+
+
+include("http_func.inc");
+include("http_keepalive.inc");
+include("version_func.inc");
+
+port = get_http_port(default:8080);
+if(!get_port_state(port))exit(0);
+
+if(!vers = get_kb_item(string("www/", port, "/Weborf")))exit(0);
+
+if(!isnull(vers) && vers >!< "unknown") {
+
+ if(version_is_less_equal(version: vers, test_version: "0.12.2")) {
+ security_warning(port:port);
+ exit(0);
+ }
+
+}
+
+exit(0);
+
Property changes on: trunk/openvas-plugins/scripts/gb_weborf_41064.nasl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Modified: trunk/openvas-plugins/scripts/gb_weborf_webserver_detect.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_weborf_webserver_detect.nasl 2010-06-23 14:34:19 UTC (rev 8151)
+++ trunk/openvas-plugins/scripts/gb_weborf_webserver_detect.nasl 2010-06-23 14:49:06 UTC (rev 8152)
@@ -46,9 +46,10 @@
include("http_func.inc");
+include("http_keepalive.inc");
## Get Http Port
-port = get_http_port(default:80);
+port = get_http_port(default:8080);
if(!port){
exit(0);
}
@@ -62,6 +63,17 @@
## Get Version from Banner
ver = eregmatch(pattern:"Weborf/([0-9.]+)",string:banner);
+ if(!ver[0]) {
+ url = string(dir, "/lhlkjlkjkj-",rand(),".html");
+ req = http_get(item:url, port:port);
+ buf = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);
+
+ if(buf == NULL)exit(0);
+
+ ver = eregmatch(pattern:"Generated by Weborf/([0-9.]+)", string:buf);
+
+ }
+
## Set Weborf Version in KB
if(ver[1] != NULL)
{
More information about the Openvas-commits
mailing list