Lucene search

K
openvasCopyright (C) 2001 Alert4Web.com, 2003 Westpoint LtdOPENVAS:136141256231010759
HistoryNov 03, 2005 - 12:00 a.m.

Private IP address leaked in HTTP headers

2005-11-0300:00:00
Copyright (C) 2001 Alert4Web.com, 2003 Westpoint Ltd
plugins.openvas.org
810

2.6 Low

CVSS2

Attack Vector

NETWORK

Attack Complexity

HIGH

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:H/Au:N/C:P/I:N/A:N

6.7 Medium

AI Score

Confidence

Low

0.004 Low

EPSS

Percentile

72.3%

This web server leaks a private IP address through its HTTP
headers.

# SPDX-FileCopyrightText: 2001 Alert4Web.com, 2003 Westpoint Ltd
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.10759");
  script_version("2023-08-01T13:29:10+0000");
  script_tag(name:"last_modification", value:"2023-08-01 13:29:10 +0000 (Tue, 01 Aug 2023)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_cve_id("CVE-2000-0649");
  script_tag(name:"cvss_base", value:"2.6");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:H/Au:N/C:P/I:N/A:N");
  script_name("Private IP address leaked in HTTP headers");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2001 Alert4Web.com, 2003 Westpoint Ltd");
  script_family("Web Servers");
  script_dependencies("find_service.nasl", "httpver.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 80);
  script_exclude_keys("keys/is_private_addr", "Settings/disable_cgi_scanning");

  script_xref(name:"URL", value:"https://support.microsoft.com/en-us/kb/218180");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/1499");
  script_xref(name:"URL", value:"http://foofus.net/?p=758");

  script_tag(name:"summary", value:"This web server leaks a private IP address through its HTTP
  headers.");

  script_tag(name:"impact", value:"This may expose internal IP addresses that are usually hidden or
  masked behind a Network Address Translation (NAT) Firewall or proxy server.");

  script_tag(name:"insight", value:"There is a known issue with IIS 4.0 doing this in its default
  configuration.

  Furthermore Microsoft Exchange CAS and OWA as well as other webservers or load balancers might be
  also affected.");

  script_tag(name:"solution", value:"See the references for possible workarounds and updates.");

  script_tag(name:"solution_type", value:"Workaround");
  script_tag(name:"qod_type", value:"remote_banner_unreliable"); #TBD: remote_banner?

  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("network_func.inc");

if( is_private_addr() )
  exit( 0 );

port = http_get_port( default:80 );
useragent = http_get_user_agent();

foreach dir( make_list( "/", "/images", "/Autodiscover", "/Autodiscover/Autodiscover.xml", "/Microsoft-Server-ActiveSync",
                        "/Microsoft-Server-ActiveSync/default.css", "/ECP", "/EWS", "/EWS/Exchange.asmx", "/Exchange", "/OWA",
                        "/Microsoft-Server-ActiveSync/default.eas", "/Rpc", "/EWS/Services.wsdl", "/ecp", "/OAB", "/aspnet_client", "/PowerShell" ) ) {

  # Craft our own HTTP/1.0 request for the server banner.
  # Note: HTTP/1.1 is rarely useful for detecting this flaw.
  req = 'GET ' + dir + ' HTTP/1.0\r\n' +
        'User-Agent: ' + useragent + '\r\n' +
        '\r\n';
  buf = http_keepalive_send_recv( port:port, data:req, headersonly:TRUE );

  # nb: Check for private IP addresses in the banner
  # Ranges are: 10.x.x.x, 172.16-31.x.x, 192.168.x.x
  # TBD: regex for all IPv6 addresses and then pass to is_private_addr(addr, use_globals:FALSE) ?
  private_ip = eregmatch( pattern:"([^12]10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|172\.(1[6-9]|2[0-9]|3[01])\.[0-9]{1,3}\.[0-9]{1,3}|192\.168\.[0-9]{1,3}\.[0-9]{1,3})", string:buf );
  if( ! isnull( private_ip ) && ! egrep( pattern:"Oracle.*/10\.", string:buf ) ) {
    report = "This web server leaks the following private IP address : " + private_ip[0] + '\n\n';
    report += http_report_vuln_url( port:port, url:dir );
    security_message( port:port, data:report );
    exit( 0 );
  }
}

exit( 99 );

2.6 Low

CVSS2

Attack Vector

NETWORK

Attack Complexity

HIGH

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:H/Au:N/C:P/I:N/A:N

6.7 Medium

AI Score

Confidence

Low

0.004 Low

EPSS

Percentile

72.3%

Related for OPENVAS:136141256231010759