Public Vulnerability Reports

Microsoft Windows Media Player DVR-MS Memory Corruption Vulnerability

13.12.11

BACKGROUND

Windows Media Player is a video and audio file player for Windows based systems. It supports multiple file formats and allows playing files from either the local filesystem or the network. More information can be at:

http://windows.microsoft.com/en-US/windows/products/windows-media

DESCRIPTION

Remote exploitation of a memory corruption vulnerability in Microsoft Corp.'s Windows Media Player could allow an attacker to execute arbitrary code with the privileges of the current user.

Microsoft Digital Video Recording (DVR-MS) is a proprietary video and audio file container format which can be used with Windows Media Player. A vulnerability exists in the Windows Media Player XDS Codec filter during the processing of a specially crafted DVR-MS file. If a large length value is supplied within a certain chunk of a DVR-MS file, a heap allocation for the chunk data can fail and the return value of the allocation routine will not be checked for an error. A pointer value is calculated using the return value and the supplied length value. This condition can allow an attacker to write two null bytes to an arbitrary location in memory and this may result in the execution of arbitrary code.

ANALYSIS

Exploitation of this vulnerability results in the execution of arbitrary code with the privileges of the user viewing the Web page or opening the DVR-MS file. Since Windows Media Player supported files can be embedded into Web pages, this vulnerability can be exploited as a typical browser vulnerability. To exploit this vulnerability, a targeted user must load a malicious Web page that an attacker created. An attacker typically accomplishes this via social engineering or injecting content into compromised, trusted sites. After the user visits the malicious Web page, no further user interaction is needed.

DETECTION

The following Microsoft products are vulnerable:

  • Windows XP Media Center Edition 2005 SP 3
  • Windows XP SP 3
  • Windows XP Professional x64 Edition SP 2
  • Windows Vista SP 2
  • Windows Vista x64 Edition SP 2
  • Windows 7 for 32-bit Systems and Windows 7 for 32-bit Systems SP 1
  • Windows 7 for x64-based Systems and Windows 7 for x64-based Systems SP 1
  • 7 for 32-bit Systems SP 1
  • Windows 7 for x64-based Systems and Windows 7 for x64-based Systems SP 1

WORKAROUND

It is possible to use Windows ACLs to block access to the vulnerable library. To prevent this library from loading, use the calcs program included with Windows:

cacls "%windir%system32encdec.dll" /E /P everyone:N

This will prevent Windows Media Player from loading this library. To undo this workaround, use the following command:

cacls "%windir%system32encdec.dll" /E /Reveryone

VENDOR RESPONSE

Microsoft has released updates to address this vulnerability. For more information, consult their advisory at the following URL.

http://technet.microsoft.com/en-us/security/bulletin/ms11-092

CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2011-3401 to this issue. This is a candidate for inclusion in the CVE list (http://cve.mitre.org/), which standardizes names for security problems.

DISCLOSURE TIMELINE

08/24/2011 Initial Vendor Notification
08/24/2011 Initial Vendor Reply
12/13/2011 Coordinated Public Disclosure

CREDIT

The discoverer of this vulnerability wishes to remain anonymous.

Get paid for vulnerability research
http://labs.idefense.com/methodology/vulnerability/vcp.php

Free tools, research and upcoming events
http://labs.idefense.com/

LEGAL NOTICES

Copyright © 2011 Verisign, Inc.

Permission is granted for the redistribution of this alert electronically. It may not be edited in any way without the express written consent of iDefense. If you wish to reprint the whole or any part of this alert in any other medium other than electronically, please e-mail customer service for permission.

Disclaimer: The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information.