search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Apple Mail remote command execution vulnerability

Vulnerability Note VU#433819

Original Release Date: 2007-11-27 | Last Revised: 2007-11-27

Overview

Apple Mail contains a vulnerability that may allow an attacker to execute arbitrary commands on OS X Leopdard (10.5) systems.

Description

Apple OS X uses resource forks to store structured data in files. Data forks are used to store unstructured data.

The AppleDouble standard is specified in RFC 1740:
AppleDouble is the preferred format for a Macintosh file that is to be included in an Internet mail message, because it provides recipients with Macintosh computers the entire document, including icons and other Macintosh specific information, while other users easily can extract the Data fork (the actual data) as it is separated from the AppleDouble encoding.

Apple Mail parses resource forks in mail attachments that use the MIME format AppleDouble.

From the Heise Security report:
Files on a Mac can contain additional information, such as the one that another program should be used to open them. The operating system stores these in the file system in a so-called "resource fork", which is linked to the file. This type of information is usually limited to the local system; however, for emails the MIME format AppleDouble allows resource forks to be attached -- these are automatically analyzed by Apple Mail.

This allows an attacker to create an email with an attachment called picture.jpg that is displayed with a JPEG icon. But when the user tries to open the picture, Apple Mail analyses the resource fork and executes a shell script, for example, without further warning. In this case, even the MIME type displays the attachment as image/jpeg, but careful Mac users may become suspicious when they see that the picture is not immediately displayed as usual.


Note that to successfully exploit this vulnerability an attacker would need to convince a user to open a specially crafted email attachment with Apple Mail. Note that this vulnerability was originally addressed in APPLE-SA-2006-03-01, but was not addressed or reintroduced in Mac OS X Leopard. See US-CERT Technical Cyber Security Alert TA06-062A for more information about APPLE-SA-2006-03-01.

Impact

A remote, unauthenticated attacker may be able to execute arbitrary commands with the permissions of the user running Apple Mail.

Solution

We are currently unaware of a practical solution to this problem.


Do not open unsolicited email attachments

Use caution when opening email attachments. See US-CERT Cyber Security Tip ST04-010 for more information on how to safely handle email messages.

Vendor Information

433819
 

Apple Computer, Inc. Affected

Updated:  November 27, 2007

Status

Affected

Vendor Statement

We have not received a statement from the vendor.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

This report was based on publicly available information provided by Heise Security.

This document was written by Ryan Giobbi.

Other Information

CVE IDs: None
Severity Metric: 9.28
Date Public: 2007-11-25
Date First Published: 2007-11-27
Date Last Updated: 2007-11-27 14:06 UTC
Document Revision: 33

Sponsored by CISA.