The host is installed with VMWare Workstation local privilege
escalation vulnerability.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_vmware_workstation_loc_prev_escl_vuln_lin.nasl 7044 2017-09-01 11:50:59Z teissa $
#
# VMware Workstation 'vmrun' Library Path Privilege Escalation Vulnerability (Linux)
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Copyright:
# 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.
###############################################################################
tag_solution = "Apply the patch or upgrade workstation 7.1.4 build 385536
For updates refer to http://www.vmware.com/products/ws/
*****
NOTE: Ignore this warning, if above mentioned workaround is manually applied.
*****";
tag_impact = "Successful exploitation will allow attacker to execute arbitrary code with
elevated privileges, which may aid in other attacks.
Impact Level: System/Application";
tag_affected = "VMware Workstation 6.5.x and 7.x before 7.1.4 build 385536 on Linux.";
tag_insight = "The flaw is caused by an error in the 'vmrun' utility when handling library
paths, which could be exploited to execute arbitrary code by tricking a user
into running a vulnerable utility in a directory containing a specially
crafted file.";
tag_summary = "The host is installed with VMWare Workstation local privilege
escalation vulnerability.";
if(description)
{
script_id(801912);
script_version("$Revision: 7044 $");
script_tag(name:"last_modification", value:"$Date: 2017-09-01 13:50:59 +0200 (Fri, 01 Sep 2017) $");
script_tag(name:"creation_date", value:"2011-04-11 14:40:00 +0200 (Mon, 11 Apr 2011)");
script_cve_id("CVE-2011-1126");
script_bugtraq_id(47094);
script_tag(name:"cvss_base", value:"6.9");
script_tag(name:"cvss_base_vector", value:"AV:L/AC:M/Au:N/C:C/I:C/A:C");
script_name("VMware Workstation 'vmrun' Library Path Privilege Escalation Vulnerability (Linux)");
script_xref(name : "URL" , value : "http://secunia.com/advisories/43885");
script_xref(name : "URL" , value : "http://securitytracker.com/id?1025270");
script_xref(name : "URL" , value : "http://www.vupen.com/english/advisories/2011/0816");
script_xref(name : "URL" , value : "http://packetstormsecurity.org/files/tags/advisory");
script_xref(name : "URL" , value : "http://www.vmware.com/security/advisories/VMSA-2011-0006.html");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (c) 2011 Greenbone Networks GmbH");
script_family("General");
script_dependencies("gb_vmware_prdts_detect_lin.nasl");
script_require_keys("VMware/Linux/Installed");
script_tag(name : "impact" , value : tag_impact);
script_tag(name : "affected" , value : tag_affected);
script_tag(name : "insight" , value : tag_insight);
script_tag(name : "summary" , value : tag_summary);
script_tag(name : "solution" , value : tag_solution);
script_tag(name:"qod_type", value:"executable_version");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("version_func.inc");
if(!get_kb_item("VMware/Linux/Installed")){
exit(0);
}
#Check for VMware Workstation
wsVer = get_kb_item("VMware/Workstation/Linux/Ver");
if(wsVer != NULL)
{
if(version_in_range(version:wsVer, test_version:"6.5", test_version2:"6.5.5") ||
version_in_range(version:wsVer, test_version:"7.0", test_version2:"7.1.3")){
security_message(0);
}
}