UnrealIRCd Buffer Overflow Vulnerability

2010-06-22T00:00:00
ID OPENVAS:901126
Type openvas
Reporter Copyright (C) 2010 SecPod
Modified 2017-02-23T00:00:00

Description

This host is running UnrealIRCd and is prone to buffer overflow vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_unrealircd_bof_vuln.nasl 5399 2017-02-23 07:02:00Z antu123 $
#
# UnrealIRCd Buffer Overflow Vulnerability
#
# Authors:
# Sooraj KS <kssooraj@secpod.com>
#
# Copyright:
# Copyright (c) 2010 SecPod, http://www.secpod.com
#
# 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.
###############################################################################

CPE = "cpe:/a:unrealircd:unrealircd";

if(description)
{
  script_id(901126);
  script_version("$Revision: 5399 $");
  script_tag(name:"last_modification", value:"$Date: 2017-02-23 08:02:00 +0100 (Thu, 23 Feb 2017) $");
  script_tag(name:"creation_date", value:"2010-06-22 14:43:46 +0200 (Tue, 22 Jun 2010)");
  script_cve_id("CVE-2009-4893");
  script_tag(name:"cvss_base", value:"6.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
  script_name("UnrealIRCd Buffer Overflow Vulnerability");

  script_tag(name : "impact" , value : "Successful exploitation will allow attacker
  to cause a denial of service and possibly execute arbitrary code via unspecified
  vectors.

  Impact Level: Application");

  script_tag(name : "affected" , value : "UnrealIRCd version 3.2beta11 through 3.2.8");

  script_tag(name : "insight" , value : "The flaw is caused by an error when
  allow::options::noident is enabled, which allows remote attackers to cause a
  denial of service and possibly execute arbitrary code via unspecified vectors.");

  script_tag(name : "summary" , value : "This host is running UnrealIRCd and is prone
  to buffer overflow vulnerability.");

  script_tag(name : "solution" , value : "Upgrade to UnrealIRCd version 3.2.8.1 or later,
  For updates refer to http://www.unrealircd.com/downloads.php ");

  script_tag(name:"solution_type", value:"VendorFix");

  script_xref(name : "URL" , value : "http://security.gentoo.org/glsa/glsa-201006-21.xml");
  script_xref(name : "URL" , value : "http://www.openwall.com/lists/oss-security/2010/06/14/13");
  script_xref(name : "URL" , value : "http://www.unrealircd.com/txt/unrealsecadvisory.20090413.txt");

  ## not vulnerable if allow::options::noident is not enabled.
  script_tag(name:"qod_type", value:"remote_banner_unreliable");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2010 SecPod");
  script_family("Buffer overflow");
  script_dependencies("gb_unrealircd_detect.nasl");
  script_mandatory_keys("UnrealIRCD/Detected");
}

include("host_details.inc");
include("version_func.inc");

##Get port from CPE
if(!UnPort = get_app_port(cpe:CPE)){
  exit(0);
}

##Get Version from CPE
if(!UnVer = get_app_version(cpe:CPE, port:UnPort)){
  exit(0);
}

##Check for vulnerable version
if(UnVer =~ "3\.2")
{
  if(version_in_range(version:UnVer, test_version:"3.2", test_version2:"3.2.8"))
  {
    report = report_fixed_ver(installed_version:UnVer, fixed_version:"3.2.8.1");
    security_message(data:report, port:UnPort);
    exit(0);
  }
}