Lucene search
K

Apache HTTP Server 'mod_proxy' Reverse Proxy Information Disclosure Vulnerability

🗓️ 11 Oct 2011 00:00:00Reported by This script is Copyright (C) 2011 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 52 Views

Apache HTTP Server 'mod_proxy' Reverse Proxy Information Disclosure Vulnerabilit

Related
Refs
Code
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_apache_49957.nasl 5424 2017-02-25 16:52:36Z teissa $
#
# Apache HTTP Server 'mod_proxy' Reverse Proxy Information Disclosure Vulnerability
#
# Authors:
# Michael Meyer <[email protected]>
#
# 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.
###############################################################################

tag_summary = "Apache HTTP Server is prone to an information disclosure
vulnerability.

An attacker can exploit this vulnerability to gain access to sensitive
information.";

tag_solution = "The vendor released an update. Please see the references for details.";

if (description)
{
 script_id(103293);
 script_tag(name:"creation_date", value:"2011-10-11 17:46:33 +0200 (Tue, 11 Oct 2011)");
 script_tag(name:"last_modification", value:"$Date: 2017-02-25 17:52:36 +0100 (Sat, 25 Feb 2017) $");
 script_bugtraq_id(49957,50802);
 script_cve_id("CVE-2011-3368","CVE-2011-4317");
 script_tag(name:"cvss_base", value:"5.0");
 script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
 script_version ("$Revision: 5424 $");

 script_name("Apache HTTP Server 'mod_proxy' Reverse Proxy Information Disclosure Vulnerability");

 script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/49957");
 script_xref(name : "URL" , value : "http://httpd.apache.org/");
 script_xref(name : "URL" , value : "http://seclists.org/fulldisclosure/2011/Oct/232");

 script_category(ACT_ATTACK);
  script_tag(name:"qod_type", value:"remote_banner");
 script_family("Web Servers");
 script_copyright("This script is Copyright (C) 2011 Greenbone Networks GmbH");
 script_dependencies("gb_get_http_banner.nasl");
 script_mandatory_keys("apache/banner");
 script_require_ports("Services/www", 80);
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "summary" , value : tag_summary);
 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 && banner !~ "HTTP/1.. 50[2|3]"))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 ||
   ereg(pattern:"HTTP/1.. 502", string:result2)) { 

  security_message(port:port);
  exit(0);
  
}  

# CVE-2011-4317
req = string("GET @localhost::65535 HTTP/1.0\r\n\r\n");
result = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);

if(ereg(pattern:"HTTP/1.. 503", string:result)) {
  security_message(port:port);
  exit(0);
}  

exit(0);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation