<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>Internet Explorer Compressed Content URL Heap Overflow
Vulnerability #2<o:p></o:p></p>

<p class=MsoNormal>http://research.eeye.com/html/advisories/published/AD20060912.html<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Release Date:<o:p></o:p></p>

<p class=MsoNormal>September 12, 2006<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Date Reported:<o:p></o:p></p>

<p class=MsoNormal>August 24, 2006<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Severity:<o:p></o:p></p>

<p class=MsoNormal>High (Code Execution)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Systems Affected:<o:p></o:p></p>

<p class=MsoNormal>Internet Explorer 5 SP4 with MS06-042 - Windows 2000<o:p></o:p></p>

<p class=MsoNormal>Internet Explorer 6 SP1 with MS06-042 v1 or v2 - Windows
2000<o:p></o:p></p>

<p class=MsoNormal>Internet Explorer 6 SP1 with MS06-042 v1 or v2 - Windows XP
SP1<o:p></o:p></p>

<p class=MsoNormal>Internet Explorer 6 SP1 with MS06-042 v1 or v2 - Windows
Server 2003 SP0<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Overview:<o:p></o:p></p>

<p class=MsoNormal>eEye Digital Security has discovered a second heap overflow
vulnerability in the MS06-042 cumulative Internet Explorer update that would
allow an attacker to execute arbitrary code on the system of a victim who
attempts to access a malicious URL.&nbsp; Windows 2000, Windows XP SP1, and
Windows 2003 SP0 systems running Internet Explorer 5 SP4 or Internet Explorer 6
SP1, with the MS06-042 patch applied, are vulnerable; unpatched and more recent
versions of Internet Explorer are not affected.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>This heap overflow is almost identical to the previous
vulnerability reported by eEye and addressed in the August 24th re-release
(&quot;v2&quot;) of MS06-042.&nbsp; In this case, the heap overflow occurs when
URLMON.DLL attempts to handle a long URL for which the web server's response
indicated GZIP or deflate encoding, if that URL was returned as the destination
of an HTTP redirect (e.g., &quot;302 Found&quot;).&nbsp; This means that the
user interaction requirement for this attack is negligible, since clicking a
hyperlink, visiting a malicious web page, or even attempting to view an image
for which the source is a malicious URL, permits exploitation of the
vulnerability.&nbsp; <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Technical Details:<o:p></o:p></p>

<p class=MsoNormal>URLMON.DLL versions 5.0.3841.2400, 6.0.2800.1565, and
6.0.2800.1567, distributed with the MS06-042 patches for Internet Explorer 5
SP4 and Internet Explorer 6 SP1 on Windows 2000, Windows XP SP1, and Windows
2003 SP0, contain a heap buffer overflow vulnerability due to an incongruous
use of lstrcpynA.&nbsp; CMimeFt::Create allocates a 390h-byte heap block for a
new instance of the CMimeFt class, within which there is a 104h (MAX_PATH)-byte
ASCII string buffer at offset +160h:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; 1A4267F8&nbsp;&nbsp;&nbsp;
push&nbsp;&nbsp;&nbsp;
390h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; cb<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; 1A4267FD&nbsp;&nbsp;&nbsp;
call&nbsp;&nbsp;&nbsp; ??2@YAPAXI@Z&nbsp;&nbsp;&nbsp; ; operator new(uint)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>When an access to a URL elicits an HTTP redirect (statuses
300 through 303) from the web server, and the subsequent access to the
&quot;Location&quot; URL returns a GZIP- or deflate-encoded response,
CMimeFt::ReportProgress will attempt to copy the URL into the 104h-byte string
buffer using the lstrcpynA API function, but it passes a maximum length
argument of 824h (2084 decimal), a value typically used as the maximum length
of a URL:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; 1A425D41&nbsp;&nbsp;&nbsp;
push&nbsp;&nbsp;&nbsp;
824h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;
iMaxLength<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; 1A425D46&nbsp;&nbsp;&nbsp;
push&nbsp;&nbsp;&nbsp;
eax&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;
lpString2<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; 1A425D47&nbsp;&nbsp;&nbsp; add&nbsp;&nbsp;&nbsp;&nbsp;
esi, 15Ch<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; 1A425D4C&nbsp;&nbsp;&nbsp;
push&nbsp;&nbsp;&nbsp;
esi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;
lpString1<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; 1A425D4D&nbsp;&nbsp;&nbsp;
call&nbsp;&nbsp;&nbsp; ds:lstrcpynA<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>As a result, fields within the CMimeFt class instance, as
well as the contents of adjacent heap blocks, can be overwritten with
attacker-supplied data from the malicious URL.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Windows XP SP2 and Windows 2003 SP1 are not susceptible
because the URLMON.DLLs included in the MS06-042 patches for those systems use
824h both as the field size and as the copy length limit, in all the relevant
locations in the code.&nbsp; The QFE branches of MS06-042 even for the
above-mentioned vulnerable versions of Windows and Internet Explorer are not
susceptible for the same reason; it is unclear why this fix was repeatedly
re-implemented, in many cases incorrectly, when proper implementations have
existed since August 8th.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Protection:<o:p></o:p></p>

<p class=MsoNormal>Retina Network Security Scanner has been updated to identify
this vulnerability.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Vendor Status:<o:p></o:p></p>

<p class=MsoNormal>Microsoft has released a third version of the MS06-042 patch
to correct this vulnerability. The revised patch is available at:<o:p></o:p></p>

<p class=MsoNormal>http://www.microsoft.com/technet/security/bulletin/MS06-042.mspx.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Note that installing the original release or first
re-release of the MS06-042 update causes a system to become vulnerable, so
applying the version 3.0 release of the MS06-042 patch will then be necessary
in order to secure that system.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Systems with the QFE version of the MS06-042 v1 or MS06-042
v2 / KB923762 hotfix applied are not susceptible to this vulnerability,
although the MS06-042 v3.0 patch should still be installed on these
systems.&nbsp; (Note that the QFE DLL is only selected in specific, rare
circumstances, so most likely applying MS06-042 v1 or v2 will deploy the
vulnerable GDR-branch DLL instead.)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Credit:<o:p></o:p></p>

<p class=MsoNormal>Derek Soeder<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Related Links:<o:p></o:p></p>

<p class=MsoNormal>Retina Network Security Scanner &#8211; (http://www.eeye.com/html/products/retina/index.html)<o:p></o:p></p>

<p class=MsoNormal>Blink Endpoint Vulnerability Prevention &#8211; (http://www.eeye.com/html/products/blink/index.html)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Greetings:<o:p></o:p></p>

<p class=MsoNormal>Eric B. for discovering and contributing the
premier.microsoft.com proof-of-concept URL.&nbsp; 3x charm.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Copyright (c) 1998-2006 eEye Digital Security<o:p></o:p></p>

<p class=MsoNormal>Permission is hereby granted for the redistribution of this
alert electronically.&nbsp; It is not to be edited in any way without express
consent of eEye.&nbsp; If you wish to reprint the whole or any part of this
alert in any other medium excluding electronic medium, please email
alert@eEye.com for permission.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Disclaimer<o:p></o:p></p>

<p class=MsoNormal>The information within this paper may change without
notice.&nbsp; Use of this information constitutes acceptance for use in an AS
IS condition.&nbsp; There are no warranties, implied or express, with regard to
this information.&nbsp; In no event shall the author be liable for any direct
or indirect damages whatsoever arising out of or in connection with the use or
spread of this information.&nbsp; Any use of this information is at the user's
own risk.<o:p></o:p></p>

</div>

</body>

</html>