module
MS13-069 Microsoft Internet Explorer CCaret Use-After-Free
Disclosed | Created |
---|---|
2013-09-10 | 2018-05-30 |
Disclosed
2013-09-10
Created
2018-05-30
Description
This module exploits a use-after-free vulnerability found in Internet Explorer,
specifically in how the browser handles the caret (text cursor) object. In IE's standards
mode, the caret handling's vulnerable state can be triggered by first setting up an
editable page with an input field, and then we can force the caret to update in an
onbeforeeditfocus event by setting the body's innerHTML property. In this event handler,
mshtml!CCaret::`vftable' can be freed using a document.write() function, however,
mshtml!CCaret::UpdateScreenCaret remains unaware of this change, and still uses the
same reference to the CCaret object. When the function tries to use this invalid reference
to call a virtual function at offset 0x2c, it finally results a crash. Precise control of
the freed object allows arbitrary code execution under the context of the user.
specifically in how the browser handles the caret (text cursor) object. In IE's standards
mode, the caret handling's vulnerable state can be triggered by first setting up an
editable page with an input field, and then we can force the caret to update in an
onbeforeeditfocus event by setting the body's innerHTML property. In this event handler,
mshtml!CCaret::`vftable' can be freed using a document.write() function, however,
mshtml!CCaret::UpdateScreenCaret remains unaware of this change, and still uses the
same reference to the CCaret object. When the function tries to use this invalid reference
to call a virtual function at offset 0x2c, it finally results a crash. Precise control of
the freed object allows arbitrary code execution under the context of the user.
Authors
corelanc0d3r
sinn3r sinn3r@metasploit.com
sinn3r sinn3r@metasploit.com
Platform
Windows
References
Module Options
To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:

NEW
Explore Exposure Command
Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.