MS01-023: Microsoft IIS 5.0 Malformed HTTP Printer Request Header Remote Buffer Overflow (953155) (uncredentialed check) - Nessus

Critical   Plugin ID: 10657

This page contains detailed information about the MS01-023: Microsoft IIS 5.0 Malformed HTTP Printer Request Header Remote Buffer Overflow (953155) (uncredentialed check) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 10657
Name: MS01-023: Microsoft IIS 5.0 Malformed HTTP Printer Request Header Remote Buffer Overflow (953155) (uncredentialed check)
Filename: iis5_printer.nasl
Vulnerability Published: 2001-05-01
This Plugin Published: 2001-05-01
Last Modification Time: 2022-04-11
Plugin Version: 1.49
Plugin Type: remote
Plugin Family: Web Servers
Dependencies: find_service1.nasl, http_version.nasl, www_fingerprinting_hmap.nasl

Vulnerability Information


Severity: Critical
Vulnerability Published: 2001-05-01
Patch Published: 2001-05-01
CVE [?]: CVE-2001-0241
CPE [?]: cpe:/a:microsoft:iis

Synopsis

Arbitrary code can be executed on the remote host thru IIS.

Description

The remote version of the IIS web server contains a bug which might be used by an attacker to execute arbitrary code on the remote system.

To exploit this vulnerability, an attacker would need to send a malicious HTTP/1.1 request to the remote host.

Solution

Microsoft has released a patch for Windows 2000.

Public Exploits


Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, Immunity Canvas)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the MS01-023: Microsoft IIS 5.0 Malformed HTTP Printer Request Header Remote Buffer Overflow (953155) (uncredentialed check) vulnerability:

  1. Metasploit: exploit/windows/iis/ms01_023_printer
    [MS01-023 Microsoft IIS 5.0 Printer Host Header Overflow]
  2. Exploit-DB: exploits/windows/remote/16469.rb
    [EDB-16469: Microsoft IIS 5.0 - Printer Host Header Overflow (MS01-023) (Metasploit)]
  3. Immunity Canvas: CANVAS

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.3 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.3 (High)

Go back to menu.

Plugin Source


This is the iis5_printer.nasl nessus plugin source code. This script is Copyright (C) 2001-2022 Tenable Network Security, Inc.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# Initial version written by John Lampe

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(10657);
  script_version("1.49");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id("CVE-2001-0241");
  script_bugtraq_id(2674);
  script_xref(name:"CERT", value:"516648");
  script_xref(name:"CERT-CC", value:"CA-2001-10");
  script_xref(name:"MSFT", value:"MS01-023");
  script_xref(name:"MSKB", value:"296576");

  script_name(english:"MS01-023: Microsoft IIS 5.0 Malformed HTTP Printer Request Header Remote Buffer Overflow (953155) (uncredentialed check)");

  script_set_attribute(attribute:"synopsis", value:
"Arbitrary code can be executed on the remote host thru IIS.");
  script_set_attribute(attribute:"description", value:
"The remote version of the IIS web server contains a bug which might be
used by an attacker to execute arbitrary code on the remote system.

To exploit this vulnerability, an attacker would need to send a
malicious HTTP/1.1 request to the remote host.");
  script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2001/ms01-023");
  # http://web.archive.org/web/20090106040228/http://research.eeye.com/html/advisories/published/AD20010501.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?faa4ec33");
  script_set_attribute(attribute:"solution", value:
"Microsoft has released a patch for Windows 2000.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'MS01-023 Microsoft IIS 5.0 Printer Host Header Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:"CANVAS");

  script_set_attribute(attribute:"vuln_publication_date", value:"2001/05/01");
  script_set_attribute(attribute:"patch_publication_date", value:"2001/05/01");
  script_set_attribute(attribute:"plugin_publication_date", value:"2001/05/01");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:iis");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

  script_category(ACT_ATTACK);
  script_family(english:"Web Servers");

  script_copyright(english:"This script is Copyright (C) 2001-2022 Tenable Network Security, Inc.");

  script_dependencies("find_service1.nasl", "http_version.nasl", "www_fingerprinting_hmap.nasl");
  script_require_ports("Services/www", 80);

  exit(0);
}


include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

port = get_http_port(default:80);

if (report_paranoia < 2)
{
  server_name = http_server_header(port:port);
  if (server_name)
  {
    if ("Microsoft-IIS" >!< server_name) audit(AUDIT_WRONG_WEB_SERVER, "IIS", port);
    if ("Microsoft-IIS/5.0" >!< server_name) audit(AUDIT_NOT_LISTEN, "IIS 5.0", port);
  }
  else
  {
    sig = get_kb_item("www/hmap/" + port + "/description");
    if (!sig) exit(0, "The web server listening on port "+port+" was not fingerprinted.");
    else
    {
      if ("IIS" >!< sig) audit(AUDIT_WRONG_WEB_SERVER, "IIS", port);
      else if ("IIS/5.0" >!< sig) audit(AUDIT_NOT_LISTEN, "IIS 5.0", port);
    }
  }
}

req = 'GET /NULL.printer HTTP/1.1\r\nHost: ' + crap(257) + '\r\n\r\n';
w = http_send_recv_buf(port:port, data:req);

if (w[0] =~ "HTTP/[0-9.]+ 500 13") security_hole(port);
else audit(AUDIT_LISTEN_NOT_VULN, "IIS 5.0", port);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/iis5_printer.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\iis5_printer.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/iis5_printer.nasl

Go back to menu.

How to Run


Here is how to run the MS01-023: Microsoft IIS 5.0 Malformed HTTP Printer Request Header Remote Buffer Overflow (953155) (uncredentialed check) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Web Servers plugin family.
  6. On the right side table select MS01-023: Microsoft IIS 5.0 Malformed HTTP Printer Request Header Remote Buffer Overflow (953155) (uncredentialed check) plugin ID 10657.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl iis5_printer.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a iis5_printer.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - iis5_printer.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state iis5_printer.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: MSKB | Microsoft Knowledge Base: MSFT | Microsoft Security Bulletin:
  • MS01-023
CERT | Computer Emergency Response Team: CERT-CC | CERT Coordination Center:
  • CA-2001-10
See also: Similar and related Nessus plugins:
  • 40825 - MS09-053: Microsoft IIS FTPd NLST Command Remote Buffer Overflow (975191) (uncredentialed check)
  • 10671 - MS01-026 / MS01-044: Microsoft IIS Remote Command Execution (uncredentialed check)
  • 10685 - Microsoft IIS ISAPI Filter Multiple Vulnerabilities (MS01-044)
  • 144291 - IBM HTTP Server 7.0.0.0 < 7.0.0.33 / 8.0.0.0 < 8.0.0.9 / 8.5.0.0 < 8.5.5.2 Buffer Overflow (244199)
  • 73519 - nginx < 1.4.7 / 1.5.12 SPDY Heap Buffer Overflow
  • 54924 - IBM Tivoli Management Framework Endpoint addr URL Remote Buffer Overflow

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file iis5_printer.nasl version 1.49. For more plugins, visit the Nessus Plugin Library.

Go back to menu.