Vulnerabilities > CVE-2010-1142 - Permissions, Privileges, and Access Controls vulnerability in VMWare products

047910
CVSS 8.5 - HIGH
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
SINGLE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE

Summary

VMware Tools in VMware Workstation 6.5.x before 6.5.4 build 246459; VMware Player 2.5.x before 2.5.4 build 246459; VMware ACE 2.5.x before 2.5.4 build 246459; VMware Server 2.x before 2.0.2 build 203138; VMware Fusion 2.x before 2.0.6 build 246742; VMware ESXi 3.5 and 4.0; and VMware ESX 2.5.5, 3.0.3, 3.5, and 4.0 does not properly load VMware programs, which might allow Windows guest OS users to gain privileges by placing a Trojan horse program at an unspecified location on the guest OS disk.

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.

Nessus

  • NASL familyVMware ESX Local Security Checks
    NASL idVMWARE_VMSA-2010-0007.NASL
    descriptiona. Windows-based VMware Tools Unsafe Library Loading vulnerability A vulnerability in the way VMware libraries are referenced allows for arbitrary code execution in the context of the logged on user. This vulnerability is present only on Windows Guest Operating Systems. In order for an attacker to exploit the vulnerability, the attacker would need to lure the user that is logged on a Windows Guest Operating System to click on the attacker
    last seen2020-06-01
    modified2020-06-02
    plugin id56246
    published2011-09-21
    reporterThis script is Copyright (C) 2011-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/56246
    titleVMSA-2010-0007 : VMware hosted products, vCenter Server and ESX patches resolve multiple security issues
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from VMware Security Advisory 2010-0007. 
    # The text itself is copyright (C) VMware Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(56246);
      script_version("1.20");
      script_cvs_date("Date: 2018/08/06 14:03:16");
    
      script_cve_id("CVE-2009-1564", "CVE-2009-1565", "CVE-2009-2042", "CVE-2009-3707", "CVE-2009-3732", "CVE-2009-4811", "CVE-2010-1138", "CVE-2010-1139", "CVE-2010-1140", "CVE-2010-1141", "CVE-2010-1142");
      script_bugtraq_id(35233, 36630, 39395, 39396);
      script_xref(name:"VMSA", value:"2010-0007");
      script_xref(name:"IAVA", value:"2010-A-0066");
    
      script_name(english:"VMSA-2010-0007 : VMware hosted products, vCenter Server and ESX patches resolve multiple security issues");
      script_summary(english:"Checks esxupdate output for the patch");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote VMware ESX host is missing a security-related patch."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "a. Windows-based VMware Tools Unsafe Library Loading vulnerability
    
       A vulnerability in the way VMware libraries are referenced allows
       for arbitrary code execution in the context of the logged on user.
       This vulnerability is present only on Windows Guest Operating
       Systems.
    
       In order for an attacker to exploit the vulnerability, the attacker
       would need to lure the user that is logged on a Windows Guest
       Operating System to click on the attacker's file on a network
       share. This file could be in any file format. The attacker will
       need to have the ability to host their malicious files on a
       network share.
    
       VMware would like to thank Jure Skofic and Mitja Kolsek of ACROS
       Security (http://www.acrossecurity.com) for reporting this issue
       to us.
    
       The Common Vulnerabilities and Exposures project (cve.mitre.org)
       has assigned the name CVE-2010-1141 to this issue.
    
       Steps needed to remediate this vulnerability :
    
       Guest systems on VMware Workstation, Player, ACE, Server, Fusion
        - Install the remediated version of Workstation, Player, ACE,
          Server and Fusion.
        - Upgrade tools in the virtual machine (virtual machine users
          will be prompted to upgrade).
    
       Guest systems on ESX 4.0, 3.5, 3.0.3, 2.5.5, ESXi 4.0, 3.5
        - Install the relevant patches (see below for patch identifiers)
        - Manually upgrade tools in the virtual machine (virtual machine
          users will not be prompted to upgrade).  Note the VI Client will
          not show the VMware tools is out of date in the summary tab.
          Please see http://tinyurl.com/27mpjo page 80 for details.
    
    b. Windows-based VMware Tools Arbitrary Code Execution vulnerability
    
       A vulnerability in the way VMware executables are loaded allows for
       arbitrary code execution in the context of the logged on user. This
       vulnerability is present only on Windows Guest Operating Systems.
    
       In order for an attacker to exploit the vulnerability, the attacker
       would need to be able to plant their malicious executable in a
       certain location on the Virtual Machine of the user.  On most
       recent versions of Windows (XP, Vista) the attacker would need to
       have administrator privileges to plant the malicious executable in
       the right location.
    
       Steps needed to remediate this vulnerability: See section 3.a.
    
       VMware would like to thank Mitja Kolsek of ACROS Security
       (http://www.acrossecurity.com) for reporting this issue to us.
    
       The Common Vulnerabilities and Exposures project (cve.mitre.org)
       has assigned the name CVE-2010-1142 to this issue.
    
       Refer to the previous table in section 3.a for what action
       remediates the vulnerability (column 4) if a solution is
       available. See above for remediation details.
    
    c. Windows-based VMware Workstation and Player host privilege
       escalation
    
       A vulnerability in the USB service allows for a privilege
       escalation. A local attacker on the host of a Windows-based
       Operating System where VMware Workstation or VMware Player
       is installed could plant a malicious executable on the host and
       elevate their privileges.
    
       In order for an attacker to exploit the vulnerability, the attacker
       would need to be able to plant their malicious executable in a
       certain location on the host machine.  On most recent versions of
       Windows (XP, Vista) the attacker would need to have administrator
       privileges to plant the malicious executable in the right location.
    
       VMware would like to thank Thierry Zoller for reporting this issue
       to us.
    
       The Common Vulnerabilities and Exposures project (cve.mitre.org)
       has assigned the name CVE-2010-1140 to this issue.
    
    d. Third-party library update for libpng to version 1.2.37
    
       The libpng libraries through 1.2.35 contain an uninitialized-
       memory-read bug that may have security implications.
       Specifically, 1-bit (2-color) interlaced images whose widths are
       not divisible by 8 may result in several uninitialized bits at the
       end of certain rows in certain interlace passes being returned to
       the user. An application that failed to mask these out-of-bounds
       pixels might display or process them, albeit presumably with benign
       results in most cases.
    
       The Common Vulnerabilities and Exposures Project (cve.mitre.org)
       has assigned the name CVE-2009-2042 to this issue.
    
    e. VMware VMnc Codec heap overflow vulnerabilities
    
       The VMware movie decoder contains the VMnc media codec that is
       required to play back movies recorded with VMware Workstation,
       VMware Player and VMware ACE, in any compatible media player. The
       movie decoder is installed as part of VMware Workstation, VMware
       Player and VMware ACE, or can be downloaded as a stand alone
       package.
    
       Vulnerabilities in the decoder allow for execution of arbitrary
       code with the privileges of the user running an application
       utilizing the vulnerable codec.
    
       For an attack to be successful the user must be tricked into
       visiting a malicious web page or opening a malicious video file on
       a system that has the vulnerable version of the VMnc codec installed.
    
       The Common Vulnerabilities and Exposures project (cve.mitre.org)
       has assigned the names CVE-2009-1564 and CVE-2009-1565 to these
       issues.
    
       VMware would like to thank iDefense, Sebastien Renaud of VUPEN
       Vulnerability Research Team (http://www.vupen.com) and Alin Rad Pop
       of Secunia Research for reporting these issues to us.
    
       To remediate the above issues either install the stand alone movie
       decoder or update your product using the table below.
    
    f. VMware Remote Console format string vulnerability
    
       VMware Remote Console (VMrc) contains a format string vulnerability.
       Exploitation of this issue may lead to arbitrary code execution on
       the system where VMrc is installed.
    
       For an attack to be successful, an attacker would need to trick the
       VMrc user into opening a malicious Web page or following a malicious
       URL. Code execution would be at the privilege level of the user.
    
       VMrc is present on a system if the VMrc browser plug-in has been
       installed. This plug-in is required when using the console feature in
       WebAccess. Installation of the plug-in follows after visiting the
       console tab in WebAccess and choosing 'Install plug-in'. The plug-
       in can only be installed on Internet Explorer and Firefox.
    
       Under the following two conditions your version of VMrc is likely
       to be affected :
    
       - the VMrc plug-in was obtained from vCenter 4.0 or from ESX 4.0
         without patch ESX400-200911223-UG and
       - VMrc is installed on a Windows-based system
    
       The following steps allow you to determine if you have an affected
       version of VMrc installed :
    
       - Locate the VMrc executable vmware-vmrc.exe on your Windows-based
         system
       - Right click and go to Properties
       - Go to the tab 'Versions'
       - Click 'File Version' in the 'Item Name' window
       - If the 'Value' window shows 'e.x.p build-158248', the version of
         VMrc is affected
    
       Remediation of this issue on Windows-based systems requires the
       following steps (Linux-based systems are not affected) :
    
       - Uninstall affected versions of VMrc from the systems where the
         VMrc plug-in has been installed (use the Windows Add/Remove
         Programs interface)
       - Install vCenter 4.0 Update 1 or install the ESX 4.0 patch
         ESX400-200911223-UG
       - Login into vCenter 4.0 Update 1 or ESX 4.0 with patch
         ESX400-200911223-UG using WebAccess on the system where the VMrc
         needs to be re-installed
       - Re-install VMrc by going to the console tab in WebAccess.  The
         Console tab is selectable after selecting a virtual machine.
    
       Note: the VMrc plug-in for Firefox on Windows-based operating
       systems is no longer compatible after the above remediation steps.
       Users are advised to use the Internet Explorer VMrc plug-in.
    
       VMware would like to thank Alexey Sintsov from Digital Security
       Research Group for reporting this issue to us.
    
       The Common Vulnerabilities and Exposures project (cve.mitre.org)
       has assigned the name CVE-2009-3732 to this issue.
    
    
    g. Windows-based VMware authd remote denial of service
    
       A vulnerability in vmware-authd could cause a denial of service
       condition on Windows-based hosts.  The denial of service is limited
       to a crash of authd.
    
       The Common Vulnerabilities and Exposures Project (cve.mitre.org)
       has assigned the name CVE-2009-3707 to this issue.
    
    h. Potential information leak via hosted networking stack
    
       A vulnerability in the virtual networking stack of VMware hosted
       products could allow host information disclosure.
    
       A guest operating system could send memory from the host vmware-vmx
       process to the virtual network adapter and potentially to the
       host's physical Ethernet wire.
    
       The Common Vulnerabilities and Exposures Project (cve.mitre.org)
       has assigned the name CVE-2010-1138 to this issue.
    
       VMware would like to thank Johann MacDonagh for reporting this
       issue to us.
    
    i. Linux-based vmrun format string vulnerability
    
       A format string vulnerability in vmrun could allow arbitrary code
       execution.
    
       If a vmrun command is issued and processes are listed, code could
       be executed in the context of the user listing the processes.
    
       The Common Vulnerabilities and Exposures Project (cve.mitre.org)
       has assigned the name CVE-2010-1139 to this issue.
    
       VMware would like to thank Thomas Toth-Steiner for reporting this
       issue to us."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://lists.vmware.com/pipermail/security-announce/2010/000091.html"
      );
      script_set_attribute(attribute:"solution", value:"Apply the missing patch.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_cwe_id(134, 200);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx:2.5.5");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx:3.0.3");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx:4.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2010/04/09");
      script_set_attribute(attribute:"plugin_publication_date", value:"2011/09/21");
      script_set_attribute(attribute:"stig_severity", value:"I");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2011-2018 Tenable Network Security, Inc.");
      script_family(english:"VMware ESX Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/VMware/release", "Host/VMware/version");
      script_require_ports("Host/VMware/esxupdate", "Host/VMware/esxcli_software_vibs");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("vmware_esx_packages.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/VMware/release")) audit(AUDIT_OS_NOT, "VMware ESX / ESXi");
    if (
      !get_kb_item("Host/VMware/esxcli_software_vibs") &&
      !get_kb_item("Host/VMware/esxupdate")
    ) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    init_esx_check(date:"2010-04-09");
    flag = 0;
    
    
    if (esx_check(ver:"ESX 2.5.5", patch:"15")) flag++;
    
    if (esx_check(ver:"ESX 3.0.3", patch:"ESX303-201002203-UG")) flag++;
    
    if (
      esx_check(
        ver           : "ESX 4.0",
        patch         : "ESX400-200911223-UG",
        patch_updates : make_list("ESX400-Update01a", "ESX400-Update02", "ESX400-Update03", "ESX400-Update04")
      )
    ) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:esx_report_get());
      else security_hole(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyWindows
    NASL idVMWARE_MULTIPLE_VMSA_2010_0007.NASL
    descriptionA VMware product (Player, Workstation, or Movie Decoder) detected on the remote host has one or more of the following vulnerabilities : - The VMnc media codec has multiple heap overflow vulnerabilities. A remote attacker could exploit these issues by tricking a user into requesting a malicious web page or opening a malicious file. (CVE-2009-1564, CVE-2009-1565) - A flaw in the 3rd party libpng library could allow an attacker to read sensitive portions of memory. (CVE-2009-2042) - A flaw in vmware-authd could lead to a denial of service service on Windows-based hosts. (CVE-2009-3707) - A format string vulnerability exists in the VMware Remote Console Plug-in. A remote attacker could exploit this by tricking a user into requesting a malicious web page, resulting in arbitrary code execution. (CVE-2009-3732) - A flaw in the virtual networking stack could result in an information leak, causing memory from a guest VM to be sent to host
    last seen2020-06-01
    modified2020-06-02
    plugin id45541
    published2010-04-15
    reporterThis script is Copyright (C) 2010-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/45541
    titleVMware Products Multiple Vulnerabilities (VMSA-2010-0007)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    
    include("compat.inc");
    
    
    if (description)
    {
      script_id(45541);
      script_version("1.21");
      script_cvs_date("Date: 2018/11/15 20:50:29");
    
      script_cve_id(
        "CVE-2009-1564",
        "CVE-2009-1565",
        "CVE-2009-2042",
        "CVE-2009-3707",
        "CVE-2009-3732",
        "CVE-2010-1138",
        "CVE-2010-1140",
        "CVE-2010-1141",
        "CVE-2010-1142"
      );
      script_bugtraq_id(39345, 39363, 39364, 39392, 39394, 39395, 39396, 39397);
      script_xref(name:"VMSA", value:"2010-0007");
      script_xref(name:"IAVA", value:"2010-A-0066");
      script_xref(name:"Secunia", value:"36712");
      script_xref(name:"Secunia", value:"39206");
    
      script_name(english:"VMware Products Multiple Vulnerabilities (VMSA-2010-0007)");
      script_summary(english:"Checks vulnerable versions of VMware products");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote host has a virtualization application affected by multiple
    vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "A VMware product (Player, Workstation, or Movie Decoder) detected on
    the remote host has one or more of the following vulnerabilities :
    
      - The VMnc media codec has multiple heap overflow
        vulnerabilities.  A remote attacker could exploit these
        issues by tricking a user into requesting a malicious
        web page or opening a malicious file.
        (CVE-2009-1564, CVE-2009-1565)
    
      - A flaw in the 3rd party libpng library could allow an
        attacker to read sensitive portions of memory.
        (CVE-2009-2042)
    
      - A flaw in vmware-authd could lead to a denial of service
        service on Windows-based hosts. (CVE-2009-3707)
    
      - A format string vulnerability exists in the VMware
        Remote
        Console Plug-in.  A remote attacker could exploit this
        by tricking a user into requesting a malicious web
        page, resulting in arbitrary code execution.
        (CVE-2009-3732)
    
      - A flaw in the virtual networking stack could result in
        an information leak, causing memory from a guest VM to
        be sent to host's physical network. (CVE-2010-1138)
    
      - A vulnerability in the USB service allows a local
        attacker to elevate privileges by placing a malicious
        file in a certain location.  This vulnerability only
        affects Workstation and Player installed on Windows.
        (CVE-2010-1140)
    
      - A flaw in the way VMware libraries are referenced could
        allow a remote attacker to execute arbitrary code in a
        guest Windows VM by tricking a user into requesting a
        malicious file. (CVE-2010-1141)
    
      - A flaw in the way VMware executables are loaded could
        allow a malicious user to execute arbitrary code in a
        guest Windows VM by planting a malicious file in a
        a certain location. (CVE-2010-1142)");
      script_set_attribute(attribute:"see_also", value:"https://secuniaresearch.flexerasoftware.com/secunia_research/2009-36/");
      script_set_attribute(attribute:"see_also", value:"https://secuniaresearch.flexerasoftware.com/secunia_research/2009-37/");
       # http://www.verisigninc.com/en_US/products-and-services/network-intelligence-availability/idefense/public-vulnerability-reports/articles/index.xhtml?id=866
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8db51821");
      script_set_attribute(attribute:"see_also", value:"http://www.acrossecurity.com/aspr/ASPR-2010-04-12-1-PUB.txt");
      script_set_attribute(attribute:"see_also", value:"http://www.acrossecurity.com/aspr/ASPR-2010-04-12-2-PUB.txt");
      script_set_attribute(attribute:"see_also", value:"http://web.archive.org/web/20160305233340/http://dsecrg.com/pages/vul/show.php?id=153");
      script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2010/Apr/76");
      script_set_attribute(attribute:"see_also", value:"https://www.vmware.com/security/advisories/VMSA-2010-0007.html");
      script_set_attribute(attribute:"solution", value:
    "Upgrade to :
    
      - VMware Workstation 6.5.4 / 7.0.1 or later.
        - VMware Player 2.5.4 / 3.0.1 or later.
        - VMware Movie Decoder (standalone) 6.5.4 or later.
        - VMware Remote Console Plug-in latest version
        (refer to the advisory for instructions)
    
    In addition to patching, VMware Tools must be updated on all guest VMs
    in order to completely mitigate certain vulnerabilities. Refer to the
    VMware advisory for more information.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_cwe_id(134, 200);
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2010/04/09");
      script_set_attribute(attribute:"patch_publication_date", value:"2010/04/09");
      script_set_attribute(attribute:"plugin_publication_date", value:"2010/04/15");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:vmware:vmware_player");
      script_set_attribute(attribute:"cpe",value:"cpe:/a:vmware:vmware_workstation");
      script_set_attribute(attribute:"stig_severity", value:"I");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Windows");
    
      script_copyright(english:"This script is Copyright (C) 2010-2018 Tenable Network Security, Inc.");
    
      script_dependencies("smb_hotfixes.nasl", "vmware_workstation_detect.nasl", "vmware_player_detect.nasl");
      script_require_keys("SMB/Registry/Enumerated");
      script_require_ports(139, 445);
    
      exit(0);
    }
    
    include("misc_func.inc");
    include("smb_func.inc");
    include("smb_hotfixes.inc");
    include("smb_hotfixes_fcheck.inc");
    include("audit.inc");
    
    port = kb_smb_transport();
    report = "";
    vuln = NULL;
    
    commonfiles = hotfix_get_commonfilesdir();
    if (!commonfiles) audit(AUDIT_PATH_NOT_DETERMINED, 'Common Files');
    
    # Check if VMware Remote Console Plug-in / Movie Decoder are installed
    list = get_kb_list("SMB/Registry/HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/*/DisplayName");
    
    vmrc_installed = FALSE;
    decoder_installed = FALSE;
    foreach name (list)
    {
      if (name == 'VMware Remote Console Plug-in')
        vmrc_installed = TRUE;
    
      if (name == 'VMware Movie Decoder')
        decoder_installed = TRUE;
    }
    
    # Check for VMware Workstation
    version = get_kb_item("VMware/Workstation/Version");
    if (version)
    {
     v = split(version, sep:".", keep:FALSE);
    
     if (( int(v[0]) < 6 ) ||
         ( int(v[0]) == 6 && int(v[1]) < 5) ||
         ( int(v[0]) == 6 && int(v[1]) == 5 && int(v[2]) < 4)
       )
     {
       vuln = TRUE;
    
       report =
         '\n  Product           : VMware Workstation'+
         '\n  Installed version : '+version+
         '\n  Fixed version     : 6.5.4\n';
     }
     else if (int(v[0]) == 7 && int(v[1]) == 0 && int(v[2]) < 1)
     {
       vuln = TRUE;
    
       report =
         '\n  Product           : VMware Workstation'+
         '\n  Installed version : '+version+
         '\n  Fixed version     : 7.0.1\n';
     }
     else if (isnull(vuln)) vuln = FALSE;
    }
    else if (decoder_installed)
    {
      # If Workstation is not installed, check if the standalone Movie Decoder is
      # present and vulnerable
      if (!is_accessible_share()) exit(1, "is_accessible_share() failed.");
    
      if (hotfix_is_vulnerable(file:"vmnc.dll", version:"6.5.4", dir:"\system32"))
      {
        vuln = TRUE;
        hf_report = split(hotfix_get_report(), sep:'\n', keep:FALSE);
        report = '\n  Product : VMware Movie Decoder'+
                 '\n  ' + hf_report[1]+
                 '\n  ' + hf_report[2]+'\n';
      }
    
      hotfix_check_fversion_end();
    }
    
    # Check for VMware Player
    version = get_kb_item("VMware/Player/Version");
    if (version)
    {
      v = split(version, sep:".", keep:FALSE);
      if (( int(v[0]) < 2 ) ||
          ( int(v[0]) == 2 && int(v[1]) < 5) ||
          ( int(v[0]) == 2 && int(v[1]) == 5 && int(v[2]) < 4)
        )
      {
        vuln = TRUE;
        report +=
          '\n  Product           : VMware Player'+
          '\n  Installed version : '+version+
          '\n  Fixed version     : 2.5.4\n';
      }
      else if (int(v[0]) == 3 && int(v[1]) == 0 && int(v[2]) < 1)
      {
        vuln = TRUE;
        report +=
          '\n  Product           : VMware Player'+
          '\n  Installed version : '+version+
          '\n  Fixed version     : 3.0.1\n';
      }
      else if (isnull(vuln)) vuln = FALSE;
    }
    
    # Check VMware Remote Console Plug-in
    if (vmrc_installed)
    {
      name    =  kb_smb_name();
      port    =  kb_smb_transport();
      login   =  kb_smb_login();
      pass    =  kb_smb_password();
      domain  =  kb_smb_domain();
    
      # Didn't find install location in the registry anywhere, but it appears to
      # always be installed in the common files dir
      path = commonfiles+"\VMware\VMware Remote Console Plug-in";
      share = ereg_replace(pattern:'^([A-Za-z]):.*', replace:"\1$", string:path);
      exe = ereg_replace(pattern:'^[A-Za-z]:(.*)', replace:"\1\vmware-vmrc.exe", string:path);
    
      if(! smb_session_init()) audit(AUDIT_FN_FAIL, 'smb_session_init');
      rc = NetUseAdd(login:login, password:pass, domain:domain, share:share);
      if (rc != 1)
      {
       NetUseDel();
       exit(1, "Can't connect to "+share+" share.");
      }
    
      fh = CreateFile(
        file:exe,
        desired_access:GENERIC_READ,
        file_attributes:FILE_ATTRIBUTE_NORMAL,
        share_mode:FILE_SHARE_READ,
        create_disposition:OPEN_EXISTING
      );
    
      # Grab the version number if the file was opened successfully.  Otherwise,
      # display a debug message but don't bail out
      if (fh)
      {
        ver = GetProductVersion(handle:fh);
        CloseFile(handle:fh);
        NetUseDel();
      }
      else
      {
        NetUseDel();
        exit(1, "Error opening '"+path+"'.");
      }
    
      # According to the advisory this is the only version that's affected,
      # but it doesn't mention what the latest/fixed version is
      if (ver && ver == 'e.x.p build-158248')
      {
        report +=
          '\n  Product           : VMware Remote Console Plug-in'+
          '\n  Installed version : '+ver+'\n';
      }
      else if (isnull(vuln)) vuln = FALSE;
    }
    
    if (isnull(vuln)) exit(0, "No VMware products were detected on this host.");
    if (!vuln) exit(0, "The host is not affected.");
    
    if (report_verbosity > 0)
      security_hole(port:port, extra:report);
    else
      security_hole();
    
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201209-25.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201209-25 (VMware Player, Server, Workstation: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in VMware Player, Server, and Workstation. Please review the CVE identifiers referenced below for details. Impact : Local users may be able to gain escalated privileges, cause a Denial of Service, or gain sensitive information. A remote attacker could entice a user to open a specially crafted file, possibly resulting in the remote execution of arbitrary code, or a Denial of Service. Remote attackers also may be able to spoof DNS traffic, read arbitrary files, or inject arbitrary web script to the VMware Server Console. Furthermore, guest OS users may be able to execute arbitrary code on the host OS, gain escalated privileges on the guest OS, or cause a Denial of Service (crash the host OS). Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id62383
    published2012-10-01
    reporterThis script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/62383
    titleGLSA-201209-25 : VMware Player, Server, Workstation: Multiple vulnerabilities
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Gentoo Linux Security Advisory GLSA 201209-25.
    #
    # The advisory text is Copyright (C) 2001-2019 Gentoo Foundation, Inc.
    # and licensed under the Creative Commons - Attribution / Share Alike 
    # license. See http://creativecommons.org/licenses/by-sa/3.0/
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(62383);
      script_version("1.24");
      script_cvs_date("Date: 2019/11/12");
    
      script_cve_id("CVE-2007-5269", "CVE-2007-5503", "CVE-2007-5671", "CVE-2008-0967", "CVE-2008-1340", "CVE-2008-1361", "CVE-2008-1362", "CVE-2008-1363", "CVE-2008-1364", "CVE-2008-1392", "CVE-2008-1447", "CVE-2008-1806", "CVE-2008-1807", "CVE-2008-1808", "CVE-2008-2098", "CVE-2008-2100", "CVE-2008-2101", "CVE-2008-4915", "CVE-2008-4916", "CVE-2008-4917", "CVE-2009-0040", "CVE-2009-0909", "CVE-2009-0910", "CVE-2009-1244", "CVE-2009-2267", "CVE-2009-3707", "CVE-2009-3732", "CVE-2009-3733", "CVE-2009-4811", "CVE-2010-1137", "CVE-2010-1138", "CVE-2010-1139", "CVE-2010-1140", "CVE-2010-1141", "CVE-2010-1142", "CVE-2010-1143", "CVE-2011-3868");
      script_bugtraq_id(25956, 26650, 28276, 28289, 29444, 29552, 29557, 29637, 29639, 29640, 29641, 30131, 30937, 32168, 32597, 33827, 33990, 34373, 34471, 36630, 36841, 36842, 39104, 39392, 39394, 39395, 39396, 39397, 39407, 39949, 49942);
      script_xref(name:"GLSA", value:"201209-25");
      script_xref(name:"IAVA", value:"2008-A-0045");
    
      script_name(english:"GLSA-201209-25 : VMware Player, Server, Workstation: Multiple vulnerabilities");
      script_summary(english:"Checks for updated package(s) in /var/db/pkg");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Gentoo host is missing one or more security-related
    patches."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "The remote host is affected by the vulnerability described in GLSA-201209-25
    (VMware Player, Server, Workstation: Multiple vulnerabilities)
    
        Multiple vulnerabilities have been discovered in VMware Player, Server,
          and Workstation. Please review the CVE identifiers referenced below for
          details.
      
    Impact :
    
        Local users may be able to gain escalated privileges, cause a Denial of
          Service, or gain sensitive information.
        A remote attacker could entice a user to open a specially crafted file,
          possibly resulting in the remote execution of arbitrary code, or a Denial
          of Service. Remote attackers also may be able to spoof DNS traffic, read
          arbitrary files, or inject arbitrary web script to the VMware Server
          Console.
        Furthermore, guest OS users may be able to execute arbitrary code on the
          host OS, gain escalated privileges on the guest OS, or cause a Denial of
          Service (crash the host OS).
      
    Workaround :
    
        There is no known workaround at this time."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://security.gentoo.org/glsa/201209-25"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "Gentoo discontinued support for VMware Player. We recommend that users
          unmerge VMware Player:
          # emerge --unmerge 'app-emulation/vmware-player'
        NOTE: Users could upgrade to
          &ldquo;>=app-emulation/vmware-player-3.1.5&rdquo;, however these packages are
          not currently stable.
        Gentoo discontinued support for VMware Workstation. We recommend that
          users unmerge VMware Workstation:
          # emerge --unmerge 'app-emulation/vmware-workstation'
        NOTE: Users could upgrade to
          &ldquo;>=app-emulation/vmware-workstation-7.1.5&rdquo;, however these packages
          are not currently stable.
        Gentoo discontinued support for VMware Server. We recommend that users
          unmerge VMware Server:
          # emerge --unmerge 'app-emulation/vmware-server'"
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"exploithub_sku", value:"EH-14-757");
      script_set_attribute(attribute:"exploit_framework_exploithub", value:"true");
      script_set_attribute(attribute:"d2_elliot_name", value:"Vmware Server File Disclosure");
      script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");
      script_set_attribute(attribute:"exploited_by_malware", value:"true");
      script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
      script_set_attribute(attribute:"canvas_package", value:'D2ExploitPack');
      script_cwe_id(16, 20, 22, 94, 119, 134, 189, 200, 264, 399);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:vmware-player");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:vmware-server");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:vmware-workstation");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:gentoo:linux");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2007/10/08");
      script_set_attribute(attribute:"patch_publication_date", value:"2012/09/29");
      script_set_attribute(attribute:"plugin_publication_date", value:"2012/10/01");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_set_attribute(attribute:"stig_severity", value:"I");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Gentoo Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Gentoo/release", "Host/Gentoo/qpkg-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("qpkg.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Gentoo/release")) audit(AUDIT_OS_NOT, "Gentoo");
    if (!get_kb_item("Host/Gentoo/qpkg-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    
    if (qpkg_check(package:"app-emulation/vmware-server", unaffected:make_list(), vulnerable:make_list("le 1.0.9.156507"))) flag++;
    if (qpkg_check(package:"app-emulation/vmware-workstation", unaffected:make_list(), vulnerable:make_list("le 6.5.5.328052"))) flag++;
    if (qpkg_check(package:"app-emulation/vmware-player", unaffected:make_list(), vulnerable:make_list("le 2.5.5.328052"))) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:qpkg_report_get());
      else security_hole(0);
      exit(0);
    }
    else
    {
      tested = qpkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "VMware Player / Server / Workstation");
    }
    
  • NASL familyVMware ESX Local Security Checks
    NASL idVMWARE_VMSA-2010-0007_REMOTE.NASL
    descriptionThe remote VMware ESX host is missing a security-related patch. It is, therefore, affected by multiple vulnerabilities : - A format string flaw exists in the VMware Remote Console that allows a remote attacker to execute arbitrary code. (CVE-2009-3732) - A flaw exists in VMware Tools due to improper access to libraries. A remote attacker can exploit this to execute arbitrary code by convincing a Windows guest OS user into clicking on a file that is stored on a network share. (CVE-2010-1141) - A flaw exists in VMware Tools due to improper loading of VMware programs. An attacker with access to a Windows guest OS can escalate privileges by placing a Trojan horse program at an unspecified location on the guest OS disk. (CVE-2010-1142)
    last seen2020-06-01
    modified2020-06-02
    plugin id89739
    published2016-03-08
    reporterThis script is Copyright (C) 2016-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/89739
    titleVMware ESX Multiple Vulnerabilities (VMSA-2010-0007) (remote check)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(89739);
      script_version("1.3");
      script_cvs_date("Date: 2018/08/06 14:03:16");
    
      script_cve_id(
        "CVE-2009-3732",
        "CVE-2010-1141",
        "CVE-2010-1142"
      );
      script_bugtraq_id(
        39392,
        39394,
        39396
      );
      script_xref(name:"VMSA", value:"2010-0007");
      script_xref(name:"EDB-ID", value:"12188");
    
      script_name(english:"VMware ESX Multiple Vulnerabilities (VMSA-2010-0007) (remote check)");
      script_summary(english:"Checks the ESX / ESXi version and build number.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote VMware ESX host is missing a security-related patch.");
      script_set_attribute(attribute:"description", value:
    "The remote VMware ESX host is missing a security-related patch. It is,
    therefore, affected by multiple vulnerabilities :
    
      - A format string flaw exists in the VMware Remote Console
        that allows a remote attacker to execute arbitrary code.
        (CVE-2009-3732)
    
      - A flaw exists in VMware Tools due to improper access to
        libraries. A remote attacker can exploit this to execute
        arbitrary code by convincing a Windows guest OS user
        into clicking on a file that is stored on a network
        share. (CVE-2010-1141)
    
      - A flaw exists in VMware Tools due to improper loading of
        VMware programs. An attacker with access to a Windows
        guest OS can escalate privileges by placing a Trojan
        horse program at an unspecified location on the guest OS
        disk. (CVE-2010-1142)");
      script_set_attribute(attribute:"see_also", value:"https://www.vmware.com/security/advisories/VMSA-2010-0007");
      script_set_attribute(attribute:"see_also", value:"http://lists.vmware.com/pipermail/security-announce/2010/000091.html");
      script_set_attribute(attribute:"solution", value:
    "Apply the appropriate patch according to the vendor advisory that
    pertains to ESX version 3.5 / 4.0.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_cwe_id(134);
    
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2010/04/09");
      script_set_attribute(attribute:"patch_publication_date", value:"2010/04/09");
      script_set_attribute(attribute:"plugin_publication_date", value:"2016/03/08");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2016-2018 Tenable Network Security, Inc.");
      script_family(english:"VMware ESX Local Security Checks");
    
      script_dependencies("vmware_vsphere_detect.nbin");
      script_require_keys("Host/VMware/version", "Host/VMware/release");
      script_require_ports("Host/VMware/vsphere");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    
    ver = get_kb_item_or_exit("Host/VMware/version");
    rel = get_kb_item_or_exit("Host/VMware/release");
    port = get_kb_item_or_exit("Host/VMware/vsphere");
    esx = '';
    
    if ("ESX" >!< rel)
      audit(AUDIT_OS_NOT, "VMware ESX/ESXi");
    
    extract = eregmatch(pattern:"^(ESXi?) (\d\.\d).*$", string:ver);
    if (isnull(extract))
      audit(AUDIT_UNKNOWN_APP_VER, "VMware ESX/ESXi");
    else
    {
      esx = extract[1];
      ver = extract[2];
    }
    
    # fixed build numbers are the same for ESX and ESXi
    fixes = make_array(
              "4.0", "236512",
              "3.5", "226117"
            );
    
    fix = FALSE;
    fix = fixes[ver];
    
    # get the build before checking the fix for the most complete audit trail
    extract = eregmatch(pattern:'^VMware ESXi?.* build-([0-9]+)$', string:rel);
    if (isnull(extract))
      audit(AUDIT_UNKNOWN_BUILD, "VMware " + esx, ver);
    
    build = int(extract[1]);
    
    # if there is no fix in the array, fix is FALSE
    if (!fix)
      audit(AUDIT_INST_VER_NOT_VULN, "VMware " + esx, ver, build);
    
    if (build < fix)
    {
    
      report = '\n  Version         : ' + esx + " " + ver +
               '\n  Installed build : ' + build +
               '\n  Fixed build     : ' + fix +
               '\n';
      security_report_v4(port:port, extra:report, severity:SECURITY_HOLE);
      exit(0);
    }
    else
      audit(AUDIT_INST_VER_NOT_VULN, "VMware " + esx, ver, build);