Vulnerabilities > CVE-2014-4114 - Improper Input Validation 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-20
critical
nessus
exploit available
metasploit

Summary

Microsoft 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 allow remote attackers to execute arbitrary code via a crafted OLE object in an Office document, as exploited in the wild with a "Sandworm" attack in June through October 2014, aka "Windows OLE Remote Code Execution Vulnerability."

Common Weakness Enumeration (CWE)

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.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Exploit-Db

  • descriptionWindows OLE Package Manager SandWorm Exploit. CVE-2014-4114,CVE-2014-6352. Local exploit for windows platform
    fileexploits/windows/local/35019.py
    idEDB-ID:35019
    last seen2016-02-04
    modified2014-10-20
    platformwindows
    port
    published2014-10-20
    reporterVlad Ovtchinikov
    sourcehttps://www.exploit-db.com/download/35019/
    titleWindows OLE Package Manager SandWorm Exploit
    typelocal
  • descriptionMS14-064 Microsoft Windows OLE Package Manager Code Execution Through Python. CVE-2014-4114,CVE-2014-6352. Local exploit for windows platform
    idEDB-ID:35235
    last seen2016-02-04
    modified2014-11-14
    published2014-11-14
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/35235/
    titleMS14-064 Microsoft Windows OLE Package Manager Code Execution Through Python
  • descriptionMS14-064 Microsoft Windows OLE Package Manager Code Execution. CVE-2014-4114,CVE-2014-6352. Local exploit for windows platform
    idEDB-ID:35236
    last seen2016-02-04
    modified2014-11-14
    published2014-11-14
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/35236/
    titleMS14-064 Microsoft Windows OLE Package Manager Code Execution
  • descriptionMicrosoft Office 2007 and 2010 - OLE Arbitrary Command Execution. CVE-2014-4114,CVE-2014-6352. Local exploit for windows platform
    idEDB-ID:35216
    last seen2016-02-04
    modified2014-11-12
    published2014-11-12
    reporterAbhishek Lyall
    sourcehttps://www.exploit-db.com/download/35216/
    titleMicrosoft Office 2007 and 2010 - OLE Arbitrary Command Execution
  • descriptionWindows OLE - Remote Code Execution "Sandworm" Exploit (MS14-060). CVE-2014-4114,CVE-2014-6352. Remote exploit for windows platform
    fileexploits/windows/remote/35055.py
    idEDB-ID:35055
    last seen2016-02-04
    modified2014-10-25
    platformwindows
    port
    published2014-10-25
    reporterMike Czumak
    sourcehttps://www.exploit-db.com/download/35055/
    titleWindows OLE - Remote Code Execution "Sandworm" Exploit MS14-060
    typeremote
  • descriptionMS14-060 Microsoft Windows OLE Package Manager Code Execution. CVE-2014-4114,CVE-2014-6352. Local exploit for win32 platform
    fileexploits/windows_x86/local/35020.rb
    idEDB-ID:35020
    last seen2016-02-04
    modified2014-10-20
    platformwindows_x86
    port
    published2014-10-20
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/35020/
    titleMS14-060 Microsoft Windows OLE Package Manager Code Execution
    typelocal

Metasploit

descriptionThis module exploits a vulnerability found in Windows Object Linking and Embedding (OLE) allowing arbitrary code execution, publicly known as "Sandworm". Platforms such as Windows Vista SP2 all the way to Windows 8, Windows Server 2008 and 2012 are known to be vulnerable. However, based on our testing, the most reliable setup is on Windows platforms running Office 2013 and Office 2010 SP2. And please keep in mind that some other setups such as using Office 2010 SP1 might be less stable, and sometimes may end up with a crash due to a failure in the CPackage::CreateTempFileName function. This module will generate three files: an INF, a GIF, and a PPSX file. You are required to set up a SMB or Samba 3 server and host the INF and GIF there. Systems such as Ubuntu or an older version of Windows (such as XP) work best for this because they require little configuration to get going. The PPSX file is what you should send to your target. In detail, the vulnerability has to do with how the Object Packager 2 component (packager.dll) handles an INF file that contains malicious registry changes, which may be leveraged for code execution. First of all, Packager does not load the INF file directly. As an attacker, you can trick it to load your INF anyway by embedding the file path as a remote share in an OLE object. The packager will then treat it as a type of media file, and load it with the packager!CPackage::OLE2MPlayerReadFromStream function, which will download it with a CopyFileW call, save it in a temp folder, and pass that information for later. The exploit will do this loading process twice: first for a fake gif file that's actually the payload, and the second for the INF file. The packager will also look at each OLE object's XML Presentation Command, specifically the type and cmd property. In the exploit, "verb" media command type is used, and this triggers the packager!CPackage::DoVerb function. Also, "-3" is used as the fake gif file's cmd property, and "3" is used for the INF. When the cmd is "-3", DoVerb will bail. But when "3" is used (again, for the INF file), it will cause the packager to try to find appropriate handler for it, which will end up with C:\Windows\System32\infDefaultInstall.exe, and that will install/run the malicious INF file, and finally give us arbitrary code execution.
idMSF:EXPLOIT/WINDOWS/FILEFORMAT/MS14_060_SANDWORM
last seen2020-06-01
modified2019-12-10
published2014-10-16
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/fileformat/ms14_060_sandworm.rb
titleMS14-060 Microsoft Windows OLE Package Manager Code Execution

Msbulletin

bulletin_idMS14-060
bulletin_url
date2014-10-14T00:00:00
impactRemote Code Execution
knowledgebase_id3000869
knowledgebase_url
severityImportant
titleVulnerability in Windows OLE Could Allow Remote Code Execution

Nessus

NASL familyWindows : Microsoft Bulletins
NASL idSMB_NT_MS14-060.NASL
descriptionThe remote Windows host is affected by a remote code execution vulnerability due to improperly handled OLE objects. An attacker can exploit this vulnerability by convincing a user to open a file containing a specially crafted OLE object, resulting in execution of arbitrary code in the context of the current user.
last seen2020-06-01
modified2020-06-02
plugin id78435
published2014-10-15
reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/78435
titleMS14-060: Vulnerability in Windows OLE Could Allow Remote Code Execution (3000869)

Packetstorm

Saint

bid70419
descriptionWindows OLE Package Manager CPackage::DoVerb() INF File Download Vulnerability
idwin_patch_ms14060
osvdb113140
titlewindows_ole_sandworm
typeclient

Seebug

  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:87344
    last seen2017-11-19
    modified2014-11-13
    published2014-11-13
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-87344
    titleMS14-060 Microsoft Windows OLE Package Manager Code Execution
  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:87328
    last seen2017-11-19
    modified2014-11-13
    published2014-11-13
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-87328
    titleWindows OLE - Remote Code Execution "Sandworm" Exploit (MS14-060)
  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:87345
    last seen2017-11-19
    modified2014-11-13
    published2014-11-13
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-87345
    titleWindows OLE Package Manager SandWorm Exploit

The Hacker News