what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

iDEFENSE Security Advisory 2009-12-08.2

iDEFENSE Security Advisory 2009-12-08.2
Posted Dec 10, 2009
Authored by iDefense Labs, Sean Larsson, Jun Mao | Site idefense.com

iDefense Security Advisory 12.08.09 - Remote exploitation of an integer overflow vulnerability in Microsoft Corp.'s WordPad could allow an attacker to execute arbitrary code with the privileges of the current user. iDefense has confirmed the existence of this vulnerability in WordPad version 5.1 for Windows XP SP3 and SP2. Other versions of Windows may also be affected. However, Vista and Server 2008 are not affected as they no longer contain the Word97 converter.

tags | advisory, remote, overflow, arbitrary
systems | windows
advisories | CVE-2009-2506
SHA-256 | 4a7ab1715bf7bf9f3e49fd7c137a769d655d1bc36bc533cc4eec0e9fb9cba6a6

iDEFENSE Security Advisory 2009-12-08.2

Change Mirror Download
iDefense Security Advisory 12.08.09
http://labs.idefense.com/intelligence/vulnerabilities/
Dec 08, 2009

I. BACKGROUND

WordPad is the default text editing application included with nearly all
Windows versions since Windows 95. The Word97 converter is used to
convert Word documents into the format used by WordPad, and is present
in all current versions of WordPad except Vista and Server 2008.

II. DESCRIPTION

Remote exploitation of an integer overflow vulnerability in Microsoft
Corp.'s WordPad could allow an attacker to execute arbitrary code with
the privileges of the current user.

The vulnerability occurs when parsing the DocumentSummaryInformation
stream inside of a DOC file. This stream is used to provide information
about the author of the document, date of creation, and similar data.
Part of the data in this stream is a sequence of property name and
value pairs. When reading in the names of these properties, the code
performs a calculation using a 32bit integer from the file that
represents the number of names present. The value is used without any
check on its bounds, which can lead to an integer overflow. This
results in an undersized heap buffer being allocated to store the
property data. It is then possible to overflow this buffer with data
from the file.

III. ANALYSIS

Exploitation of this vulnerability results in the execution of arbitrary
code with the privileges of the user opening the file. To exploit this
vulnerability, an attacker needs to convince a user to open a malicious
file. Usually, WordPad would not be associated with the .DOC file
extension, and would not open it when the file is double clicked.
However, by renaming the .doc file to a .wri extension (associated with
WordPad), it is possible to make WordPad open the file simply by double
clicking it.

IV. DETECTION

iDefense has confirmed the existence of this vulnerability in WordPad
version 5.1 for Windows XP SP3 and SP2. Other versions of Windows may
also be affected. However, Vista and Server 2008 are not affected as
they no longer contain the Word97 converter.

V. WORKAROUND

It is possible to disable access to the converter by changing the ACLs
on the file. This can be accomplished as follows, depending on the
version of Windows being used:

echo y| cacls "%ProgramFiles%\Common Files\Microsoft
Shared\TextConv\mswrd832.cnv" /E /P everyone:N echo y| cacls
"%ProgramFiles(x86)%\Common Files\Microsoft
Shared\TextConv\mswrd832.cnv" /E /P everyone:N echo y| cacls
"%ProgramFiles%\Windows NT\Accessories\mswrd8.wpc" /E /P everyone:N
echo y| cacls "%ProgramFiles%\Windows NT\Accessories\mswrd864.wpc" /E
/P everyone:N echo y| cacls "%ProgramFiles(x86)%\Windows
NT\Accessories\mswrd8.wpc" /E /P everyone:N

VI. VENDOR RESPONSE

Microsoft has released a patch which addresses this issue. This patch
removes the vulnerability by changing the way that the WordPad Text
Converters handle opening specially crafted Word 97 files. For more
information, consult their advisory at the following URL:

http://www.microsoft.com/technet/security/bulletin/MS09-073.mspx

VII. CVE INFORMATION

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

VIII. DISCLOSURE TIMELINE

12/18/2009 Initial Vendor Notification
12/19/2009 Initial Vendor Reply
12/08/2009 Coordinated Public Disclosure

IX. CREDIT

This vulnerability was discovered by Jun Mao and Sean Larsson, iDefense
Labs.

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

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

X. LEGAL NOTICES

Copyright © 2009 iDefense, 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 customerservice@idefense.com 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.
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    18 Files
  • 19
    Nov 19th
    7 Files
  • 20
    Nov 20th
    13 Files
  • 21
    Nov 21st
    6 Files
  • 22
    Nov 22nd
    48 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    60 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    44 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close