Vulnerabilities > CVE-2014-6332 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Microsoft products

047910
CVSS 9.3 - CRITICAL
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
microsoft
CWE-119
critical
nessus
exploit available
metasploit

Summary

OleAut32.dll in OLE in Microsoft Windows Server 2003 SP2, Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2012 Gold and R2, and Windows RT Gold and 8.1 allows remote attackers to execute arbitrary code via a crafted web site, as demonstrated by an array-redimensioning attempt that triggers improper handling of a size value in the SafeArrayDimen function, aka "Windows OLE Automation Array Remote Code Execution Vulnerability."

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

  • descriptionInternet Download Manager - OLE Automation Array Remote Code Execution. CVE-2014-6332. Remote exploit for windows platform
    fileexploits/windows/remote/37668.php
    idEDB-ID:37668
    last seen2016-02-04
    modified2015-07-21
    platformwindows
    port
    published2015-07-21
    reporterMohammad Reza Espargham
    sourcehttps://www.exploit-db.com/download/37668/
    titleInternet Download Manager - OLE Automation Array Remote Code Execution
    typeremote
  • descriptionInternet Explorer OLE Automation Array Remote Code Execution (msf). CVE-2014-6332. Remote exploit for windows platform
    idEDB-ID:35230
    last seen2016-02-04
    modified2014-11-13
    published2014-11-13
    reporterWesley Neelen & Rik van Duijn
    sourcehttps://www.exploit-db.com/download/35230/
    titleMicrosoft Internet Explorer < 11 - OLE Automation Array Remote Code Execution MSF
  • descriptionMicrosoft Internet Explorer OLE Pre-IE11 - Automation Array Remote Code Execution / Powershell VirtualAlloc (MS14-064). CVE-2014-6332,CVE-2014-6332. Remote e...
    idEDB-ID:35308
    last seen2016-02-04
    modified2014-11-20
    published2014-11-20
    reporterGradiusX & b33f
    sourcehttps://www.exploit-db.com/download/35308/
    titleMicrosoft Internet Explorer OLE Pre-IE11 - Automation Array Remote Code Execution / Powershell VirtualAlloc MS14-064
  • descriptionInternet Explorer OLE Automation Array Remote Code Execution. CVE-2014-6332. Remote exploit for windows platform
    idEDB-ID:35229
    last seen2016-02-04
    modified2014-11-13
    published2014-11-13
    reporteryuange
    sourcehttps://www.exploit-db.com/download/35229/
    titleMicrosoft Internet Explorer <= 11 - OLE Automation Array Remote Code Execution 1
  • descriptionThe World Browser 3.0 Final - Remote Code Execution. CVE-2014-6332. Remote exploit for windows platform
    fileexploits/windows/remote/38512.php
    idEDB-ID:38512
    last seen2016-02-04
    modified2015-10-22
    platformwindows
    port
    published2015-10-22
    reporterEhsan Noreddini
    sourcehttps://www.exploit-db.com/download/38512/
    titleThe World Browser 3.0 Final - Remote Code Execution
    typeremote
  • descriptionHavij - OLE Automation Array Remote Code Execution. CVE-2014-6332. Remote exploit for windows platform
    idEDB-ID:37400
    last seen2016-02-04
    modified2015-06-27
    published2015-06-27
    reporterMohammad Reza Espargham
    sourcehttps://www.exploit-db.com/download/37400/
    titleHavij - OLE Automation Array Remote Code Execution
  • descriptionHTML Compiler - Remote Code Execution. CVE-2014-6332. Remote exploit for windows platform
    fileexploits/windows/remote/38500.php
    idEDB-ID:38500
    last seen2016-02-04
    modified2015-10-20
    platformwindows
    port
    published2015-10-20
    reporterEhsan Noreddini
    sourcehttps://www.exploit-db.com/download/38500/
    titleHTML Compiler - Remote Code Execution
    typeremote
  • descriptionAcunetix <= 9.5 - OLE Automation Array Remote Code Execution. CVE-2014-6332. Remote exploit for windows platform
    idEDB-ID:36516
    last seen2016-02-04
    modified2015-03-27
    published2015-03-27
    reporterNaser Farhadi
    sourcehttps://www.exploit-db.com/download/36516/
    titleAcunetix <= 9.5 - OLE Automation Array Remote Code Execution
  • descriptionMicrosoft Windows HTA (HTML Application) - Remote Code Execution (MS14-064). CVE-2014-6332. Remote exploit for windows platform
    fileexploits/windows/remote/37800.php
    idEDB-ID:37800
    last seen2016-02-04
    modified2015-08-17
    platformwindows
    port
    published2015-08-17
    reporterMohammad Reza Espargham
    sourcehttps://www.exploit-db.com/download/37800/
    titleMicrosoft Windows HTA HTML Application - Remote Code Execution MS14-064
    typeremote

Metasploit

descriptionThis module exploits the Windows OLE Automation array vulnerability, CVE-2014-6332. The vulnerability is known to affect Internet Explorer 3.0 until version 11 within Windows 95 up to Windows 10, and no patch for Windows XP. However, this exploit will only target Windows XP and Windows 7 box due to the Powershell limitation. Windows XP by defaults supports VBS, therefore it is used as the attack vector. On other newer Windows systems, the exploit will try using Powershell instead.
idMSF:EXPLOIT/WINDOWS/BROWSER/MS14_064_OLE_CODE_EXECUTION
last seen2020-06-10
modified2019-05-16
published2014-11-24
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/browser/ms14_064_ole_code_execution.rb
titleMS14-064 Microsoft Internet Explorer Windows OLE Automation Array Remote Code Execution

Msbulletin

bulletin_idMS14-064
bulletin_url
date2014-11-11T00:00:00
impactRemote Code Execution
knowledgebase_id3011443
knowledgebase_url
severityCritical
titleVulnerabilities in Windows OLE Could Allow Remote Code Execution

Nessus

NASL familyWindows : Microsoft Bulletins
NASL idSMB_NT_MS14-064.NASL
descriptionThe remote Windows host is affected by multiple vulnerabilities : - A remote code execution vulnerability due to Internet Explorer improperly handling access to objects in memory. A remote attacker can exploit this vulnerability by convincing a user to visit a specially crafted website in Internet Explorer, resulting in execution of arbitrary code in the context of the current user. (CVE-2014-6332) - A remote code execution vulnerability due to a flaw in the OLE package manager. A remote attacker can exploit this vulnerability by convincing a user to open an Office file containing specially crafted OLE objects, resulting in execution of arbitrary code in the context of the current user. (CVE-2014-6352)
last seen2020-06-01
modified2020-06-02
plugin id79125
published2014-11-11
reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/79125
titleMS14-064: Vulnerabilities in Windows OLE Could Allow Remote Code Execution (3011443)
code
#
# (C) Tenable Network Security, Inc.
#

include('compat.inc');

if (description)
{
  script_id(79125);
  script_version("1.14");
  script_cvs_date("Date: 2018/11/15 20:50:31");

  script_cve_id("CVE-2014-6332", "CVE-2014-6352");
  script_bugtraq_id(70690, 70952);
  script_xref(name:"CERT", value:"158647");
  script_xref(name:"EDB-ID", value:"35229");
  script_xref(name:"MSFT", value:"MS14-064");
  script_xref(name:"MSKB", value:"3006226");
  script_xref(name:"MSKB", value:"3010788");

  script_name(english:"MS14-064: Vulnerabilities in Windows OLE Could Allow Remote Code Execution (3011443)");
  script_summary(english:"Checks the versions of packager.dll and Oleaut32.dll.");

  script_set_attribute(attribute:"synopsis", value:"The remote Windows host is affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The remote Windows host is affected by multiple vulnerabilities :

  - A remote code execution vulnerability due to Internet
    Explorer improperly handling access to objects in
    memory. A remote attacker can exploit this vulnerability
    by convincing a user to visit a specially crafted
    website in Internet Explorer, resulting in execution of
    arbitrary code in the context of the current user.
    (CVE-2014-6332)

  - A remote code execution vulnerability due to a flaw in
    the OLE package manager. A remote attacker can exploit
    this vulnerability by convincing a user to open an
    Office file containing specially crafted OLE objects,
    resulting in execution of arbitrary code in the context
    of the current user. (CVE-2014-6352)");
  script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2014/ms14-064");
  script_set_attribute(attribute:"solution", value:
"Microsoft has released a set of patches for Windows 2003, Vista, 2008,
7, 2008 R2, 8, 2012, 8.1, and 2012 R2.");
  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:'MS14-064 Microsoft Windows OLE Package Manager Code Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'CANVAS');
  script_set_attribute(attribute:"vuln_publication_date", value:"2014/10/14");
  script_set_attribute(attribute:"patch_publication_date", value:"2014/11/11");
  script_set_attribute(attribute:"plugin_publication_date", value:"2014/11/11");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows");
  script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2014-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 = 'MS14-064';
kbs = make_list(
  "3006226",
  "3010788"
);

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/Registry/Enumerated");
get_kb_item_or_exit("SMB/WindowsVersion", exit_code:1);

if (hotfix_check_sp_range(win2003:'2', vista:'2', win7:'1', win8:'0', win81:'0') <= 0) audit(AUDIT_OS_SP_NOT_VULN);

share = hotfix_get_systemdrive(as_share:TRUE, exit_on_fail:TRUE);
if (!is_accessible_share(share:share)) audit(AUDIT_SHARE_FAIL, share);

if (
  # Windows 8.1 / Windows Server 2012 R2
  hotfix_is_vulnerable(os:"6.3", sp:0, file:"packager.dll", version:"6.3.9600.17408", min_version:"6.3.9600.16000", dir:"\system32", bulletin:bulletin, kb:"3010788") ||

  # KB 3006226
  hotfix_is_vulnerable(os:"6.3", sp:0, file:"Oleaut32.dll", version:"6.3.9600.17403", min_version:"6.3.9600.16000", dir:"\system32", bulletin:bulletin, kb:"3006226") ||

  # Windows 8 / Windows Server 2012
  hotfix_is_vulnerable(os:"6.2", sp:0, file:"packager.dll", version:"6.2.9200.21278", min_version:"6.2.9200.20000", dir:"\system32", bulletin:bulletin, kb:"3010788") ||
  hotfix_is_vulnerable(os:"6.2", sp:0, file:"packager.dll", version:"6.2.9200.17160", min_version:"6.2.9200.16000", dir:"\system32", bulletin:bulletin, kb:"3010788") ||

  # KB 3006226
  hotfix_is_vulnerable(os:"6.2", sp:0, file:"Oleaut32.dll", version:"6.2.9200.21273", min_version:"6.2.9200.20000", dir:"\system32", bulletin:bulletin, kb:"3006226") ||
  hotfix_is_vulnerable(os:"6.2", sp:0, file:"Oleaut32.dll", version:"6.2.9200.17155", min_version:"6.2.9200.16000", dir:"\system32", bulletin:bulletin, kb:"3006226") ||

  # Windows 7 / Server 2008 R2
  hotfix_is_vulnerable(os:"6.1", sp:1, file:"packager.dll", version:"6.1.7601.22853", min_version:"6.1.7601.22000", dir:"\system32", bulletin:bulletin, kb:"3010788") ||
  hotfix_is_vulnerable(os:"6.1", sp:1, file:"packager.dll", version:"6.1.7601.18645", min_version:"6.1.7600.18000", dir:"\system32", bulletin:bulletin, kb:"3010788") ||

  # KB 3006226
  hotfix_is_vulnerable(os:"6.1", sp:1, file:"Oleaut32.dll", version:"6.1.7601.22846", min_version:"6.1.7601.22000", dir:"\system32", bulletin:bulletin, kb:"3006226") ||
  hotfix_is_vulnerable(os:"6.1", sp:1, file:"Oleaut32.dll", version:"6.1.7601.18640", min_version:"6.1.7600.18000", dir:"\system32", bulletin:bulletin, kb:"3006226") ||

  # Vista / Windows Server 2008
  hotfix_is_vulnerable(os:"6.0", sp:2, file:"packager.dll", version:"6.0.6002.23527", min_version:"6.0.6002.23000", dir:"\system32", bulletin:bulletin, kb:"3010788") ||
  hotfix_is_vulnerable(os:"6.0", sp:2, file:"packager.dll", version:"6.0.6002.19220", min_version:"6.0.6002.18000", dir:"\system32", bulletin:bulletin, kb:"3010788") ||

  # KB 3006226
  hotfix_is_vulnerable(os:"6.0", sp:2, file:"Oleaut32.dll", version:"6.0.6002.23523", min_version:"6.0.6002.23000", dir:"\system32", bulletin:bulletin, kb:"3006226") ||
  hotfix_is_vulnerable(os:"6.0", sp:2, file:"Oleaut32.dll", version:"6.0.6002.19216", min_version:"6.0.6002.18000", dir:"\system32", bulletin:bulletin, kb:"3006226") ||

  # Windows Server 2003
  hotfix_is_vulnerable(os:"5.2", sp:2, file:"Oleaut32.dll", version:"5.2.3790.5464", dir:"\system32", bulletin:bulletin, kb:"3006226")
)
{
  set_kb_item(name:'SMB/Missing/'+bulletin, value:TRUE);
  hotfix_security_hole();
  hotfix_check_fversion_end();
  exit(0);
}
else
{
  hotfix_check_fversion_end();
  audit(AUDIT_HOST_NOT, 'affected');
}

Packetstorm

Saint

bid70952
descriptionWindows OLE Automation Array command execution
idwin_patch_olems14064
osvdb114533
titlewindows_ole_automation_array
typeclient

Seebug

  • bulletinFamilyexploit
    description<p>&nbsp;IBM Security AppScan Standard OLE Automation Array Remote Code Execution</p><p>&nbsp;Author: Naser Farhadi</p><p>&nbsp;Linkedin: <a href="http://ir.linkedin.com/pub/naser-farhadi/85/b3b/909" rel="nofollow">http://ir.linkedin.com/pub/naser-farhadi/85/b3b/909</a></p><p>&nbsp;Date: 1 June 2015 # Version: &lt;= 9.0.2 # Tested on: Windows 7</p><p>&nbsp;Exploit Based on MS14-064 CVE-2014-6332 <a href="http://www.exploit-db.com/exploits/35229/" rel="nofollow">http://www.exploit-db.com/exploits/35229/</a> </p><p>&nbsp;if you able to exploit IE then you can exploit appscan and acunetix ;)</p><p>&nbsp;This Python Script Will Start A Sample HTTP Server On Attacker Machine And Serves Exploit Code And</p>
    idSSV:89272
    last seen2017-11-19
    modified2015-08-31
    published2015-08-31
    reporterFooying
    sourcehttps://www.seebug.org/vuldb/ssvid-89272
    titleIBM Security AppScan Standard <= 9.0.2 - OLE Automation Array Remote Code Execution
  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:92734
    last seen2017-11-19
    modified2017-03-06
    published2017-03-06
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-92734
    titleIE Godmode remote code execution vulnerability, CVE-2014-6332)

Vulner Lab

idVULNERLAB:1576
last seen2019-07-10
modified2015-08-15
published2015-08-15
reporterAuthor: Mohammad Reza Espargham Linkedin: https://ir.linkedin.com/in/rezasp E-Mail: me[at]reza[dot]es , reza.espargham[at]gmail[dot]com Website: www.reza.es Twitter: https://twitter.com/rezesp FaceBook: https://www.facebook.com/mohammadreza.espargham
sourcehttp://www.vulnerability-lab.com/get_content.php?id=1576
titleMS HTA (HTML Application) - Code Execution (MS14-064)