[Openvas-commits] r10606 - in trunk/openvas-plugins: . scripts
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Mar 21 17:38:51 CET 2011
Author: mime
Date: 2011-03-21 17:38:45 +0100 (Mon, 21 Mar 2011)
New Revision: 10606
Added:
trunk/openvas-plugins/scripts/gb_apache_etag_6939.nasl
Modified:
trunk/openvas-plugins/ChangeLog
Log:
Forgotten to execute "svn add" for the last commit.
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2011-03-21 16:35:48 UTC (rev 10605)
+++ trunk/openvas-plugins/ChangeLog 2011-03-21 16:38:45 UTC (rev 10606)
@@ -1,6 +1,11 @@
2011-03-21 Michael Meyer <michael.meyer at greenbone.net>
* scripts/gb_apache_etag_6939.nasl:
+ Forgotten to execute "svn add" for the last commit.
+
+2011-03-21 Michael Meyer <michael.meyer at greenbone.net>
+
+ * scripts/gb_apache_etag_6939.nasl:
Added new plugin.
2011-03-21 Henri Doreau <henri.doreau at greenbone.net>
Added: trunk/openvas-plugins/scripts/gb_apache_etag_6939.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_apache_etag_6939.nasl 2011-03-21 16:35:48 UTC (rev 10605)
+++ trunk/openvas-plugins/scripts/gb_apache_etag_6939.nasl 2011-03-21 16:38:45 UTC (rev 10606)
@@ -0,0 +1,101 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# Apache Web Server ETag Header Information Disclosure Weakness
+#
+# Authors:
+# Michael Meyer <michael.meyer at greenbone.net>
+#
+# Copyright:
+# Copyright (c) 2011 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.
+###############################################################################
+
+desc = "Overview:
+A weakness has been discovered in Apache web servers that are
+configured to use the FileETag directive. Due to the way in which
+Apache generates ETag response headers, it may be possible for an
+attacker to obtain sensitive information regarding server files.
+Specifically, ETag header fields returned to a client contain the
+file's inode number.
+
+Exploitation of this issue may provide an attacker with information
+that may be used to launch further attacks against a target network.
+
+OpenBSD has released a patch that addresses this issue. Inode numbers
+returned from the server are now encoded using a private hash to avoid
+the release of sensitive information.
+
+Solution:
+OpenBSD has released a patch to address this issue.
+
+Novell has released TID10090670 to advise users to apply the available
+workaround of disabling the directive in the configuration file for
+Apache releases on NetWare. Please see the attached Technical
+Information Document for further details.
+
+References:
+https://www.securityfocus.com/bid/6939
+http://httpd.apache.org/docs/mod/core.html#fileetag
+http://www.openbsd.org/errata32.html
+http://support.novell.com/docs/Tids/Solutions/10090670.html";
+
+if (description)
+{
+ script_id(103122);
+ script_bugtraq_id(6939);
+ script_version ("1.0-$Revision$");
+
+ script_name("Apache Web Server ETag Header Information Disclosure Weakness");
+
+ script_tag(name:"risk_factor", value:"Medium");
+ script_description(desc);
+ script_summary("Determine if Apache ETag header fields returned to a client contain the file's inode number");
+ script_category(ACT_GATHER_INFO);
+ script_family("Web application abuses");
+ script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
+ script_dependencies("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");
+
+port = get_http_port(default:80);
+if(!get_port_state(port))exit(0);
+
+banner = get_http_banner(port:port);
+if(!banner || "Apache" >!< banner || "ETag" >!< banner)exit(0);
+
+etag = eregmatch(pattern:'ETag: "([^"]+)"', string:banner);
+if(isnull(etag[1]))exit(0);
+
+etag = split(etag, sep:"-",keep:FALSE);
+if((max_index(etag)<3))exit(0);
+
+inode = string("0x",etag[0]);
+size = string("0x",etag[1]);
+
+inode = (hex2dec(xvalue:inode));
+size = (hex2dec(xvalue:size));
+
+report = string("\n\nInformation that was gathered:\nInode: ", inode,"\nSize: ", size,"\n");
+
+security_warning(port:port,data:string(desc,report));
+
+exit(0);
Property changes on: trunk/openvas-plugins/scripts/gb_apache_etag_6939.nasl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
More information about the Openvas-commits
mailing list