Lucene search

K
openvasCopyright (C) 2008 Greenbone Networks GmbHOPENVAS:800063
HistoryNov 26, 2008 - 12:00 a.m.

WinComLPD Total Multiple Vulnerabilities

2008-11-2600:00:00
Copyright (C) 2008 Greenbone Networks GmbH
plugins.openvas.org
8

0.559 Medium

EPSS

Percentile

97.7%

This host is installed with WinComLPD Total and is prone to buffer
overflow and authentication bypass vulnerabilities.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_wincomlpd_total_mult_vuln.nasl 5370 2017-02-20 15:24:26Z cfi $
#
# WinComLPD Total Multiple Vulnerabilities
#
# Authors:
# Chandan S <[email protected]>
#
# Copyright:
# Copyright (c) 2008 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

tag_impact = "Successful exploitation could allow execution of arbitrary code
or crashing the remote wincomlpd service by simply using negative values like
0x80/0xff for the 8 bit numbers and 0x8000/0xffff for the data blocks.

Impact Level: System";

tag_affected = "WinCom LPD Total 3.0.2.623 and prior on Windows.";

tag_insight = "The issues are due to,
- an error in Line Printer Daemon Service (LPDService.exe), when processing
print jobs with an overly long control file on default TCP port 515/13500.
- an error in authentication checks in the Line Printer Daemon (LPD).";

tag_solution = "No solution or patch was made available for at least one year
since disclosure of this vulnerability. Likely none will be provided anymore.
General solution options are to upgrade to a newer release, disable respective
features, remove the product or replace the product by another one.";

tag_summary = "This host is installed with WinComLPD Total and is prone to buffer
overflow and authentication bypass vulnerabilities.";

if(description)
{
  script_id(800063);
  script_version("$Revision: 5370 $");
  script_tag(name:"last_modification", value:"$Date: 2017-02-20 16:24:26 +0100 (Mon, 20 Feb 2017) $");
  script_tag(name:"creation_date", value:"2008-11-26 16:25:46 +0100 (Wed, 26 Nov 2008)");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_cve_id("CVE-2008-5158", "CVE-2008-5159", "CVE-2008-5176");
  script_bugtraq_id(27614);
  script_name("WinComLPD Total Multiple Vulnerabilities");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/28763");
  script_xref(name : "URL" , value : "http://aluigi.org/adv/wincomalpd-adv.txt");
  script_xref(name : "URL" , value : "http://www.frsirt.com/english/advisories/2008/0410");

  script_category(ACT_GATHER_INFO);
  script_tag(name:"qod_type", value:"executable_version");
  script_copyright("Copyright (C) 2008 Greenbone Networks GmbH");
  script_family("Denial of Service");
  script_dependencies("secpod_reg_enum.nasl");
  script_mandatory_keys("SMB/WindowsVersion");
  script_require_ports(139, 445, 515, 13500);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  script_tag(name:"solution_type", value:"WillNotFix");
  exit(0);
}


include("smb_nt.inc");
include("version_func.inc");
include("secpod_smb_func.inc");

if(!get_kb_item("SMB/WindowsVersion")){
  exit(0);
}

lpdport = 515;
if(!get_port_state(lpdport))
{
  lpdport = 13500;
  if(!get_port_state(lpdport)){
    exit(0);
  }
}

lpdVer = registry_get_sz(key:"SYSTEM\CurrentControlSet\Services\LPDService",
                         item:"ImagePath");
if(!lpdVer){
  exit(0);
}

share = ereg_replace(pattern:"([a-zA-Z]):.*", replace:"\1$", string:lpdVer);
file =  ereg_replace(pattern:"[a-zA-Z]:(.*)", replace:"\1", string:lpdVer);

lpdVer = GetVer(file:file, share:toupper(share));
if(!lpdVer){
  exit(0);
}

if(version_is_less_equal(version:lpdVer, test_version:"3.0.2.623")){
  security_message(lpdport);
}

0.559 Medium

EPSS

Percentile

97.7%