WinComLPD LPD Monitoring Server Authentication Bypass - Nessus

High   Plugin ID: 30187

This page contains detailed information about the WinComLPD LPD Monitoring Server Authentication Bypass Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 30187
Name: WinComLPD LPD Monitoring Server Authentication Bypass
Filename: wincomlpd_lpdservice_auth_bypass.nasl
Vulnerability Published: N/A
This Plugin Published: 2008-02-06
Last Modification Time: 2018-08-06
Plugin Version: 1.11
Plugin Type: remote
Plugin Family: Misc.
Dependencies: wincomlpd_lpdservice_detect.nasl

Vulnerability Information


Severity: High
Vulnerability Published: N/A
Patch Published: N/A
CVE [?]: CVE-2008-5158
CPE [?]: N/A

Synopsis

The remote service is affected by an authentication bypass vulnerability.

Description

The remote installation of WinComLPD fails to ensure that authentication to its LPD Monitoring Server has been successful before processing requests. A remote attacker can leverage this issue to bypass authentication and gain administrative control of the affected application.

Note that there are reportedly several other vulnerabilities associated with this version of WinComLPD, including multiple buffer overflows, although Nessus has not checked for them.

Solution

Unknown at this time.

Public Exploits


Target Network Port(s): 13500
Target Asset(s): Services/lpdservice
Exploit Available: True (Metasploit Framework)
Exploit Ease: Exploits (PoCs) are available

Here's the list of publicly known exploits and PoCs for verifying the WinComLPD LPD Monitoring Server Authentication Bypass vulnerability:

  1. Metasploit: exploit/windows/lpd/wincomlpd_admin
    [WinComLPD Buffer Overflow]

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.

Risk Information


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

Go back to menu.

Plugin Source


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

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


include("compat.inc");

if (description)
{
  script_id(30187);
  script_version("1.11");

  script_cve_id("CVE-2008-5158");
  script_bugtraq_id(27614);

  script_name(english:"WinComLPD LPD Monitoring Server Authentication Bypass");
  script_summary(english:"Gets a list of remote printers");

 script_set_attribute(attribute:"synopsis", value:
"The remote service is affected by an authentication bypass
vulnerability." );
 script_set_attribute(attribute:"description", value:
"The remote installation of WinComLPD fails to ensure that
authentication to its LPD Monitoring Server has been successful before
processing requests.  A remote attacker can leverage this issue to
bypass authentication and gain administrative control of the affected
application. 

Note that there are reportedly several other vulnerabilities
associated with this version of WinComLPD, including multiple buffer
overflows, although Nessus has not checked for them." );
 script_set_attribute(attribute:"solution", value:
"Unknown at this time." );
  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:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_set_attribute(attribute:"metasploit_name", value:'WinComLPD Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_cwe_id(287);
 script_set_attribute(attribute:"plugin_publication_date", value: "2008/02/06");
 script_cvs_date("Date: 2018/08/06 14:03:15");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"exploited_by_nessus", value:"true");
  script_end_attributes();


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

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

  script_dependencies("wincomlpd_lpdservice_detect.nasl");
  script_require_ports("Services/lpdservice", 13500);

  exit(0);
}


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


port = get_kb_item("Services/lpdservice");
if (!port) port = 13500;
if (!get_port_state(port)) exit(0);


# Establish a connection.
soc = open_sock_tcp(port);
if (!soc) exit(0);


# List remote printers.
set_byte_order(BYTE_ORDER_LITTLE_ENDIAN);

cmd = 0x0401;
req = 
  mkdword(0x65) +
  mkword(0) + 
  mkword(cmd) +
  mkdword(0);
send(socket:soc, data:req);
res = recv(socket:soc, length:1024, min:4);
close(soc);


# If the response looks right...
if (
  strlen(res) >= 12 &&
  getword(blob:res, pos:6) == (0x8000 + cmd) &&
  getword(blob:res, pos:8) == 0 &&
  (getword(blob:res, pos:10) + 12) == strlen(res)
)
{
  if (report_verbosity)
  {
    info = "";

    rc = getbyte(blob:res, pos:12);
    if (rc == 3) info = '  LPD Status         : activated\n';
    if (rc == 4) info = '  LPD Status         : de-activated\n';

    n = getbyte(blob:res, pos:13);
    info += '  Number of printers : ' + n + '\n';

    if (n > 0)
    {
      pos = 14;
      for (i=0; i<n && pos<strlen(res); i++)
      {
        l = getbyte(blob:res, pos:pos);
        printer = substr(res, pos+1, pos+1+l-1);
        pos += l+1;

        jobs = getdword(blob:res, pos:pos);
        pos += 4;

        status_flag = getbyte(blob:res, pos:pos);
        if (status_flag == 1) status = "Initial";
        else if (status_flag == 3) status = "Running";
        else if (status_flag == 4) status = "Paused";
        else if (status_flag == 5) status = "Stopped";
        else status = "unknown";
        pos += 1;

        l = getbyte(blob:res, pos:pos);
        comments = substr(res, pos+1, pos+1+l-1);
        pos += l+1;

        remote_flag = getbyte(blob:res, pos:pos);
        if (remote_flag == ord("1")) remote = "Remote";
        else if (remote_flag == ord("0")) remote = "Local";
        else remote = "unknown";
        pos += 1;

        info += '    Printer          : ' + printer + '\n' +
                '      Jobs           : ' + jobs + '\n' +
                '      Status         : ' + status + '\n' +
                '      Comments       : ' + comments + '\n' +
                '      Type           : ' + remote + '\n';
      }
    }

    report = string(
      "\n",
      "Nessus was able to discover the following information about the \n",
      "remote instance of WinComLPD :\n",
      "\n",
      info
    );
    security_hole(port:port, extra:report);
  }
  else 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/wincomlpd_lpdservice_auth_bypass.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\wincomlpd_lpdservice_auth_bypass.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/wincomlpd_lpdservice_auth_bypass.nasl

Go back to menu.

How to Run


Here is how to run the WinComLPD LPD Monitoring Server Authentication Bypass 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 Misc. plugin family.
  6. On the right side table select WinComLPD LPD Monitoring Server Authentication Bypass plugin ID 30187.
  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 wincomlpd_lpdservice_auth_bypass.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
  • CWE-287 (Weakness) Improper Authentication
See also:

Version


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

Go back to menu.