Rapid7 Vulnerability & Exploit Database

MS12-027 MSCOMCTL ActiveX Buffer Overflow

Back to Search

MS12-027 MSCOMCTL ActiveX Buffer Overflow

Disclosed
04/10/2012
Created
05/30/2018

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.

Author(s)

  • Unknown
  • juan vazquez <juan.vazquez@metasploit.com>
  • sinn3r <sinn3r@metasploit.com>

Platform

Windows

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/fileformat/ms12_027_mscomctl_bof
msf exploit(ms12_027_mscomctl_bof) > show targets
    ...targets...
msf exploit(ms12_027_mscomctl_bof) > set TARGET < target-id >
msf exploit(ms12_027_mscomctl_bof) > show options
    ...show and set options...
msf exploit(ms12_027_mscomctl_bof) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;