what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

comBad.txt

comBad.txt
Posted Aug 19, 2005
Authored by SkyLined

A number of issues have been reported lately by various sources about Internet Explorer vulnerabilities in relation to specific COM objects. Research has shown that the root cause is the fact that these COM objects are not designed to be loaded in IE at all. These objects therefore make wrongful assumptions about the state of the process they are loaded into, specifically about the contents of heap memory. This can be abused to uncover unwanted features, like the ability to run arbitrary code on a victims machine.

tags | advisory, arbitrary, root, vulnerability
SHA-256 | 035a6aa16f04f9d73cacf13f2f3a7db3188f82cf0bd18a282634937ba184ab53

comBad.txt

Change Mirror Download
------=_Part_1173_32018819.1124329567242
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Disclaimer:
The information in this email is distributed WITHOUT ANY WARRANTY, TO THE
EXTENT PERMITTED BY APPLICABLE LAW; without even the implied warranty of
CORRECTNESS or FITNESS FOR A PARTICULAR PURPOSE. You know the drill...

Affected products:
Various COM objects when loaded in Microsoft Internet Explorer.

Extend:
DoS and remote arbitrary code execution.

Patches:
MS05-037 and MS05-38
See below for additional killbit.
Exploits:
Internet Exploiter 4 will not be released to the public in the near future.
Public exploits based on Internet Exploiter have been written by third
parties for a number of affected objects. They are available on the net
from various sources.

Short description:
A number of issues have been reported lately by various sources about
Internet Explorer vulnerabilities in relation to specific COM objects.
Research has shown that the root cause is the fact that these COM objects
are not designed to be loaded in IE at all. These objects therefore make
wrongful assumptions about the state of the process they are loaded into,
specifically about the contents of heap memory. This can be abused to
uncover unwanted features, like the ability to run arbitrary code on a
victims machine.

Short History:
On June 24th 2002 'ken'@FTU reported a NULL-pointer exception in IE when
loading a specific COM object. The object was mmsys.cpl which uses
clsid:{00022613-0000-0000-C000-000000000046}. The issue was discarded as
a low impact DoS.

On April 18th 2005, Further research revealed that this was in fact a
problem with the COM object reusing previously freed memory without
initialising it. Part of the reused memory was used as a function pointer.
Careful allocating and freeing of memory prior to loading the object
allowed remote code execution on Win2K. Internet Exploiter 4 was born.
(This vulnerability does NOT seem to be exploitable on WinXPSP2, as claimed
by FrSIRT in their MS05-038 exploit)
On June 17th 2005, Bernhard M=FCller and Martin Eiszner found a similar iss=
ue
when loading javaprxy.dll and released their information to the public.

On July 2nd, August 9th and August 17th 2005, FrSIRT released shamelessly
ripped code that claims to exploit a number of these objects. While failing
to work on most occasions through lack of finesse, it does prove that even
script-kiddies can easily write exploits by copy-pasting my Internet
Exploiter heap spraying code. It takes so little effort that it might
actually cost you more time to add proper credits to the original author
of the code.

Solution:
I've been working with the Internet Explorer team on short term and long
term solutions. The latest patch (MS05-038) will "killbit" a number of
objects that were found to have issues when loaded in IE. These killbits
prevent exploits from loading these objects and abusing this vulnerability.

The latest exploit by FrSIRT targets "msdss.dll" with clsid=20
EC444CB6-3E7E-4865-B1C3-0DE72EF39B3F, which is not killbitted by ms05-038.
I was unable to reproduce the vulnerability with version 7.10.3077.0 of the
dll; the object doesn't even crash. From what I've heard everybody else=20
seems to be unaffected too, so maybe it's just a local .fr thing.
Just in case, here's a .reg file you can use to killbit this control;
Create a new .txt file, copy+paste this into it, rename it to .reg, double
click it and say "yes, I want to add it to the registry."
!!! Lines may wrap, you might have to remove the extra line-breaks !!!
---- cut here ----
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX=20
Compatibility\{EC444CB6-3E7E-4865-B1C3-0DE72EF39B3F}]
"Compatibility Flags"=3Ddword:00000400
---- cut here ----
If you want to test if it works, here's a .html file that will show you;
Create a new .txt file, copy+paste this into it, rename it to .html, double
click and it will tell you if you are safe (the object cannot be loaded)
or if you might be vulnerable to this attack (the object can be loaded):
---- cut here ---
<OBJECT
onreadystatechange=3D"document.write('<I>Possibly</I> Vulnerable...');"
onerror=3D"document.write('You should be safe!');"
classid=3D"clsid:{EC444CB6-3E7E-4865-B1C3-0DE72EF39B3F}"
></OBJECT>
---- cut here ---

Greets:
Paul@greyhats, st0ke@milworm, 0dd, 0x4553, l33tsecurity, NGS.

Anti-Greets:
FrSIRT (I thought I was special, turns out they rip-off everybody's code!)

Cheers,
SkyLined

------=_Part_1173_32018819.1124329567242
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<p>Disclaimer:<br>&nbsp;&nbsp;&nbsp; The information in this email is distr=
ibuted WITHOUT ANY WARRANTY, TO THE<br>&nbsp;&nbsp;&nbsp; EXTENT PERMITTED =
BY APPLICABLE LAW; without even the implied warranty of<br>&nbsp;&nbsp;&nbs=
p; CORRECTNESS or FITNESS FOR A PARTICULAR PURPOSE. You know the drill...
</p>
<p>Affected products:<br>&nbsp;&nbsp;&nbsp; Various COM objects when loaded=
in Microsoft Internet Explorer.</p>
<p>Extend:<br>&nbsp;&nbsp;&nbsp; DoS and remote arbitrary code execution.</=
p>
<p>Patches:<br>&nbsp;&nbsp;&nbsp; MS05-037 and MS05-38<br>&nbsp;&nbsp;&nbsp=
; See below for additional killbit.<br>Exploits:<br>&nbsp;&nbsp;&nbsp; Inte=
rnet Exploiter 4 will not be released to the public in the near future.<br>=
&nbsp;&nbsp;&nbsp; Public exploits based on Internet Exploiter have been wr=
itten by third
<br>&nbsp;&nbsp;&nbsp; parties for a number of affected objects. They are a=
vailable on the net<br>&nbsp;&nbsp;&nbsp; from various sources.</p>
<p>Short description:<br>&nbsp;&nbsp;&nbsp; A number of issues have been re=
ported lately by various sources about<br>&nbsp;&nbsp;&nbsp; Internet Explo=
rer vulnerabilities in relation to specific COM objects.<br>&nbsp;&nbsp;&nb=
sp; Research has shown that the root cause is the fact that these COM objec=
ts
<br>&nbsp;&nbsp;&nbsp; are not designed to be loaded in IE at all. These ob=
jects therefore make<br>&nbsp;&nbsp;&nbsp; wrongful assumptions about the s=
tate of the process they are loaded into,<br>&nbsp;&nbsp;&nbsp; specificall=
y about the contents of heap memory. This can be abused to
<br>&nbsp;&nbsp;&nbsp; uncover unwanted features, like the ability to run a=
rbitrary code on a<br>&nbsp;&nbsp;&nbsp; victims machine.<br>&nbsp;&nbsp;&n=
bsp; <br>Short History:<br>&nbsp;&nbsp;&nbsp; On June 24th 2002 <a href=3D"=
mailto:'ken'@FTU">'ken'@FTU</a> reported a NULL-pointer exception in IE whe=
n
<br>&nbsp;&nbsp;&nbsp; loading a specific COM object. The object was mmsys.=
cpl which uses<br>&nbsp;&nbsp;&nbsp; clsid:{00022613-0000-0000-C000-0000000=
00046}. The issue was discarded as<br>&nbsp;&nbsp;&nbsp; a low impact DoS.<=
/p>
<p>&nbsp;&nbsp;&nbsp; On April 18th 2005, Further research revealed that th=
is was in fact a<br>&nbsp;&nbsp;&nbsp; problem with the COM object reusing =
previously freed memory without<br>&nbsp;&nbsp;&nbsp; initialising it. Part=
of the reused memory was used as a function pointer.
<br>&nbsp;&nbsp;&nbsp; Careful allocating and freeing of memory prior to lo=
ading the object<br>&nbsp;&nbsp;&nbsp; allowed remote code execution on Win=
2K. Internet Exploiter 4 was born.<br>&nbsp;&nbsp;&nbsp; (This vulnerabilit=
y does NOT seem to be exploitable on WinXPSP2, as claimed
<br>&nbsp;&nbsp;&nbsp; by FrSIRT in their MS05-038 exploit)<br>&nbsp;&nbsp;=
&nbsp; On June 17th 2005, Bernhard M=FCller and Martin Eiszner found a simi=
lar issue<br>&nbsp;&nbsp;&nbsp; when loading javaprxy.dll and released thei=
r information to the public.<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; O=
n July 2nd, August 9th and August 17th 2005, FrSIRT released shamelessly
<br>&nbsp;&nbsp;&nbsp; ripped code that claims to exploit a number of these=
objects. While failing<br>&nbsp;&nbsp;&nbsp; to work on most occasions thr=
ough lack of finesse, it does prove that even<br>&nbsp;&nbsp;&nbsp; script-=
kiddies can easily write exploits by copy-pasting my Internet
<br>&nbsp;&nbsp;&nbsp; Exploiter heap spraying code. It takes so little eff=
ort that it might<br>&nbsp;&nbsp;&nbsp; actually cost you more time to add =
proper credits to the original author<br>&nbsp;&nbsp;&nbsp; of the code.</p=
>
<p>Solution:<br>&nbsp;&nbsp;&nbsp; I've been working with the Internet Expl=
orer team on short term and long<br>&nbsp;&nbsp;&nbsp; term solutions. The =
latest patch (MS05-038) will "killbit" a number of<br>&nbsp;&nbsp=
;&nbsp; objects that were found to have issues when loaded in IE. These kil=
lbits
<br>&nbsp;&nbsp;&nbsp; prevent exploits from loading these objects and abus=
ing this vulnerability.</p>
<p>&nbsp;&nbsp;&nbsp; The latest exploit by FrSIRT targets "msdss.dll&=
quot; with clsid <br>&nbsp;&nbsp;&nbsp; EC444CB6-3E7E-4865-B1C3-0DE72EF39B3=
F, which is not killbitted by ms05-038.<br>&nbsp;&nbsp;&nbsp; I was unable =
to reproduce the vulnerability with version=20
7.10.3077.0 of the<br>&nbsp;&nbsp;&nbsp; dll; the object doesn't even crash=
. From what I've heard everybody else <br>&nbsp;&nbsp;&nbsp; seems to be un=
affected too, so maybe it's just a local .fr thing.<br>&nbsp;&nbsp;&nbsp; J=
ust in case, here's a .reg file you can use to killbit this control;
<br>&nbsp;&nbsp;&nbsp; Create a new .txt file, copy+paste this into it, ren=
ame it to .reg, double<br>&nbsp;&nbsp;&nbsp; click it and say "yes, I =
want to add it to the registry."<br>&nbsp;&nbsp;&nbsp; !!! Lines may w=
rap, you might have to remove the extra line-breaks !!!
<br>---- cut here ----<br>Windows Registry Editor Version 5.00</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compati=
bility\{EC444CB6-3E7E-4865-B1C3-0DE72EF39B3F}]<br>"Compatibility Flags=
"=3Ddword:00000400<br>---- cut here ----<br>&nbsp;&nbsp;&nbsp; If you =
want to test if it works, here's a .html file that will show you;
<br>&nbsp;&nbsp;&nbsp; Create a new .txt file, copy+paste this into it, ren=
ame it to .html, double<br>&nbsp;&nbsp;&nbsp; click and it will tell you if=
you are safe (the object cannot be loaded)<br>&nbsp;&nbsp;&nbsp; or if you=
might be vulnerable to this attack (the object can be loaded):
<br>---- cut here ---<br><OBJECT<br>&nbsp;&nbsp;&nbsp; onreadystatechang=
e=3D"document.write('<I>Possibly</I> Vulnerable...');&quot=
;<br>&nbsp;&nbsp;&nbsp; onerror=3D"document.write('You should be safe!=
');"<br>&nbsp;&nbsp;&nbsp; classid=3D"clsid:{EC444CB6-3E7E-4865-B=
1C3-0DE72EF39B3F}"
<br>></OBJECT><br>---- cut here ---<br>&nbsp;<br>Greets:<br>&nbsp;=
&nbsp;&nbsp; <a href=3D"mailto:Paul@greyhats">Paul@greyhats</a>, <a href=3D=
"mailto:st0ke@milworm">st0ke@milworm</a>, 0dd, 0x4553, l33tsecurity, NGS.<b=
r>&nbsp;<br>Anti-Greets:<br>
&nbsp;&nbsp;&nbsp; FrSIRT (I thought I was special, turns out they rip-off =
everybody's code!)<br>&nbsp;<br>Cheers,<br>SkyLined</p>

------=_Part_1173_32018819.1124329567242--
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close