Lucene search
+L

Private IP address leaked in HTTP headers

🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2001 Alert4Web.com, 2003 Westpoint LtdType 
openvas
 openvas
🔗 plugins.openvas.org👁 874 Views

Private IP address leaked in HTTP headers. Known vulnerability impacting IIS 4.0, Microsoft Exchange CAS, OWA, and other webservers

Related
Refs
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2000-0649
29 May 201815:50
circl
cve
CVE
CVE-2000-0649
3 Aug 200004:00
cve
cvelist
Cvelist
CVE-2000-0649
3 Aug 200004:00
cvelist
exploitdb
Exploit DB
Microsoft IIS 2.0/3.0/4.0/5.0/5.1 - Internal IP Address Disclosure
13 Jul 200000:00
exploitdb
nessus
Tenable Nessus
Web Server HTTP Header Internal IP Disclosure
14 Sep 200100:00
nessus
metasploit
Metasploit
Microsoft IIS HTTP Internal IP Disclosure
20 Feb 201204:44
metasploit
nvd
NVD
CVE-2000-0649
13 Jul 200004:00
nvd
packetstorm
Packet Storm
Microsoft IIS HTTP Internal IP Disclosure
1 Sep 202400:00
packetstorm
# 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 );

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

01 Aug 2023 00:00Current
6.7Medium risk
Vulners AI Score6.7
CVSS 22.6
EPSS0.76558
874