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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Oct 11 17:46:40 CEST 2011


Author: mime
Date: 2011-10-11 17:46:33 +0200 (Tue, 11 Oct 2011)
New Revision: 11777

Added:
   trunk/openvas-plugins/scripts/gb_apache_49957.nasl
Modified:
   trunk/openvas-plugins/ChangeLog
Log:
Added new plugin

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2011-10-11 15:36:40 UTC (rev 11776)
+++ trunk/openvas-plugins/ChangeLog	2011-10-11 15:46:33 UTC (rev 11777)
@@ -1,3 +1,8 @@
+2011-10-10  Michael Meyer <michael.meyer at greenbone.net>
+
+	* scripts/gb_apache_49957.nasl:
+	Added new plugin.
+
 2011-10-11  Henri Doreau <henri.doreau at greenbone.net>
 
 	* scripts/deb_2118_1.nasl,

Added: trunk/openvas-plugins/scripts/gb_apache_49957.nasl
===================================================================
--- trunk/openvas-plugins/scripts/gb_apache_49957.nasl	2011-10-11 15:36:40 UTC (rev 11776)
+++ trunk/openvas-plugins/scripts/gb_apache_49957.nasl	2011-10-11 15:46:33 UTC (rev 11777)
@@ -0,0 +1,91 @@
+###############################################################################
+# OpenVAS Vulnerability Test
+# $Id$
+#
+# Apache HTTP Server 'mod_proxy' Reverse Proxy Information Disclosure Vulnerability
+#
+# 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.
+###############################################################################
+
+if (description)
+{
+ script_id(103293);
+ script_bugtraq_id(49957);
+ script_cve_id("CVE-2011-3368");
+ script_tag(name:"cvss_base", value:"5.0");
+ script_tag(name:"risk_factor", value:"Medium");
+ script_version ("1.0-$Revision$");
+
+ script_name("Apache HTTP Server 'mod_proxy' Reverse Proxy Information Disclosure Vulnerability");
+
+desc = "Overview:
+Apache HTTP Server is prone to an information disclosure
+vulnerability.
+
+An attacker can exploit this vulnerability to gain access to sensitive
+information.
+
+Solution:
+The vendor released an update. Please see the references for details.
+
+References:
+http://www.securityfocus.com/bid/49957
+http://httpd.apache.org/
+http://seclists.org/fulldisclosure/2011/Oct/232";
+
+ script_description(desc);
+ script_summary("Determine if installed Apache is vulnerable");
+ script_category(ACT_ATTACK);
+ script_family("Web Servers");
+ script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
+ script_dependencies("find_service.nes");
+ script_require_ports("Services/www", 80);
+ exit(0);
+}
+
+
+include("http_func.inc");
+include("host_details.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)exit(0);
+
+req = string("GET @localhost HTTP/1.0\r\n\r\n");
+result = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);
+
+if(ereg(pattern:"HTTP/1.. 400", string:result))exit(0); # 400 means not vulnerable
+
+ip3 = "5555.6666.7777.8888"; 
+
+req = string("GET @", ip3 ," HTTP/1.0\r\n\r\n");
+result2 = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);
+
+if(ereg(pattern:"HTTP/1.. 200", string:result2) && "Bad Gateway" >< result2) { 
+
+  security_warning(port:port);
+  exit(0);
+  
+}  
+  
+exit(0);


Property changes on: trunk/openvas-plugins/scripts/gb_apache_49957.nasl
___________________________________________________________________
Name: svn:keywords
   + Id Revision



More information about the Openvas-commits mailing list