This host is installed with Sun xVM VirtualBox and is prone to
Insecure Temporary Files vulnerability.
##############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_virtualbox_acquiredaemonlock_vuln_win_900407.nasl 7293 2017-09-27 08:49:48Z cfischer $
# Description: Sun xVM VirtualBox Insecure Temporary Files Vulnerability (Windows)
#
# Authors:
# Sujit Ghosal <[email protected]>
#
# Copyright:
# Copyright (C) 2008 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.
##############################################################################
tag_impact = "Successful exploitation will let the attacker perform malicious actions
with the escalated previleges.
Impact Level: Application";
tag_affected = "Sun xVM VirutalBox version prior to 2.0.6 versions on all Windows platforms.";
tag_insight = "Error is due to insecured handling of temporary files in the 'AcquireDaemonLock'
function in ipcdUnix.cpp. This allows local users to overwrite arbitrary
files via a symlink attack on a TMP/.vbox-$USER-ipc/lock temporary file.";
tag_solution = "Upgrade to the latest version 2.0.6 or above.
http://www.virtualbox.org/wiki/Downloads";
tag_summary = "This host is installed with Sun xVM VirtualBox and is prone to
Insecure Temporary Files vulnerability.";
if(description)
{
script_id(900407);
script_version("$Revision: 7293 $");
script_tag(name:"last_modification", value:"$Date: 2017-09-27 10:49:48 +0200 (Wed, 27 Sep 2017) $");
script_tag(name:"creation_date", value:"2008-12-10 17:58:14 +0100 (Wed, 10 Dec 2008)");
script_bugtraq_id(32444);
script_cve_id("CVE-2008-5256");
script_copyright("Copyright (C) 2008 SecPod");
script_tag(name:"cvss_base", value:"4.4");
script_tag(name:"cvss_base_vector", value:"AV:L/AC:M/Au:N/C:P/I:P/A:P");
script_category(ACT_GATHER_INFO);
script_tag(name:"qod_type", value:"registry");
script_family("General");
script_name("Sun xVM VirtualBox Insecure Temporary Files Vulnerability (Windows)");
script_xref(name : "URL" , value : "http://secunia.com/Advisories/32851");
script_dependencies("secpod_reg_enum.nasl");
script_mandatory_keys("SMB/WindowsVersion");
script_require_ports(139, 445);
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("smb_nt.inc");
if(!get_kb_item("SMB/WindowsVersion")){
exit(0);
}
xvm_key = registry_get_sz(key:"SOFTWARE\Sun\xVM VirtualBox", item:"Version");
if(xvm_key)
{
pattern = "^([0-1](\..*)?|2\.0(\.[0-5])?)$";
if(egrep(pattern:pattern, string:xvm_key)){
security_message(0);
}
}