// back

Apple iOS OfficeImport Word Unitialized Memory Vulnerability

06.23.11

BACKGROUND

The OfficeImport framework is an API used by Apple's mobile devices, including the iPod Touch, iPhone, and iPad. The framework is used to parse and display Microsoft Office file formats, such as Excel, Word, and PowerPoint. The OfficeImport framework is used by several applications, including MobileMail and MobileSafari. Both of these applications are attack vectors for this vulnerability. For more information, see the vendor's site found at the following link.

http://www.apple.com/iphone/softwareupdate/

DESCRIPTION

Remote exploitation of a memory corruption vulnerability in Apple Inc.'s OfficeImport framework could allow an attacker to execute arbitrary code with the privileges of the current user.

The vulnerability occurs when parsing a Word file with a maliciously constructed record. This record is used to insert a range of cells into a table and contains a certain field, which is used to specify the index of the cell to insert. This value is not properly validated by the processing code, and is used to index into a vector of function pointers. This can result in uninitialized memory from the vector being used as a function pointer, which can lead to the execution of arbitrary code.

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 has several attack vectors. The most dangerous vector is through MobileSafari, which will automatically open and parse Office files embedded in Web pages. This behavior is similar to Microsoft Office 2000 in that it enables drive-by style attacks without any user interaction beyond visiting a Web page (no file open dialog is displayed, the file is simply opened). Additionally, an attacker can e-mail a targeted user and attach a malicious file. The user will then have to view the e-mail and attachment with MobileMail to trigger the vulnerability.

DETECTION

Mac OS X v10.6 through v10.6.7 and Mac OS X Server v10.6 through v10.6.7 are confirmed by Apple to be vulnerable.

WORKAROUND

iDefense is currently unaware of any workaround for this issue.

VENDOR RESPONSE

Apple Inc. has released patches which addresses this issue. For more information, consult their advisory at the following URL:

http://support.apple.com/kb/HT4723

CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2011-0208 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

04/06/2011 Initial Vendor Notification
04/06/2011 Initial Vendor Reply
06/23/2011 Coordinated Public Disclosure

CREDIT

This vulnerability was reported to iDefense by Tobias Klein.

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.