Lucene search
+L

Microsoft Internet Information Services (IIS) Multiple Vulnerabilities (MS02-018) - Active Check

🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2002 Matt MooreType 
openvas
 openvas
🔗 plugins.openvas.org👁 133 Views

Microsoft Internet Information Services (IIS) Multiple Vulnerabilities (MS02-018) - Active Check. Vulnerable to remote buffer overflow and XSS attacks

Related
Refs
Code
# SPDX-FileCopyrightText: 2002 Matt Moore
# 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

# admins who installed this patch would necessarily not be vulnerable to CVE-2001-1325

CPE = "cpe:/a:microsoft:internet_information_services";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.10936");
  script_version("2024-06-06T05:05:36+0000");
  script_tag(name:"last_modification", value:"2024-06-06 05:05:36 +0000 (Thu, 06 Jun 2024)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_name("Microsoft Internet Information Services (IIS) Multiple Vulnerabilities (MS02-018) - Active Check");
  # nb:
  # - Those are the "CAN-2002-xyz" ones from MS02-018
  # - CVE-2002-0224 is not listed on MS02-018 but the Bugtraq entry says:
  #   > This was already corrected in MS02-018*snip*The security bulletin from Microsoft, however,
  #   > does not mention this vulnerability.
  script_cve_id("CVE-2002-0079", "CVE-2002-0147", "CVE-2002-0150", "CVE-2002-0149",
                "CVE-2002-0071", "CVE-2002-0072", "CVE-2002-0073", "CVE-2002-0074",
                "CVE-2002-0148", "CVE-2002-0075", "CVE-2002-0224");
  script_category(ACT_GATHER_INFO); # nb: No ACT_ATTACK as this seems to be a standard HTTP request
  script_copyright("Copyright (C) 2002 Matt Moore");
  script_family("Web Servers");
  script_dependencies("gb_microsoft_iis_http_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("IIS/installed");

  script_xref(name:"URL", value:"https://learn.microsoft.com/en-us/security-updates/securitybulletins/2002/ms02-018");
  script_xref(name:"URL", value:"https://seclists.org/bugtraq/2002/Apr/290");
  script_xref(name:"URL", value:"https://web.archive.org/web/20210129090842/http://www.securityfocus.com/bid/4476");
  script_xref(name:"URL", value:"https://web.archive.org/web/20210129090842/http://www.securityfocus.com/bid/4483");
  script_xref(name:"URL", value:"https://web.archive.org/web/20210129090842/http://www.securityfocus.com/bid/4486");
  script_xref(name:"URL", value:"https://web.archive.org/web/20031206000543/http://jscript.dk/adv/TL001/");
  script_xref(name:"IAVA", value:"2002-A-0002");

  script_tag(name:"summary", value:"Microsoft Internet Information Services (IIS) is prone to
  multiple vulnerabilities.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.

  The presence of this vulnerability also indicates that the host is vulnerable to the other issues
  identified in MS02-018 (various remote buffer overflow and XSS attacks...).");

  script_tag(name:"insight", value:"This IIS Server appears to vulnerable to one of the cross-site
  scripting (XSS) attacks described in MS02-018:

  The default '404' file returned by IIS uses scripting to output a link to top level domain part of
  the url requested. By crafting a particular URL it is possible to insert arbitrary script into the
  page for execution.");

  script_tag(name:"solution", value:"The vendor has released an update. Please see the references
  for more information.");

  script_tag(name:"qod_type", value:"remote_analysis");
  script_tag(name:"solution_type", value:"VendorFix");

  exit(0);
}

# nb: Check makes a request for non-existent HTML file. The server should return a 404 for this request.
# The unpatched server returns a page containing the buggy JavaScript, on a patched server this has been
# updated to further check the input...

include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");

if( ! port = get_app_port( cpe:CPE, service:"www" ) )
  exit( 0 );

if( ! get_app_location( cpe:CPE, port:port, nofork:TRUE ) )
  exit( 0 );

banner = http_get_remote_headers( port:port );
if( ! banner || "Microsoft-IIS" >!< banner )
  exit( 0 );

req = http_get( item:"/blah.htm", port:port );
r = http_keepalive_send_recv( port:port, data:req );
if( ! r )
  exit( 0 );

str1 = "urlresult";
str2 = "+ displayresult +";

if( ( str1 >< r ) && ( str2 >< r ) ) {
  security_message( port:port );
  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

06 Jun 2024 00:00Current
7.6High risk
Vulners AI Score7.6
CVSS 27.5
EPSS0.6146
133