IBM DB2 Administration Server Buffer Overflow Vulnerability (Linux)

2012-04-02T00:00:00
ID OPENVAS:802728
Type openvas
Reporter Copyright (C) 2012 Greenbone Networks GmbH
Modified 2017-04-14T00:00:00

Description

This host is installed with IBM DB2 and is prone to buffer overflow vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ibm_db2_admin_server_bof_vuln_lin.nasl 5956 2017-04-14 09:02:12Z teissa $
#
# IBM DB2 Administration Server Buffer Overflow Vulnerability (Linux)
#
# Authors:
# Madhuri D <dmadhuri@secpod.com>
#
# Copyright:
# Copyright (c) 2012 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 cause denial of service.
  Impact Level: Application.";
tag_affected = "IBM DB2 version 9.1 through FP11
  IBM DB2 version 9.5 through FP8
  IBM DB2 version 9.7 through FP5";
tag_insight = "This flaw is due to an unspecified error within the DAS component can be
  exploited to compromise the component or cause a denial of service.";
tag_solution = "Upgrade to IBM DB2 version 9.5 FP9 or later,
  For updates refer to http://www-01.ibm.com/support/docview.wss?uid=swg21588098";
tag_summary = "This host is installed with IBM DB2 and is prone to buffer overflow
  vulnerability.";

if(description)
{
  script_id(802728);
  script_version("$Revision: 5956 $");
  script_cve_id("CVE-2012-0711");
  script_bugtraq_id(52326);
  script_tag(name:"last_modification", value:"$Date: 2017-04-14 11:02:12 +0200 (Fri, 14 Apr 2017) $");
  script_tag(name:"creation_date", value:"2012-04-02 18:37:15 +0530 (Mon, 02 Apr 2012)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_name("IBM DB2 Administration Server Buffer Overflow Vulnerability (Linux)");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/48279");
  script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/73495");
  script_xref(name : "URL" , value : "http://www-01.ibm.com/support/docview.wss?uid=swg21588093");
  script_xref(name : "URL" , value : "http://www-01.ibm.com/support/docview.wss?uid=swg27007053");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2012 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);
  script_tag(name:"qod_type", value:"executable_version");
  script_tag(name:"solution_type", value:"VendorFix");
  exit(0);
}


include("version_func.inc");

## Variable Initialization
ibmVer = "";

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

## Check for IBM DB2 Version 9.1 through 9.1 FP11  (IBM DB2 9.1 FP11 = 9.1.0.11)
## Check for IBM DB2 Version 9.5 before 9.5 FP8 (IBM DB2 9.5 FP8 = 9.5.0.8)
## Check for IBM DB2 Version 9.7 before 9.7 FP5 (IBM DB2 9.7 FP5 = 9.7.0.5)
if(version_in_range(version:ibmVer, test_version:"9.1", test_version2:"9.1.0.11") ||
   version_in_range(version:ibmVer, test_version:"9.7", test_version2:"9.7.0.5")||
   version_in_range(version:ibmVer, test_version:"9.5", test_version2:"9.5.0.8")){
  security_message(0);
}