VMware Open Virtual Machine Tools File Corruption Vulnerability

2011-04-13T00:00:00
ID OPENVAS:1361412562310801917
Type openvas
Reporter Copyright (c) 2011 Greenbone Networks GmbH
Modified 2018-10-20T00:00:00

Description

This host is installed with VMware Open Virtual Machine Tools and is prone to file corruption vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_vmware_ovm_tools_file_corruption_vuln.nasl 11997 2018-10-20 11:59:41Z mmartin $
#
# VMware Open Virtual Machine Tools File Corruption Vulnerability
#
# Authors:
# Antu Sanadi <santu@secpod.com>
#
# Copyright (c) 2011 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.
###############################################################################

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.801917");
  script_version("$Revision: 11997 $");
  script_tag(name:"last_modification", value:"$Date: 2018-10-20 13:59:41 +0200 (Sat, 20 Oct 2018) $");
  script_tag(name:"creation_date", value:"2011-04-13 15:50:09 +0200 (Wed, 13 Apr 2011)");
  script_cve_id("CVE-2011-1681");
  script_tag(name:"cvss_base", value:"3.3");
  script_tag(name:"cvss_base_vector", value:"AV:L/AC:M/Au:N/C:P/I:P/A:N");
  script_name("VMware Open Virtual Machine Tools File Corruption Vulnerability");
  script_xref(name:"URL", value:"http://openwall.com/lists/oss-security/2011/03/31/4");
  script_xref(name:"URL", value:"http://openwall.com/lists/oss-security/2011/03/22/6");
  script_xref(name:"URL", value:"http://openwall.com/lists/oss-security/2011/03/05/7");
  script_xref(name:"URL", value:"http://openwall.com/lists/oss-security/2011/03/04/10");

  script_tag(name:"qod_type", value:"executable_version");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2011 Greenbone Networks GmbH");
  script_family("General");
  script_dependencies("gb_vmware_ovm_tools_detect_lin.nasl");
  script_mandatory_keys("VMware/OVM/Tools/Ver");
  script_tag(name:"impact", value:"Successful exploitation will allows local users to trigger
corruption of this file via a process with a small RLIMIT_FSIZE value.");
  script_tag(name:"affected", value:"VMware Open Virtual Machine Tools version 8.4.2-261024 and
prior.");
  script_tag(name:"insight", value:"The flaw is due to an error in 'vmware-hgfsmounter', which
attempts to append to the '/etc/mtab' file without first checking whether
resource limits would interfere.");
  script_tag(name:"solution", value:"Upgrade to version 2011.05.27 or later.");
  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"summary", value:"This host is installed with VMware Open Virtual Machine Tools
and is prone to file corruption vulnerability.");
  script_xref(name:"URL", value:"http://sourceforge.net/projects/open-vm-tools/files/open-vm-tools");
  exit(0);
}


include("version_func.inc");

vmVer = get_kb_item("VMware/OVM/Tools/Ver");
if(!vmVer){
  exit(0);
}

## match the version without build
version = eregmatch(pattern:"([0-9]+\.[0-9]+\.[0-9]+)", string:vmVer);
if(version[1])
{
  buildVer = eregmatch(pattern:"build ([0-9]+)", string:vmVer);
  if(buildVer[1]){
    ver = version[1] +"." + buildVer[1];
  }
  else {
    ver = version[1];
  }

  if(version_is_less_equal(version:ver, test_version:"8.4.2.261024")){
    security_message( port: 0, data: "The target host was found to be vulnerable" );
  }
}