Lucene search

K
openvasCopyright (c) 2010 Greenbone Networks GmbHOPENVAS:800448
HistoryFeb 04, 2010 - 12:00 a.m.

IBM DB2 'REPEAT()' Heap Buffer Overflow Vulnerability

2010-02-0400:00:00
Copyright (c) 2010 Greenbone Networks GmbH
plugins.openvas.org
9

0.201 Low

EPSS

Percentile

96.4%

The host is installed with IBM DB2 and is prone to Buffer
Overflow vulnerability.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ibm_db2_bof_vuln_lin_feb10.nasl 5306 2017-02-16 09:00:16Z teissa $
#
# IBM DB2 'REPEAT()' Heap Buffer Overflow Vulnerability
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Copyright:
# Copyright (c) 2010 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 will allow attacker to execute arbitrary
code with elevated privileges or crash the affected application.

Impact Level: System/Application";

tag_affected = "IBM DB2 version 9.1 before FP9, 9.5 before FP6, 9.7 before FP2.";

tag_insight = "The flaw is due to error in 'REPEAT()' function when processing
SELECT statement that has a long column name generated.";

tag_solution = "Upgrade to IBM DB2 version 9.1 FP9 or 9.5 FP6 or 9.7 FP2 or
later. For updates refer to,
http://www-01.ibm.com/software/data/db2/express/download.html";

tag_summary = "The host is installed with IBM DB2 and is prone to Buffer
Overflow vulnerability.";

if(description)
{
  script_id(800448);
  script_version("$Revision: 5306 $");
  script_tag(name:"last_modification", value:"$Date: 2017-02-16 10:00:16 +0100 (Thu, 16 Feb 2017) $");
  script_tag(name:"creation_date", value:"2010-02-04 12:53:38 +0100 (Thu, 04 Feb 2010)");
  script_tag(name:"cvss_base", value:"6.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:P/I:P/A:P");
  script_cve_id("CVE-2010-0462");
  script_bugtraq_id(37976);
  script_name("IBM DB2 'REPEAT()' Heap Buffer Overflow Vulnerability");
  script_xref(name : "URL" , value : "httphttp://xforce.iss.net/xforce/xfdb/55899");
  script_xref(name : "URL" , value : "http://securitytracker.com/alerts/2010/Jan/1023509.html");
  script_xref(name : "URL" , value : "http://intevydis.blogspot.com/2010/01/ibm-db2-97-heap-overflow.html");

  script_tag(name:"qod_type", value:"executable_version");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
  script_family("Databases");
  script_dependencies("secpod_ibm_db2_detect_linux_900217.nasl");
  script_require_keys("Linux/IBM_db2/Ver");
  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);
  exit(0);
}


include("version_func.inc");

ibmVer = get_kb_item("Linux/IBM_db2/Ver");
if(!ibmVer){
  exit(0);
}

# Check for IBM DB2 Version.
if(version_in_range(version:ibmVer, test_version:"9.1", test_version2:"9.1.0.8")||
 version_in_range(version:ibmVer, test_version:"9.5", test_version2:"9.5.0.5")||
 version_in_range(version:ibmVer, test_version:"9.7", test_version2:"9.7.0.1")){
  security_message(0);
}

0.201 Low

EPSS

Percentile

96.4%

Related for OPENVAS:800448