[NT] How Outlook 2002 Can Still Execute JavaScript in an HTML Email Message

From: support@securiteam.com
Date: 03/23/02


From: support@securiteam.com
To: list@securiteam.com
Date: Sat, 23 Mar 2002 17:30:11 +0100 (CET)

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  How Outlook 2002 Can Still Execute JavaScript in an HTML Email Message
------------------------------------------------------------------------

SUMMARY

Windows Media Player (WMP) reintroduces the ability to automatically
execute JavaScript code from an HTML email message in Outlook 2002.
JavaScript is disabled by default in Outlook 2002, because it can
facilitate the creation of worms and other malicious code which is carried
by HTML email messages. Using a number of simple tricks, WMP can be used
to bypass the Outlook security settings and still automatically execute
JavaScript, Java, and ActiveX code in an HTML email message.

DETAILS

Here is an outline of the steps needed to exploit this problem:
1. An IFRAME tag is inserted into an HTML email message that references a
Windows Media Skin (.WMS) file. The .WMS can be loaded either from a Web
site or from an attached file to the email message using the CID:
protocol.

2. Because .WMS files are considered safe by Windows, WMP will
automatically be started by Outlook and it will be passed the .WMS file.

3. The .WMS file contains a short bit of JavaScript code in an onload
handler which runs a Web page using the player.LauchURL() method. This
onload handler is automatically executed when WMP opens the .WMS file.
 
4. The Web page from step 3 can be loaded from a Web site, or the source
code of the Web page can be embedded in the .WMS file using the "about:"
or "javascript:" protocol.

Notes:
1. Other WMP file types besides a Windows Media skin file can be used in
step 1. These file types include .WMZ, .WMD, and .WMA files.

2. This problem is more of an example of poor security policies in Outlook
and WMP and is not really a security hole in the classic sense.

3. Outlook Express and earlier versions of Outlook likely have the same
security problem even with all security protections set to the maximum.

4. Hotmail however does not seem to have this security problem because it
discards IFRAME tags. Other Web-based email systems however would have the
same security problem as Outlook if they do not do filtering of IFRAMEs.

Recommendations:
1. Outlook 2002 should not execute files downloaded by an HTML IFRAME tag.
All file types except for HTML, text, and image files should be discarded
by Outlook 2002 if used in an IFRAME.

2. All WMP file types (.ASX, .WMS, .WMZ, .WMD, .WMA, etc.) should not be
marked safe for opening since many of them can contain script code.

3. The "about:" and "javascript:" protocols should be disabled in the
player.LauchURL() method.

Workarounds:
The only workaround that we are currently aware of is to manually mark
each Windows Media file type as not safe-for-opening. This process is
going to be prone to errors since there are about 10 file types that need
to fixed.

ADDITIONAL INFORMATION

The information has been provided by <mailto:rms@computerbytesman.com>
Richard M. Smith.

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • [NT] MHTML vulnerability in Outlook Express
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... A vulnerability in Outlook Express allows an attacker to run code of the ... If an attacker were to host a malicious website that contained an MHTML ...
    (Securiteam)
  • Bypassing SMTP Content Protection with a Flick of a Button
    ... How about using Outlook Express as ... more than an Outlook Express client and employs a rarely-used feature ... This RFC documented feature called "Message Fragmentation and ... comprehensive security policy to restrict potentially harmful content ...
    (Bugtraq)
  • [VulnWatch] Bypassing SMTP Content Protection with a Flick of a Button
    ... How about using Outlook Express as ... more than an Outlook Express client and employs a rarely-used feature ... This RFC documented feature called "Message Fragmentation and ... comprehensive security policy to restrict potentially harmful content ...
    (VulnWatch)
  • Re: How do I receive an access database?
    ... To provide enhanced security, Microsoft Office Outlook 2003 is designed to ... If you need to share files that have file types blocked by this feature, ... There is no control over those files (no settings within ...
    (microsoft.public.access.gettingstarted)
  • Re: Unsafe Attachments
    ... Teach Yourself Outlook 2003 in 24 Hours ... > Outlook 2002 includes a new security feature that blocks> attachments considered unsafe. ... > Request that the sender use a file compression utility> that changes the file extension. ...
    (microsoft.public.outlook.installation)