Vulnerabilities > CVE-2009-1542 - Permissions, Privileges, and Access Controls vulnerability in Microsoft Virtual PC and Virtual Server

047910
CVSS 9.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
SINGLE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
microsoft
CWE-264
critical
nessus

Summary

The Virtual Machine Monitor (VMM) in Microsoft Virtual PC 2004 SP1, 2007, and 2007 SP1, and Microsoft Virtual Server 2005 R2 SP1, does not enforce CPU privilege-level requirements for all machine instructions, which allows guest OS users to execute arbitrary kernel-mode code and gain privileges within the guest OS via a crafted application, aka "Virtual PC and Virtual Server Privileged Instruction Decoding Vulnerability."

Vulnerable Configurations

Part Description Count
Application
Microsoft
6

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Accessing, Modifying or Executing Executable Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Blue Boxing
    This type of attack against older telephone switches and trunks has been around for decades. A tone is sent by an adversary to impersonate a supervisor signal which has the effect of rerouting or usurping command of the line. While the US infrastructure proper may not contain widespread vulnerabilities to this type of attack, many companies are connected globally through call centers and business process outsourcing. These international systems may be operated in countries which have not upgraded Telco infrastructure and so are vulnerable to Blue boxing. Blue boxing is a result of failure on the part of the system to enforce strong authorization for administrative functions. While the infrastructure is different than standard current applications like web applications, there are historical lessons to be learned to upgrade the access control for administrative functions.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.

Msbulletin

bulletin_idMS09-033
bulletin_url
date2009-07-14T00:00:00
impactElevation of Privilege
knowledgebase_id969856
knowledgebase_url
severityImportant
titleVulnerability in Virtual PC and Virtual Server Could Allow Elevation of Privilege

Nessus

NASL familyWindows : Microsoft Bulletins
NASL idSMB_NT_MS09-033.NASL
descriptionThe remote host is running a version of Virtual PC or Virtual Server that incorrectly validates privilege levels when executing specific instructions in the Virtual Machine Monitor. An attacker who has logged in to a guest operating system running under the affected software can leverage this issue to run code with elevated privileges inside the hosted guest operating system.
last seen2020-06-01
modified2020-06-02
plugin id39795
published2009-07-14
reporterThis script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/39795
titleMS09-033: Vulnerability in Virtual PC and Virtual Server Could Allow Elevation of Privilege (969856)
code
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


if (description)
{
  script_id(39795);
  script_version("1.26");
  script_cvs_date("Date: 2018/11/15 20:50:30");

  script_cve_id("CVE-2009-1542");
  script_bugtraq_id(35601);
  script_xref(name:"MSFT", value:"MS09-033");
  script_xref(name:"MSKB", value:"969856");

  script_name(english:"MS09-033: Vulnerability in Virtual PC and Virtual Server Could Allow Elevation of Privilege (969856)");
  script_summary(english:"Checks version of VMM.sys");

  script_set_attribute(attribute:"synopsis", value:
"The remote host contains an application that is affected by a
privilege escalation vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote host is running a version of Virtual PC or Virtual Server
that incorrectly validates privilege levels when executing specific
instructions in the Virtual Machine Monitor. An attacker who has
logged in to a guest operating system running under the affected
software can leverage this issue to run code with elevated privileges
inside the hosted guest operating system.");
  script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2009/ms09-033");
  script_set_attribute(attribute:"solution", value:
"Microsoft has released a set of patches for Virtual PC 2004 and 2007
as well as Virtual Server 2005.");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_cwe_id(264);

  script_set_attribute(attribute:"vuln_publication_date", value:"2009/07/14");
  script_set_attribute(attribute:"patch_publication_date", value:"2009/07/14");
  script_set_attribute(attribute:"plugin_publication_date", value:"2009/07/14");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:virtual_pc");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:virtual_server");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows : Microsoft Bulletins");

  script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");

  script_dependencies("smb_hotfixes.nasl", "ms_bulletin_checks_possible.nasl");
  script_require_keys("SMB/MS_Bulletin_Checks/Possible");
  script_require_ports(139, 445, 'Host/patch_management_checks');

  exit(0);
}


include("audit.inc");
include("smb_hotfixes_fcheck.inc");
include("smb_hotfixes.inc");
include("smb_func.inc");


include("misc_func.inc");
get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");

bulletin = 'MS09-033';
kbs = make_list("969856");
if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);


get_kb_item_or_exit("SMB/WindowsVersion");


function display_dword (dword, nox)
{
 local_var tmp;

 if (isnull(nox) || (nox == FALSE))
   tmp = "0x";
 else
   tmp = "";

 return string (tmp,
               toupper(
                  hexstr(
                    raw_string(
                               (dword >>> 24) & 0xFF,
                               (dword >>> 16) & 0xFF,
                               (dword >>> 8) & 0xFF,
                               dword & 0xFF
                              )
                        )
                      )
               );
}


# Determine if either product is installed.
Virtual_PC = FALSE;
Virtual_Server = FALSE;
hcf_init = TRUE;

port    =  kb_smb_transport();
login   =  kb_smb_login();
pass    =  kb_smb_password();
domain  =  kb_smb_domain();


if(! smb_session_init()) audit(AUDIT_FN_FAIL, "smb_session_init");

rc = NetUseAdd(login:login, password:pass, domain:domain, share:"IPC$");
if (rc != 1)
{
  NetUseDel();
  audit(AUDIT_SHARE_FAIL, "IPC$");
}

hklm = RegConnectRegistry(hkey:HKEY_LOCAL_MACHINE);
if (isnull(hklm))
{
  NetUseDel();
  audit(AUDIT_REG_FAIL);
}

key = "SOFTWARE\Microsoft\Virtual PC";
key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);
if (!isnull(key_h))
{
  Virtual_PC = TRUE;
  RegCloseKey(handle:key_h);
}

key = "SOFTWARE\Microsoft\Virtual Server";
key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);
if (!isnull(key_h))
{
  Virtual_Server = TRUE;
  RegCloseKey(handle:key_h);
}
RegCloseKey(handle:hklm);
NetUseDel(close:FALSE);

if (!Virtual_PC && !Virtual_Server) exit(0);


# Determine the product name.
prod_name = "";

path = hotfix_get_programfilesdir();
if (!path) exit(1, "Can't determine Program Files directory.");
share = ereg_replace(pattern:"(^[A-Za-z]):.*", replace:"\1$", string:path);
if (!is_accessible_share(share:share)) exit(1, "Can't access '"+share+"' share.");

if (Virtual_PC) exe = path + "\\Microsoft Virtual PC\\Virtual PC.exe";
else exe = path + "\\Microsoft Virtual Server\\vssrvc.exe";

NetUseDel(close:FALSE);

rc = NetUseAdd(login:login, password:pass, domain:domain, share:share);
if (rc != 1)
{
  NetUseDel();
  audit(AUDIT_SHARE_FAIL, share);
}

exe2 = ereg_replace(pattern:"^[A-Za-z]:(.*)", replace:"\1", string:exe);
fh = CreateFile(
  file               : exe2,
  desired_access     : GENERIC_READ,
  file_attributes    : FILE_ATTRIBUTE_NORMAL,
  share_mode         : FILE_SHARE_READ,
  create_disposition : OPEN_EXISTING
);

if (!isnull(fh))
{
  ret = GetFileVersionEx(handle:fh);
  if (!isnull(ret)) children = ret['Children'];
  if (!isnull(children))
  {
    varfileinfo = children['VarFileInfo'];
    if (!isnull(varfileinfo))
    {
      translation =
        (get_word (blob:varfileinfo['Translation'], pos:0) << 16) +
        get_word (blob:varfileinfo['Translation'], pos:2);
      translation = tolower(display_dword(dword:translation, nox:TRUE));
    }
    stringfileinfo = children['StringFileInfo'];
    if (!isnull(stringfileinfo) && !isnull(translation))
    {
      data = stringfileinfo[translation];
      if (!isnull(data)) prod_name = data['ProductName'];
      else
      {
        data = stringfileinfo[toupper(translation)];
        if (!isnull(data)) prod_name = data['ProductName'];
      }
    }
  }
  CloseFile(handle:fh);
}
if (!prod_name) exit(0, "Can't determine the product name.");
NetUseDel(close:FALSE);


# Determine the fix based on the product name.
fix = "";

min = '0.0.0.0';
if ("Virtual PC 2007" >< prod_name)
{
  if (ereg(pattern:" SP1($|[^0-9])", string:prod_name))
  {
    fix = "1.1.656.0";
    min = '1.1.627.0';
  }
  else if (!ereg(pattern:" SP[0-9]", string:prod_name))
  {
    fix = "1.1.598.0";
    min = '1.1.563.0';
  }
}
if ("Virtual Server 2005" >< prod_name)
{
  if ('R2' >< prod_name)
  {
    min = '1.1.603.0';
  }
  else min = '1.1.465.1';
  fix = "1.1.656.0";
}
if ("Virtual PC 2004" >< prod_name)
{
  fix = "1.1.465.15";
  min = '1.1.465.1';
}
if (!fix) exit(0, "The installation is not vulnerable.");


# Finally, check the version of the affected file.
if (!is_accessible_share()) exit(1, "Can't access default share.");

rootfile = hotfix_get_systemroot();
if (!rootfile) exit(1, "Can't get system root.");


kb = '969856';
if (hotfix_check_fversion(file:"VMM.sys", path:rootfile+"\System32\Drivers", version:fix, min_version:min, bulletin:bulletin, kb:kb) == HCF_OLDER)
{
  set_kb_item(name:"SMB/Missing/MS09-033", value:TRUE);
  hotfix_security_hole();

  hotfix_check_fversion_end();
  exit(0);
}
else
{
  hotfix_check_fversion_end();
  exit(0, "The host is not affected.");
}

Oval

accepted2011-11-14T04:00:58.694-05:00
classvulnerability
contributors
  • nameDragos Prisaca
    organizationGideon Technologies, Inc.
  • nameRachana Shetty
    organizationSecPod Technologies
definition_extensions
  • commentMicrosoft Virtual PC 2004 Service Pack 1 is installed
    ovaloval:org.mitre.oval:def:2177
  • commentMicrosoft Virtual PC 2007 is installed
    ovaloval:org.mitre.oval:def:5854
  • commentMicrosoft Virtual PC 2007 Service Pack 1 is installed
    ovaloval:org.mitre.oval:def:6324
  • commentMicrosoft Virtual Server 2005 R2 is installed
    ovaloval:org.mitre.oval:def:6342
  • commentMicrosoft Virtual Server 2005 Enterprise is installed
    ovaloval:org.mitre.oval:def:2220
  • commentMicrosoft Virtual Server 2005 Standard is installed
    ovaloval:org.mitre.oval:def:2119
descriptionThe Virtual Machine Monitor (VMM) in Microsoft Virtual PC 2004 SP1, 2007, and 2007 SP1, and Microsoft Virtual Server 2005 R2 SP1, does not enforce CPU privilege-level requirements for all machine instructions, which allows guest OS users to execute arbitrary kernel-mode code and gain privileges within the guest OS via a crafted application, aka "Virtual PC and Virtual Server Privileged Instruction Decoding Vulnerability."
familywindows
idoval:org.mitre.oval:def:6166
statusaccepted
submitted2009-07-14T13:00:00
titleVirtual PC and Virtual Server Privileged Instruction Decoding Vulnerability
version37

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 35601 CVE(CAN) ID: CVE-2009-1542 Microsoft Virtual PC和Virtual Server都是流行的虚拟机工具,允许在同一台计算机上运行多个操作系统。 Virtual PC和Virtual Server在Virtual Machine Monitor中执行特定指令时没有正确地验证权限级别,可能允许攻击者在承载的Guest操作系统中以提升的权限执行代码。攻击者可随后安装程序;查看、更改或删除数据;或者创建拥有完全用户权限的新帐户。 Microsoft Virtual PC 2007 SP1 Microsoft Virtual PC 2007 Microsoft Virtual PC 2004 SP1 Microsoft Virtual Server 2005 R2 SP1 厂商补丁: Microsoft --------- Microsoft已经为此发布了一个安全公告(MS09-033)以及相应补丁: MS09-033:Vulnerability in Virtual PC and Virtual Server Could Allow Elevation of Privilege (969856) 链接:http://www.microsoft.com/technet/security/bulletin/MS09-033.mspx?pf=true
idSSV:11818
last seen2017-11-19
modified2009-07-16
published2009-07-16
reporterRoot
titleMicrosoft Virtual PC和Virtual Server本地权限提升漏洞(MS09-033)