Lucene search

K
nessusThis script is Copyright (C) 2001-2024 Matt MooreIIS5_ISAPI_PRINTER.NASL
HistoryMay 03, 2001 - 12:00 a.m.

Microsoft IIS 5 .printer ISAPI Filter Enabled

2001-05-0300:00:00
This script is Copyright (C) 2001-2024 Matt Moore
www.tenable.com
45

AI Score

7.5

Confidence

Low

IIS 5 has support for the Internet Printing Protocol(IPP), which is enabled in a default install. The protocol is implemented in IIS5 as an ISAPI extension. At least one security problem (a buffer overflow) has been found with that extension in the past, so we recommend you disable it if you do not use this functionality.

#%NASL_MIN_LEVEL 70300
#
# This script was written by Matt Moore <[email protected]>
#
# www.westpoint.ltd.uk
#
# Script audit and contributions from Carmichael Security
#      Erik Anderson <[email protected]>
#      Added link to the Bugtraq message archive
#
# See the Nessus Scripts License for details
#
# Changes by Tenable:
# - Revised title (12/19/2008)

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

if (description)
{
  script_id(10661);
  script_version("1.39");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/05/28");

  script_name(english:"Microsoft IIS 5 .printer ISAPI Filter Enabled");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server supports Internet Printing Protocol.");
  script_set_attribute(attribute:"description", value:
"IIS 5 has support for the Internet Printing Protocol(IPP), which is
enabled in a default install.  The protocol is implemented in IIS5 as an
ISAPI extension.  At least one security problem (a buffer overflow) has
been found with that extension in the past, so we recommend you disable
it if you do not use this functionality.");
  script_set_attribute(attribute:"solution", value:
"To unmap the .printer extension :

 1. Open Internet Services Manager.
 2. Right-click the Web server choose Properties from the context menu.
 3. Master Properties
 4. Select WWW Service -> Edit -> HomeDirectory -> Configuration

and remove the reference to .printer from the list.");
  script_set_attribute(attribute:"risk_factor", value:"None");

  script_set_attribute(attribute:"plugin_publication_date", value:"2001/05/03");

  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_set_attribute(attribute:"enable_cgi_scanning", value:"true");
  script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2001-2024 Matt Moore");

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

  exit(0);
}

# Actual check starts here...
# Check makes a request for NULL.printer

include("audit.inc");
include("global_settings.inc");
include("http_func.inc");
include("http_keepalive.inc");


port = get_http_port(default:80, embedded:TRUE);


if (report_paranoia < 2)
{
  banner = get_http_banner(port:port);
  if (banner)
  {
    if ("Microsoft-IIS" >!< banner) audit(AUDIT_WRONG_WEB_SERVER, "IIS", port);
    if ("Microsoft-IIS/5.0" >!< banner) 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 = http_get(item:"/NULL.printer", port:port);
r = http_keepalive_send_recv(port:port, data:req);

if ("Error in web printer install" >< r) security_note(port);
else audit(AUDIT_LISTEN_NOT_VULN, "IIS 5.0", port);

AI Score

7.5

Confidence

Low