7.2 High
CVSS2
Attack Vector
LOCAL
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:L/AC:L/Au:N/C:C/I:C/A:C
6.7 Medium
AI Score
Confidence
Low
0.0004 Low
EPSS
Percentile
9.8%
Sun xVM VirtualBox is prone to a privilege
escalation vulnerability.
# Copyright (C) 2023 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# 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.
CPE = "cpe:/a:sun:xvm_virtualbox";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.826955");
script_version("2023-05-18T09:08:59+0000");
script_xref(name:"CISA", value:"Known Exploited Vulnerability (KEV) catalog");
script_xref(name:"URL", value:"https://www.cisa.gov/known-exploited-vulnerabilities-catalog");
script_cve_id("CVE-2008-3431");
script_tag(name:"cvss_base", value:"7.2");
script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:N/C:C/I:C/A:C");
script_tag(name:"last_modification", value:"2023-05-18 09:08:59 +0000 (Thu, 18 May 2023)");
script_tag(name:"creation_date", value:"2023-03-29 11:22:17 +0530 (Wed, 29 Mar 2023)");
script_name("Sun xVM VirtualBox Privilege Escalation Vulnerability - Windows");
script_tag(name:"summary", value:"Sun xVM VirtualBox is prone to a privilege
escalation vulnerability.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is
present on the target host.");
script_tag(name:"insight", value:"The flaw exists due to VBoxDrvNtDeviceControl
function in VBoxDrv.sys in Sun xVM VirtualBox uses the METHOD_NEITHER
communication method for IOCTLs and does not properly validate a buffer
associated with the Irp object.");
script_tag(name:"impact", value:"Successful exploitation will allow an attacker,
with local but un-privileged access to a host where VirtualBox is installed,
to execute arbitrary code within the kernel of the Windows host operating
system and to gain complete control of a vulnerable computer system.");
script_tag(name:"affected", value:"Sun xVM VirtualBox prior to 1.6.4
on Windows.");
script_tag(name:"solution", value:"Upgrade Sun xVM VirtualBox to version 1.6.4
or later. Please see the references for more information.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"registry");
script_xref(name:"URL", value:"https://www.coresecurity.com/core-labs/advisories/virtualbox-privilege-escalation-vulnerability");
script_xref(name:"URL", value:"https://www.exploit-db.com/exploits/6218");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2023 Greenbone AG");
script_family("General");
script_dependencies("secpod_sun_virtualbox_detect_win.nasl");
script_mandatory_keys("Sun/xVM-VirtualBox/Win/Ver");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if(!infos = get_app_version_and_location(cpe:CPE, exit_no_version:TRUE))
exit(0);
vers = infos["version"];
path = infos["location"];
if(version_is_less(version:vers, test_version:"1.6.4"))
{
report = report_fixed_ver(installed_version:vers, fixed_version:"1.6.4", install_path:path);
security_message(data:report);
exit(0);
}
exit(99);