Secunia Logo
 
Microsoft Windows WMF "SETABORTPROC" Arbitrary Code Execution
Secunia Advisory: SA18255
Release Date: 2005-12-28
Last Update: 2006-02-28
Popularity: 160,582 views

Critical:
Extremely critical
Impact: System access
Where: From remote
Solution Status: Vendor Patch

OS:Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Datacenter Server
Microsoft Windows 2000 Professional
Microsoft Windows 2000 Server
Microsoft Windows Server 2003 Datacenter Edition
Microsoft Windows Server 2003 Enterprise Edition
Microsoft Windows Server 2003 Standard Edition
Microsoft Windows Server 2003 Web Edition
Microsoft Windows XP Embedded
Microsoft Windows XP Home Edition
Microsoft Windows XP Professional

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-4560


Description:
A vulnerability has been discovered in Microsoft Windows, which can be exploited by malicious people to compromise a vulnerable system.

The vulnerability is caused due to an error in the handling of Windows Metafile files (".wmf") containing specially crafted SETABORTPROC "Escape" records. Such records allow arbitrary user-defined function to be executed when the rendering of a WMF file fails. This can be exploited to execute arbitrary code by tricking a user into opening a malicious ".wmf" file in "Windows Picture and Fax Viewer" or previewing a malicious ".wmf" file in explorer (i.e. opening a folder containing a malicious image file).

The vulnerability can also be exploited automatically when a user visits a malicious web site using Microsoft Internet Explorer.

NOTE: Exploit code is publicly available. This is being exploited in the wild. The vulnerability can also be triggered from explorer if the malicious file has been saved to a folder and renamed to other image file extensions like ".jpg", ".gif, ".tif", and ".png" etc.

The vulnerability has been confirmed on a fully patched system running Microsoft Windows XP SP2. Microsoft Windows 2000, Windows XP SP1 and Microsoft Windows Server 2003 SP0 / SP1 are also affected.

Solution:
Apply patches.

Microsoft Windows 2000 (requires Service Pack 4):
http://www.microsoft.com/downloads/de...=AA9E27BD-CB9A-4EF1-92A3-00FFE7B2AC74

Microsoft Windows XP (requires Service Pack 1 or 2):
http://www.microsoft.com/downloads/de...=0C1B4C96-57AE-499E-B89B-215B7BB4D8E9

Microsoft Windows XP Professional x64 Edition:
http://www.microsoft.com/downloads/de...=3A1166E6-5E9E-4E73-BCD4-28ECA6ECE877

Windows XP Embedded SP1:
http://www.microsoft.com/downloads/de...-b356-45eb3f4c2f1b&DisplayLang=en

Windows XP Embedded SP2:
http://www.microsoft.com/downloads/de...-b519-576cfab9d55f&DisplayLang=en

Microsoft Windows Server 2003 (with or without Service Pack 1):
http://www.microsoft.com/downloads/de...=1584AAE0-51CE-47D6-9A03-DB5B9077F1F2

Microsoft Windows Server 2003 (Itanium) (with or without SP1):
http://www.microsoft.com/downloads/de...=6E372D41-2C16-415E-8306-A5CA8845CC09

Microsoft Windows Server 2003 x64 Edition:
http://www.microsoft.com/downloads/de...=A8F4DCBA-5D28-4D9D-A6A4-3B71108CFE2D

See vendors advisory for information about Microsoft Windows 98, Microsoft Windows 98 Second Edition (SE), and Microsoft Windows Millennium Edition (ME).

Provided and/or discovered by:
The vendor credits Dan Hubbard, WebSense.

First reported in the wild by "noemailpls".

Exploit code and additional information provided by H D Moore.

Changelog:
2005-12-29: Updated advisory.
2006-01-06: Vendor releases patches. Updated advisory.
2006-02-28: Added fixes for Windows XP Embedded.

Original Advisory:
MS06-001 (KB912919):
http://www.microsoft.com/technet/security/Bulletin/MS06-001.mspx

Microsoft (KB912840):
http://www.microsoft.com/technet/security/advisory/912840.mspx

Other References:
US-CERT VU#181038:
http://www.kb.cert.org/vuls/id/181038


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Apple iPhone / iPod touch Multiple Vulnerabilities // 120 views
2. vBulletin Visitor Messages Script Insertion Vulnerability // 90 views
3. IBM Workplace Web Content Management Cross-Site Scripting Vulnerabilities // 74 views
4. Checkpoint VPN-1 Information Disclosure Vulnerability // 64 views
5. EMC Control Center SAN Manager Multiple Vulnerabilities // 59 views
6. BitDefender Antivirus PDF Processing Memory Corruption Vulnerability // 58 views
7. SemanticScuttle Cross-Site Scripting Vulnerabilities // 54 views
8. Fedora update for thunderbird // 53 views
9. Avaya CMS Solaris "sadmind" Buffer Overflow Vulnerability // 51 views
10. xt:Commerce SQL Injection Vulnerability // 46 views