Hummingbird InetD LPD Component (Lpdw.exe) Data Overflow - Nessus

Medium   Plugin ID: 18403

This page contains detailed information about the Hummingbird InetD LPD Component (Lpdw.exe) Data Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 18403
Name: Hummingbird InetD LPD Component (Lpdw.exe) Data Overflow
Filename: hummingbird_lpd_overflow.nasl
Vulnerability Published: 2005-05-18
This Plugin Published: 2005-05-30
Last Modification Time: 2018-07-12
Plugin Version: 1.14
Plugin Type: remote
Plugin Family: Gain a shell remotely
Dependencies: find_service1.nasl
Required KB Items [?]: Settings/ParanoidReport

Vulnerability Information


Severity: Medium
Vulnerability Published: 2005-05-18
Patch Published: N/A
CVE [?]: CVE-2005-1815
CPE [?]: N/A

Synopsis

The remote host contains an application that is affected by a buffer overflow vulnerability.

Description

The lpd daemon installed on the remote host appears to be from the Hummingbird Connectivity suite and suffers from a buffer overflow vulnerability. An attacker can crash the daemon by sending commands with overly-long queue names. Additionally, with a specially crafted packet, the attacker can also execute code remotely within the context of the affected service.

Solution

There is no known solution at this time.

Public Exploits


Target Network Port(s): 515
Target Asset(s): Services/lpd
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Hummingbird InetD LPD Component (Lpdw.exe) Data Overflow vulnerability:

  1. Metasploit: exploit/windows/lpd/hummingbird_exceed
    [Hummingbird Connectivity 10 SP5 LPD Buffer Overflow]
  2. Exploit-DB: exploits/windows/remote/16337.rb
    [EDB-16337: Hummingbird Connectivity 10 SP5 - LPD Buffer Overflow (Metasploit)]

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:N/I:N/A:P/E:F/RL:U/RC:C
CVSS Base Score:5.0 (Medium)
Impact Subscore:2.9
Exploitability Subscore:10.0
CVSS Temporal Score:4.8 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:4.8 (Medium)

Go back to menu.

Plugin Source


This is the hummingbird_lpd_overflow.nasl nessus plugin source code. This script is Copyright (C) 2005-2018 Tenable Network Security, Inc.

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



include("compat.inc");

if (description) {
  script_id(18403);
  script_version("1.14");

  script_cve_id("CVE-2005-1815");
  script_bugtraq_id(13788);

  script_name(english:"Hummingbird InetD LPD Component (Lpdw.exe) Data Overflow");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote host contains an application that is affected by a buffer
overflow vulnerability." );
 script_set_attribute(attribute:"description", value:
"The lpd daemon installed on the remote host appears to be from the
Hummingbird Connectivity suite and suffers from a buffer overflow
vulnerability.  An attacker can crash the daemon by sending commands
with overly-long queue names. Additionally, with a specially crafted packet,
the attacker can also execute code remotely within the context of the affected service.");

 script_set_attribute(attribute:"see_also", value:
 "http://www.nessus.org/u?bbff422b" );
 script_set_attribute(attribute:"solution", value:
"There is no known solution at this time." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:F/RL:U/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:'Hummingbird Connectivity 10 SP5 LPD Buffer Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

 script_set_attribute(attribute:"plugin_publication_date", value: "2005/05/30");
 script_set_attribute(attribute:"vuln_publication_date", value: "2005/05/18");
 script_cvs_date("Date: 2018/07/12 19:01:15");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

 
  script_summary(english:"Checks for buffer overflow vulnerability in Hummingbird lpd");
  script_category(ACT_DENIAL);
  script_family(english:"Gain a shell remotely");
  script_copyright(english:"This script is Copyright (C) 2005-2018 Tenable Network Security, Inc.");
  script_dependencie("find_service1.nasl");
  script_require_ports("Services/lpd", 515);
  script_require_keys("Settings/ParanoidReport");

  exit(0);
}


include("global_settings.inc");

if ( report_paranoia < 2 ) 
  exit(1, "This plugin only runs if 'Report paranoia' is set to 'Paranoid'.");

port = get_kb_item("Services/lpd");
if (!port) port = 515;
if (!get_tcp_port_state(port)) exit(1, "Port "+port+" is not open.");


# Try to crash the remote lpd. (A working buffer overflow exploit
# is left as an exercise for the reader. :-)
exploit = raw_string(1)+ crap(1500) + raw_string(0x0A);
# nb: 'max' must be > 3 + maximum number of servers configured 
#     on the remote (default is 4).
max = 15;
for (i=1; i<=max; ++i) {
  soc[i] = open_priv_sock_tcp(dport:port);

  if (soc[i]) {
    send(socket:soc[i], data:exploit);
  }
  else {
    # If the first 2 connection attempts failed, just exit.
    if (i == 2 && !soc[1] && !soc[2]) {
      exit(0);
    }
    # Otherwise, there's a problem if the previous 2 attempts failed as well.
    else if (i >= 2 && !soc[i-1] && !soc[i-2]) {
      security_warning(port);
      break;
    }
    # Maybe the daemon is just busy.
    sleep(1);
  }
}


# Close any open sockets.
for (i=1; i<=max; i++) {
  if (soc[i]) close(soc[i]);
}

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

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

Go back to menu.

How to Run


Here is how to run the Hummingbird InetD LPD Component (Lpdw.exe) Data 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 Gain a shell remotely plugin family.
  6. On the right side table select Hummingbird InetD LPD Component (Lpdw.exe) Data Overflow plugin ID 18403.
  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 hummingbird_lpd_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 18402 - Hummingbird InetD FTP Component (ftpdw.exe) Command Overflow
  • 10828 - SysV /bin/login Environment Remote Overflow (rlogin)
  • 11136 - Multiple OS /bin/login Remote Overflow
  • 11168 - Samba Encrypted Password String Conversion Decryption Overflow
  • 11337 - Multiple Linux rpc.mountd Remote Overflow
  • 11523 - Samba < 2.2.8a / 3.0.0 Multiple Remote Overflows
  • 11540 - PoPToP PPTP ctrlpacket.c Negative Read Remote Overflow
  • 11642 - Helix Servers View Source Plug-in RTSP Parser Overflow
  • 11943 - rsync < 2.5.7 Unspecified Remote Heap Overflow
  • 12285 - Unreal Engine Secure Query Remote Overflow
  • 14243 - Medal of Honor Multiple Remote Overflows
  • 14361 - Netscape NSS Library SSLv2 Challenge Overflow
  • 15867 - Mercury Mail Remote IMAP Server Remote Overflow
  • 16232 - VERITAS Backup Exec Agent Browser Registration Request Remote Overflow
  • 16274 - ngIRCd < 0.8.2 Lists_MakeMask() Remote Overflow DoS
  • 17158 - Knox Arkeia Backup Client Type 77 Request Processing Buffer Remote Overflow
  • 17326 - Sentinel License Manager lservnt Service Remote Buffer Overflow
  • 18257 - BakBone NetVault < 7.1.2 / 7.3.1 Multiple Remote Overflows
  • 18524 - Novell ZENworks Multiple Remote Pre-Authentication Overflows
  • 19428 - Novell eDirectory Server iMonitor Multiple Remote Overflows
  • 20318 - Novell NetMail IMAP Agent Long Verb Arguments Remote Overflow
  • 20336 - Qualcomm WorldMail Multiple IMAP Command Remote Overflow
  • 20812 - Mercury Mail ph Server Remote Overflow
  • 21116 - MERCUR Messaging IMAP Service Multiple Command Remote Overflow
  • 21243 - Novell GroupWise Messenger Accept Language Remote Overflow
  • 21580 - freeSSHd Key Exchange Algorithm String Remote Overflow
  • 23736 - AT-TFTP Server Filename Handling Remote Overflow
  • 24327 - Mercury LoadRunner Agent server_ip_name Field Remote Buffer Overflow
  • 24680 - Trend Micro ServerProtect TmRpcSrv.dll RPC Request Multiple Overflows
  • 24785 - Mercury IMAP Server LOGIN Command Remote Overflow
  • 24903 - IBM Lotus Domino IMAP Server (nimap.exe) CRAM-MD5 Authentication Remote Overflow
  • 25084 - Novell Groupwise WebAccess GWINTER.EXE Base64 Decoding Remote Overflow
  • 25118 - MERCUR Messaging IMAP Server NTLM Authentication NTLMSSP Argument Remote Overflow
  • 25662 - IBM Tivoli Storage Manager Multiple Remote Overflows
  • 25935 - SIDVault < 2.0f LDAP Server Malformed Search Request Buffer Overflow

Version


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

Go back to menu.