Users login

Create an account »


Users login

Home » Hacking News » Outlook Express Remote Code Execution in Preview Pane (S/MIME)

Outlook Express Remote Code Execution in Preview Pane (S/MIME)

by Nikola Strahija on October 11th, 2002 Article reference: SUMMARY The S/MIME standard attempts to raise the level of trust of email messages by enabling users to digitally sign their messages and so the receiver can verify the authenticity of the received message. However, sometimes an added security feature can open up dangerous security hole; a security vulnerability in the way Outlook handles S/MIME certificates causes it to execute arbitrary code when inspecting a malformed S/MIME signed message.


Vulnerable versions:
Outlook Express version 5.50
Outlook Express version 6.0

Immune versions:
Outlook Express 5.5 SP2
Outlook Express 6.0 SP1 (included in Windows XP SP1)
Microsoft Outlook

S/MIME has been implemented in Outlook Express in accordance to RFC 2311
( As the RFC states, an
error message should be displayed whenever the "From" field of the
letter does not match that of the S/MIME RFC822 Name (in our example it
will be [email protected]).

The following error message will be displayed whenever such an incident
occurs (The fake email address has been set to "Fake"):

Security Warning

There are security problems with this message.
Please review the highlighted items listed below:

(V) Message has not been tampered with
(V) You do trust the signing digital ID
(V) The digital ID has not expired
(X) The digital ID's e-mail address does not match sender's
Signer: [email protected]
Sender: Fake
(V) The digital ID has not been revoked or revocation information for
certificate could not be determined.
(V) There are no other problems with the digital ID

Ironically, this message warning is where the vulnerability lies. An
overflow in the code that tries to place the sender's email address in
the message allows arbitrary code execution, which is triggered whenever
a user views the message. Watching it in the preview pane is sufficient
to trigger the overflow.

Vendor response:
Microsoft has responded promptly and the fix was included in Service
Pack 1 for Windows XP released a few weeks ago.
A patch for other systems is available at:


The information has been provided by
Noam Rathaus.

Newsletter signup

Signup to our monthly newsletter and stay in touch with IT news!

Free E-books

We've got ebooks! But they're not online. :( Please give us a few days to bring downloads back.


Have something to say or just wanna drop us a line? Please keep this in mind: to spam, we reply with spam.

Contact us »