Microsoft Windows animated cursor (ANI) buffer overflow

win-ani-code-execution (33301) The risk level is classified as HighHigh Risk

Description:

Microsoft Windows is vulnerable to a stack-based buffer overflow, caused by improper bounds checking of animated cursor (ANI) files by the USER32.DLL file. By persuading a victim to open a specially-crafted animated cursor (ANI) file, a remote attacker could overflow a buffer to corrupt system memory and execute arbitrary code on the system with the privileges of the victim. An attacker could exploit this vulnerability by hosting the malicious file on a Web site or sending it to a victim as an email attachment.

Platforms Affected:

  • Microsoft, Windows 2000 SP4
  • Microsoft, Windows 2003
  • Microsoft, Windows 2003 Server SP1
  • Microsoft, Windows 2003 Server Itanium
  • Microsoft, Windows 2003 Server x64
  • Microsoft, Windows 2003 Server SP1 Itanium
  • Microsoft, Windows 2003 Server SP2 x64
  • Microsoft, Windows 2003 Server SP2 Itanium
  • Microsoft, Windows 2003 Server SP2
  • Microsoft, Windows Vista x64
  • Microsoft, Windows Vista
  • Microsoft, Windows XP SP2 x64-Professional
  • Microsoft, Windows XP SP2
  • Microsoft, Windows XP x64-Professional

Remedy:

Apply the appropriate patch for your system, as listed in Microsoft Security Bulletin MS07-017. See References.

Consequences:

Gain Access

References:

  • Determina Security Advisory, March 29, 2007, Vulnerability In Windows Animated Cursor Handling at http://www.determina.com/security_center/security_advisories/securityadvisory_0day_032907.asp.
  • McAfee Avert Labs Blog, Wednesday March 28, 2007 at 4:44 pm CST, Unpatched Drive-By Exploit Found On The Web at http://www.avertlabs.com/research/blog/?p=230.
  • Microsoft Security Advisory (935423), Vulnerability in Windows Animated Cursor Handling at http://www.microsoft.com/technet/security/advisory/935423.mspx.
  • Microsoft Security Bulletin MS07-017, Vulnerabilities in GDI Could Allow Remote Code Execution (925902) at http://www.microsoft.com/technet/security/Bulletin/ms07-017.mspx.
  • ASA-2007-140: MS07-17 Vulnerabilities in GDI Could Allow Remote Code Execution (925902)
  • BID-23194: Microsoft Windows Cursor And Icon ANI Format Handling Remote Buffer Overflow Vulnerability
  • CVE-2007-0038: Stack-based buffer overflow in the animated cursor code in Microsoft Windows 2000 SP4 through Vista allows remote attackers to execute arbitrary code or cause a denial of service (persistent reboot) via a large length value in the second (or later) anih block of a RIFF .ANI, cur, or .ico file, which results in memory corruption when processing cursors, animated cursors, and icons, a variant of CVE-2005-0416, as originally demonstrated using Internet Explorer 6 and 7. NOTE: this might be a duplicate of CVE-2007-1765; if so, then CVE-2007-0038 should be preferred.
  • FrSIRT/ADV-2007-1151: Microsoft Windows Cursor and Icon Format Handling Remote Code Execution Vulnerability
  • FrSIRT/ADV-2007-1215: Microsoft Windows Code Execution and Privilege Escalation Vulnerabilities (MS07-017)
  • OSVDB ID: 33629: Microsoft IE Animated Cursor (.ani) Handling Arbitrary Command Execution
  • SA24659: Microsoft Windows Animated Cursor Buffer Overflow Vulnerability
  • SECTRACK ID: 1017827: Microsoft Windows Animated Cursor Bug Lets Remote Users Execute Arbitrary Code
  • US-CERT VU#191609: Microsoft Windows animated cursor stack buffer overflow

Reported:

Mar 28, 2007

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.

For corrections or additions please email xforce@iss.net

Return to the main page