Rapid7

module

Windows XP/2003/Vista Metafile Escape() SetAbortProc Code Execution

Disclosed
Dec 27, 2005
Created
May 30, 2018

Description

This module exploits a vulnerability in the GDI library included with
Windows XP and 2003. This vulnerability uses the 'Escape' metafile function
to execute arbitrary code through the SetAbortProc procedure. This module
generates a random WMF record stream for each request.

Platform

Windows

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/browser/ms06_001_wmf_setabortproc
msf exploit(ms06_001_wmf_setabortproc) > show targets
...targets...
msf exploit(ms06_001_wmf_setabortproc) > set TARGET < target-id >
msf exploit(ms06_001_wmf_setabortproc) > show options
...show and set options...
msf exploit(ms06_001_wmf_setabortproc) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.