ID CVE-2012-0158
Summary The (1) ListView, (2) ListView2, (3) TreeView, and (4) TreeView2 ActiveX controls in MSCOMCTL.OCX in the Common Controls in Microsoft Office 2003 SP3, 2007 SP2 and SP3, and 2010 Gold and SP1; Office 2003 Web Components SP3; SQL Server 2000 SP4, 2005 SP4, and 2008 SP2, SP3, and R2; BizTalk Server 2002 SP1; Commerce Server 2002 SP4, 2007 SP2, and 2009 Gold and R2; Visual FoxPro 8.0 SP1 and 9.0 SP2; and Visual Basic 6.0 Runtime allow remote attackers to execute arbitrary code via a crafted (a) web site, (b) Office document, or (c) .rtf file that triggers "system state" corruption, as exploited in the wild in April 2012, aka "MSCOMCTL.OCX RCE Vulnerability."
References
Vulnerable Configurations
  • Microsoft Office 2003 Service Pack 3
    cpe:2.3:a:microsoft:office:2003:sp3
  • Microsoft Office 2007 Service Pack 2
    cpe:2.3:a:microsoft:office:2007:sp2
  • Microsoft Office 2007 Service Pack 3
    cpe:2.3:a:microsoft:office:2007:sp3
  • Microsoft Office 2010 for x86 (32-bit Systems)
    cpe:2.3:a:microsoft:office:2010:-:x86
  • Microsoft Office 2010 for x86 (32-bit Systems) Service Pack 1
    cpe:2.3:a:microsoft:office:2010:sp1:x86
  • Microsoft Office 2003 Web Components Service Pack 3
    cpe:2.3:a:microsoft:office_web_components:2003:sp3
  • Microsoft SQL Server 2000 Service Pack 4
    cpe:2.3:a:microsoft:sql_server:2000:sp4
  • Microsoft SQL Server 2000 Service Pack 4 Analysis Services
    cpe:2.3:a:microsoft:sql_server:2000:sp4:analysis_services
  • Microsoft SQL Server 2005 Express Edition with Advanced Services Service Pack 4
    cpe:2.3:a:microsoft:sql_server:2005:sp4:express_advanced_services
  • Microsoft SQL Server 2005 Service Pack 4 Itanium
    cpe:2.3:a:microsoft:sql_server:2005:sp4:itanium
  • Microsoft SQL Server 2005 Service Pack 4 64-bit (X64)
    cpe:2.3:a:microsoft:sql_server:2005:sp4:x64
  • Microsoft SQL Server 2005 Service Pack 4 x86 (32-bit)
    cpe:2.3:a:microsoft:sql_server:2005:sp4:x86
  • Microsoft SQL Server 2008 R2 Itanium
    cpe:2.3:a:microsoft:sql_server:2008:r2:itanium
  • Microsoft SQL Server 2008 R2 64-bit (X64)
    cpe:2.3:a:microsoft:sql_server:2008:r2:x64
  • Microsoft SQL Server 2008 R2 x86 (32-bit)
    cpe:2.3:a:microsoft:sql_server:2008:r2:x86
  • Microsoft SQL Server 2008 Service Pack 2 Itanium Based System
    cpe:2.3:a:microsoft:sql_server:2008:sp2:itanium
  • Microsoft SQL Server 2008 Service Pack 2 64-bit (X64)
    cpe:2.3:a:microsoft:sql_server:2008:sp2:x64
  • Microsoft SQL Server 2008 Service Pack 2 x86 (32-bit)
    cpe:2.3:a:microsoft:sql_server:2008:sp2:x86
  • Microsoft SQL Server 2008 Service Pack 3 Itanium Based System
    cpe:2.3:a:microsoft:sql_server:2008:sp3:itanium
  • Microsoft SQL Server 2008 Service Pack 3 64-bit (X64)
    cpe:2.3:a:microsoft:sql_server:2008:sp3:x64
  • Microsoft SQL Server 2008 Service Pack 3 x86 (32-bit)
    cpe:2.3:a:microsoft:sql_server:2008:sp3:x86
  • Microsoft Biztalk Server 2002 Service Pack 1
    cpe:2.3:a:microsoft:biztalk_server:2002:sp1
  • Microsoft Commerce Server 2002 Service Pack 4
    cpe:2.3:a:microsoft:commerce_server:2002:sp4
  • Microsoft Commerce Server 2007 Service Pack 2
    cpe:2.3:a:microsoft:commerce_server:2007:sp2
  • Microsoft Commerce Server 2009
    cpe:2.3:a:microsoft:commerce_server:2009
  • Microsoft Commerce Server 2009 R2
    cpe:2.3:a:microsoft:commerce_server:2009:r2
  • Microsoft Visual Basic 6.0 Runtime
    cpe:2.3:a:microsoft:visual_basic:6.0:-:runtime_extended_files
  • Microsoft Visual FoxPro 8.0 Service Pack 1
    cpe:2.3:a:microsoft:visual_foxpro:8.0:sp1
  • Microsoft Visual FoxPro 9.0 Service Pack 2
    cpe:2.3:a:microsoft:visual_foxpro:9.0:sp2
CVSS
Base: 9.3 (as of 11-04-2012 - 12:24)
Impact:
Exploitability:
CWE CWE-94
CAPEC
  • 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.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
exploit-db via4
description MS12-027 MSCOMCTL ActiveX Buffer Overflow. CVE-2012-0158. Remote exploit for windows platform
id EDB-ID:18780
last seen 2016-02-02
modified 2012-04-25
published 2012-04-25
reporter metasploit
source https://www.exploit-db.com/download/18780/
title WIndows - MSCOMCTL ActiveX Buffer Overflow MS12-027
metasploit via4
description This module exploits a stack buffer overflow in MSCOMCTL.OCX. It uses a malicious RTF to embed the specially crafted MSComctlLib.ListViewCtrl.2 Control as exploited in the wild on April 2012. This module targets Office 2007 and Office 2010 targets. The DEP/ASLR bypass on Office 2010 is done with the Ikazuchi ROP chain proposed by Abysssec. This chain uses "msgr3en.dll", which will load after office got load, so the malicious file must be loaded through "File / Open" to achieve exploitation.
id MSF:EXPLOIT/WINDOWS/FILEFORMAT/MS12_027_MSCOMCTL_BOF
last seen 2018-08-31
modified 2017-07-24
published 2012-04-23
reliability Average
reporter Rapid7
source https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/fileformat/ms12_027_mscomctl_bof.rb
title MS12-027 MSCOMCTL ActiveX Buffer Overflow
msbulletin via4
bulletin_id MS12-027
bulletin_url
date 2012-04-12T00:00:00
impact Remote Code Execution
knowledgebase_id 2664258
knowledgebase_url
severity Critical
title Vulnerability in Windows Common Controls Could Allow Remote Code Execution
nessus via4
NASL family Windows : Microsoft Bulletins
NASL id SMB_NT_MS12-027.NASL
description A memory corruption issue exists in Windows common controls, specifically within the MSCOMCTL.TreeView, MSCOMCTL.ListView2, MSCOMCTL.TreeView2, and MSCOMCTL.ListView controls component of MSCOMCTL.OCX, due to improper sanitization of user-supplied input. An unauthenticated, remote attacker can exploit this issue by convincing a user to view a specially crafted web page, resulting in the execution of arbitrary code.
last seen 2018-09-01
modified 2018-07-30
plugin id 58659
published 2012-04-11
reporter Tenable
source https://www.tenable.com/plugins/index.php?view=single&id=58659
title MS12-027: Vulnerability in Windows Common Controls Could Allow Remote Code Execution (2664258)
oval via4
accepted 2014-06-09T04:00:14.623-04:00
class vulnerability
contributors
  • name Dragos Prisaca
    organization Symantec Corporation
  • name Chandan S
    organization SecPod Technologies
  • name Pradeep R B
    organization SecPod Technologies
  • name Maria Mikhno
    organization ALTX-SOFT
  • name Dragos Prisaca
    organization G2, Inc.
definition_extensions
  • comment Microsoft Office 2003 SP3 is installed
    oval oval:org.mitre.oval:def:15626
  • comment Microsoft Office 2003 Web Components SP3 is installed
    oval oval:org.mitre.oval:def:15325
  • comment Microsoft Office 2007 SP2 is installed
    oval oval:org.mitre.oval:def:15607
  • comment Microsoft Office 2007 SP3 is installed
    oval oval:org.mitre.oval:def:15704
  • comment Microsoft Office 2010 SP1 x86 is installed
    oval oval:org.mitre.oval:def:20819
  • comment Microsoft Office 2010 is installed
    oval oval:org.mitre.oval:def:12061
  • comment Microsoft Office 2010 SP1 is installed
    oval oval:org.mitre.oval:def:15198
  • comment Microsoft Office 2010 SP2 is installed
    oval oval:org.mitre.oval:def:17121
  • comment Microsoft SQL Server 2005 SP4 is installed
    oval oval:org.mitre.oval:def:12442
  • comment Microsoft SQL Server 2008 SP2 is installed
    oval oval:org.mitre.oval:def:12310
  • comment Microsoft SQL Server 2008 SP3 is installed
    oval oval:org.mitre.oval:def:15497
  • comment Microsoft SQL Server 2008 R2 SP2 is installed
    oval oval:org.mitre.oval:def:15803
  • comment Microsoft SQL Server 2008 R2 is installed
    oval oval:org.mitre.oval:def:12596
  • comment Microsoft BizTalk Server 2002 is installed
    oval oval:org.mitre.oval:def:15292
  • comment Microsoft Commerce Server 2002 is installed
    oval oval:org.mitre.oval:def:15304
  • comment Microsoft Commerce Server 2007 is installed
    oval oval:org.mitre.oval:def:15514
  • comment Microsoft Commerce Server 2009 is installed
    oval oval:org.mitre.oval:def:15443
  • comment Microsoft Visual FoxPro is installed
    oval oval:org.mitre.oval:def:14198
  • comment Microsoft Visual Basic 6.0 is installed
    oval oval:org.mitre.oval:def:15369
  • comment Microsoft SQL Server 2000 Analysis Services SP4 is installed
    oval oval:org.mitre.oval:def:15730
  • comment Microsoft SQL Server 2000 SP4 is installed
    oval oval:org.mitre.oval:def:15762
description The (1) ListView, (2) ListView2, (3) TreeView, and (4) TreeView2 ActiveX controls in MSCOMCTL.OCX in the Common Controls in Microsoft Office 2003 SP3, 2007 SP2 and SP3, and 2010 Gold and SP1; Office 2003 Web Components SP3; SQL Server 2000 SP4, 2005 SP4, and 2008 SP2, SP3, and R2; BizTalk Server 2002 SP1; Commerce Server 2002 SP4, 2007 SP2, and 2009 Gold and R2; Visual FoxPro 8.0 SP1 and 9.0 SP2; and Visual Basic 6.0 Runtime allow remote attackers to execute arbitrary code via a crafted (a) web site, (b) Office document, or (c) .rtf file that triggers "system state" corruption, as exploited in the wild in April 2012, aka "MSCOMCTL.OCX RCE Vulnerability."
family windows
id oval:org.mitre.oval:def:15462
status accepted
submitted 2012-04-10T13:00:00
title MSCOMCTL.OCX RCE Vulnerability
version 90
packetstorm via4
data source https://packetstormsecurity.com/files/download/112176/ms12_027_mscomctl_bof.rb.txt
id PACKETSTORM:112176
last seen 2016-12-05
published 2012-04-25
reporter unknown
source https://packetstormsecurity.com/files/112176/MS12-027-MSCOMCTL-ActiveX-Buffer-Overflow.html
title MS12-027 MSCOMCTL ActiveX Buffer Overflow
refmap via4
bid 52911
cert TA12-101A
misc http://opensources.info/comment-on-the-curious-case-of-a-cve-2012-0158-exploit-by-chris-pierce/
ms MS12-027
sectrack
  • 1026899
  • 1026900
  • 1026902
  • 1026903
  • 1026904
  • 1026905
xf ms-activex-control-code-execution(74372)
saint via4
bid 52911
description Microsoft Windows Common Controls MSCOMCTL.OCX Vulnerability
id win_patch_office2007comctl,win_patch_office2010comctl
osvdb 81125
title windows_common_controls_mscomctlocx
type client
the hacker news via4
Last major update 23-02-2017 - 21:59
Published 10-04-2012 - 17:55
Last modified 12-10-2018 - 18:02
Back to Top