VMware OVF Tool 2.1 File Handling Format String Vulnerability (VMSA-2012-0015) - Nessus

High   Plugin ID: 63075

This page contains detailed information about the VMware OVF Tool 2.1 File Handling Format String Vulnerability (VMSA-2012-0015) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 63075
Name: VMware OVF Tool 2.1 File Handling Format String Vulnerability (VMSA-2012-0015)
Filename: vmware_ovftool_vmsa_2012-0015.nasl
Vulnerability Published: 2012-11-08
This Plugin Published: 2012-11-28
Last Modification Time: 2018-11-15
Plugin Version: 1.11
Plugin Type: local
Plugin Family: Windows
Dependencies: vmware_ovftool_installed.nasl
Required KB Items [?]: SMB/VMware OVF Tool/Path, SMB/VMware OVF Tool/Version

Vulnerability Information


Severity: High
Vulnerability Published: 2012-11-08
Patch Published: 2012-11-08
CVE [?]: CVE-2012-3569
CPE [?]: cpe:/a:vmware:ovf_tool
Exploited by Malware: True

Synopsis

The remote Windows host has a tool installed that is affected by a format string vulnerability.

Description

The version of the VMware OVF Tool installed on the remote Windows host is potentially affected by a format string vulnerability. By tricking a user into loading a specially crafted OVF file a remote, unauthenticated attacker could execute arbitrary code on the remote host subject to the privileges of the user running the affected application.

Solution

Upgrade to VMware OVF Tool 3.0.1 or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the VMware OVF Tool 2.1 File Handling Format String Vulnerability (VMSA-2012-0015) vulnerability:

  1. Metasploit: exploit/windows/browser/ovftool_format_string
    [VMWare OVF Tools Format String Vulnerability]
  2. Metasploit: exploit/windows/fileformat/ovf_format_string
    [VMWare OVF Tools Format String Vulnerability]
  3. Exploit-DB: exploits/windows/remote/24460.rb
    [EDB-24460: VMware OVF Tools - Format String (Metasploit) (1)]
  4. Exploit-DB: exploits/windows/remote/24461.rb
    [EDB-24461: VMware OVF Tools - Format String (Metasploit) (2)]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:M/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:9.3 (High)
Impact Subscore:10.0
Exploitability Subscore:8.6
CVSS Temporal Score:8.1 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.1 (High)

Go back to menu.

Plugin Source


This is the vmware_ovftool_vmsa_2012-0015.nasl nessus plugin source code. This script is Copyright (C) 2012-2018 Tenable Network Security, Inc.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(63075);
  script_version("1.11");
  script_cvs_date("Date: 2018/11/15 20:50:29");

  script_cve_id("CVE-2012-3569");
  script_bugtraq_id(56468);
  script_xref(name:"VMSA", value:"2012-0015");

  script_name(english:"VMware OVF Tool 2.1 File Handling Format String Vulnerability (VMSA-2012-0015)");
  script_summary(english:"Checks version of OVF Tool");

  script_set_attribute(attribute:"synopsis", value:
"The remote Windows host has a tool installed that is affected by a
format string vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of the VMware OVF Tool installed on the remote Windows host
is potentially affected by a format string vulnerability.  By tricking a
user into loading a specially crafted OVF file a remote, unauthenticated
attacker could execute arbitrary code on the remote host subject to the
privileges of the user running the affected application.");
  script_set_attribute(attribute:"see_also", value:"https://www.vmware.com/security/advisories/VMSA-2012-0015.html");
  script_set_attribute(attribute:"see_also", value:"http://lists.vmware.com/pipermail/security-announce/2012/000193.html");
  script_set_attribute(attribute:"solution", value:"Upgrade to VMware OVF Tool 3.0.1 or later.");
  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:H/RL:OF/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:"exploited_by_malware", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'VMWare OVF Tools Format String Vulnerability');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2012/11/08");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/11/08");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/11/28");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:vmware:ovf_tool");
  script_end_attributes();

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

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

  script_dependencies("vmware_ovftool_installed.nasl");
  script_require_keys("SMB/VMware OVF Tool/Path", "SMB/VMware OVF Tool/Version");
  
  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");

version = get_kb_item_or_exit("SMB/VMware OVF Tool/Version");
path = get_kb_item_or_exit("SMB/VMware OVF Tool/Path");

if (version !~ '^2\\.1') exit(0, "The VMware OVF Tool install under "+path+" is "+version+", not 2.1.");

fixed_version = '3.0.1';
if (ver_compare(ver:version, fix:fixed_version, strict:FALSE) < 0)
{
  port = get_kb_item('SMB/transport');

  if (report_verbosity > 0)
  {
    report +=
      '\n  Path              : ' + path +
      '\n  Installed version : ' + version +
      '\n  Fixed version     : ' + fixed_version +
      '\n';
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
}
else audit(AUDIT_INST_VER_NOT_VULN, 'VMware OVF Tool', version);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/vmware_ovftool_vmsa_2012-0015.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\vmware_ovftool_vmsa_2012-0015.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/vmware_ovftool_vmsa_2012-0015.nasl

Go back to menu.

How to Run


Here is how to run the VMware OVF Tool 2.1 File Handling Format String Vulnerability (VMSA-2012-0015) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Windows plugin family.
  6. On the right side table select VMware OVF Tool 2.1 File Handling Format String Vulnerability (VMSA-2012-0015) plugin ID 63075.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl vmware_ovftool_vmsa_2012-0015.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a vmware_ovftool_vmsa_2012-0015.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - vmware_ovftool_vmsa_2012-0015.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state vmware_ovftool_vmsa_2012-0015.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: VMSA | VMware Security Advisory: See also: Similar and related Nessus plugins:
  • 30106 - AXIGEN Mail Server AXIMilter CNHO Command Remote Format String
  • 12086 - DreamFTP Server username Remote Format String
  • 18974 - FreeBSD : gld -- format string and buffer overflow vulnerabilities (6c2d4f29-af3e-11d9-837d-000e0c2e438a)
  • 57739 - FreeBSD : sudo -- format string vulnerability (7c920bb7-4b5f-11e1-9f47-00e0815b8da8)
  • 21504 - FreeBSD : perl, webmin, usermin -- perl format string integer wrap vulnerability (bb33981a-7ac6-11da-bf72-00123f589060)
  • 22213 - FreeBSD : mysql -- format string vulnerability (fcb90eb0-2ace-11db-a6e2-000e0c2e438a)
  • 18530 - GLSA-200506-15 : PeerCast: Format string vulnerability
  • 20281 - GLSA-200512-02 : Webmin, Usermin: Format string vulnerability
  • 16265 - Berlios gpsd gpsd_report() Function Format String
  • 10522 - LPRng use_syslog() Remote Format String Arbitrary Command Execution
  • 31732 - McAfee Common Management Agent < 3.6.0.595 UDP Packet Handling Format String
  • 17839 - OpenSSH < 2.1.1p3 Format String Privilege Escalation
  • 18417 - PeerCast URL Error Message Format String
  • 16064 - SHOUTcast Server Filename Handling Format String
  • 31642 - VLC Media Player network/httpd.c httpd_FileCallBack Function Connection Parameter Format String
  • 20343 - Webmin 'miniserv.pl' 'username' Parameter Format String
  • 10452 - WU-FTPD site_exec() Function Remote Format String

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file vmware_ovftool_vmsa_2012-0015.nasl version 1.11. For more plugins, visit the Nessus Plugin Library.

Go back to menu.