Lucene search
K

CUPS Printer List Disclosure

🗓️ 18 Jun 2003 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 27 Views

Remote service exposes printer list, risking further attacks. Filter traffic to port 631.

Code
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


if(description)
{
 script_id(11754);
 script_version("$Revision: 1.11 $");
 
 script_name(english:"CUPS Printer List Disclosure");
 script_summary(english:"Obtains the list of printers on the remote host");
 
 script_set_attribute(
   attribute:"synopsis",
   value:"The remote printer service is leaking information."
 );
 script_set_attribute(attribute:"description", value:
"The remote host is running CUPS (Common Unix Printing System).

It is possible to connect to this port and browse '/printers' to
obtain the list of printers this host can access.  A remote attacker
could use this information to mount further attacks." );
 script_set_attribute(
   attribute:"solution", 
   value:"Filter incoming traffic to this port."
 );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
 script_set_attribute(attribute:"plugin_publication_date", value: "2003/06/18");
 script_cvs_date("$Date: 2013/07/01 22:25:24 $");
 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_set_attribute(attribute:"cpe", value:"cpe:/a:apple:cups");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_family(english:"Misc.");

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

 script_dependencie("http_version.nasl");
 script_require_ports("Services/www",631);
 script_require_keys("www/cups");
 exit(0);
}

#

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


ports = add_port_in_list(list:get_kb_list("Services/www"), port:631);

foreach port (ports)
{
 res = http_send_recv3(method:"GET", item:"/printers", port:port);
 if("CUPS" >< res[2] )
 {
 default = egrep(pattern:"Default Destination:", string:res[2]);
 if( default )
 {
 default = ereg_replace(pattern:".*Default Destination:</B> <.*>(.*)</A>",
 			replace:"\1",
			string:default);
 
 
 printers = split(egrep(pattern:"Description:.*<BR>", string:res[2]));
 ps = NULL;
 foreach p (printers)
 {
  ps += ereg_replace(pattern:".*Description: (.*)<BR>", string:p,
 			 replace:"  . \1") ;
 
 }	
  	
 report = "
The following list of printers has been obtained :
 
" + ps + "
The remote host default printer is " + default + "
";
 security_warning(port:port, extra:report);
 exit(0);
 }
 }
}

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