-----BEGIN PGP SIGNED MESSAGE-----=0D
Hash: RIPEMD160=0D
=0D
---------------------------------------------------=0D
| BuHa Security-Advisory #13 | May 25th, 2006 |=0D
---------------------------------------------------=0D
| Vendor | MS Internet Explorer 6.0 |=0D
| URL | http://www.microsoft.com/windows/ie/ |=0D
| Version | <= 6.0.2900.2180.xpsp_sp2 |=0D
| Risk | Critical (Memory Corruption) |=0D
---------------------------------------------------=0D
=0D
The Microsoft Security Response Center rated following issues as=0D
critical because, on the face of it, they could produce an exploitable=0D
memory corruption (see HTML Tag Memory Corruption Vulnerability -=0D
CVE-2006-1188 [1]) with a variant of my PoC.=0D
=0D
o Description:=0D
==============0D
=0D
Internet Explorer, abbreviated IE or MSIE, is a proprietary web browser=0D
made by Microsoft and currently available as part of Microsoft Windows.=0D
=0D
Visit http://www.microsoft.com/windows/ie/default.mspx or=0D
http://en.wikipedia.org/wiki/Internet_Explorer for detailed information.=0D
=0D
o Memory Corruption Vulnerability: #7d519030=0D
==================================0D
=0D
Following HTML code forces IE 6 to crash:=0D
> =0D">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">=0D
> =0D
> =0D
> =0D
> =0D
> =0D
> =0D
> =0D
> =0D
> =0D
> =0D
> =0D
> =0D
> =0D
> =0D
>=0D
> =0D
> =0D
> =0D
> =0D
=0D
Online-demo:=0D
http://morph3us.org/security/pen-testing/msie/ie60-1135035582812-7d519030.html=0D
=0D
These are the register values and the ASM dump at the time of the access=0D
violation:=0D
> eax=00000000 ebx=0012e88c ecx=00000000 edx=0012e7c0 esi=00000000=0D
> edi=00000004 eip=7d519030 esp=0012e780 ebp=0012e894=0D
>=0D
> 7d519012 55 push ebp=0D
> 7d519013 8bec mov ebp,esp=0D
> 7d519015 8b4104 mov eax,[ecx+0x4]=0D
> 7d519018 394508 cmp [ebp+0x8],eax=0D
> 7d51901b 7c09 jl mshtml+0x69026 (7d519026)=0D
> 7d51901d 7edc jle mshtml+0x68ffb (7d518ffb)=0D
> 7d51901f 33c0 xor eax,eax=0D
> 7d519021 40 inc eax=0D
> 7d519022 5d pop ebp=0D
> 7d519023 c20800 ret 0x8=0D
> 7d519026 83c8ff or eax,0xffffffff=0D
> 7d519029 ebf7 jmp mshtml+0x69022 (7d519022)=0D
> 7d51902b 90 nop=0D
> 7d51902c 90 nop=0D
> 7d51902d 90 nop=0D
> 7d51902e 90 nop=0D
> 7d51902f 90 nop=0D
> FAULT ->7d519030 8b4108 mov eax,[ecx+0x8]=0D
> ds:0023:00000008=????????=0D
> 7d519033 85c0 test eax,eax=0D
> 7d519035 7425 jz mshtml+0x6905c (7d51905c)=0D
> 7d519037 8b10 mov edx,[eax]=0D
> 7d519039 f6c210 test dl,0x10=0D
> 7d51903c 7408 jz mshtml+0x69046 (7d519046)=0D
> 7d51903e f6c220 test dl,0x20=0D
> 7d519041 7519 jnz mshtml+0x6905c (7d51905c)=0D
> 7d519043 8b400c mov eax,[eax+0xc]=0D
> 7d519046 8b4808 mov ecx,[eax+0x8]=0D
> 7d519049 85c9 test ecx,ecx=0D
=0D
o Memory Corruption Vulnerability: #7d529d35=0D
==================================0D
=0D
Following HTML code forces IE 6 to crash:=0D
> =0D">"http://www.w3.org/TR/html4/loose.dtd">=0D
> =0D
> =0D
> =0D
>=0D
> =0D
> =0D
> =0D
> =0D
>=0D
> =0D
> =0D
=0D
Online-demo:=0D
http://morph3us.org/security/pen-testing/msie/ie60-1135042070015-7d529d35.html=0D
=0D
These are the register values and the ASM dump at the time of the access=0D
violation:=0D
> eax=00000000 ebx=0012e88c ecx=00000000 edx=00000012 esi=00e7dbb0=0D
> edi=00000002 eip=7d529d35 esp=0012e778 ebp=0012e778=0D
>=0D
> 7d529d0e e811170000 call mshtml+0x7b424 (7d52b424)=0D
> 7d529d13 85c0 test eax,eax=0D
> 7d529d15 0f85c5500800 jne mshtml!DllGetClassObject+0x10fa2=0D
> (7d5aede0)=0D
> 7d529d1b 0fb65508 movzx edx,byte ptr [ebp+0x8]=0D
> 7d529d1f 8d849680000000 lea eax,[esi+edx*4+0x80]=0D
> 7d529d26 5e pop esi=0D
> 7d529d27 5d pop ebp=0D
> 7d529d28 c20c00 ret 0xc=0D
> 7d529d2b 90 nop=0D
> 7d529d2c 90 nop=0D
> 7d529d2d 90 nop=0D
> 7d529d2e 90 nop=0D
> 7d529d2f 90 nop=0D
> 7d529d30 8bff mov edi,edi=0D
> 7d529d32 55 push ebp=0D
> 7d529d33 8bec mov ebp,esp=0D
> FAULT ->7d529d35 0fbe4114 movsx eax,byte ptr [ecx+0x14]=0D
> ds:0023:00000014=??=0D
> 7d529d39 c1e004 shl eax,0x4=0D
> 7d529d3c 0578aa4b7d add eax,0x7d4baa78=0D
> 7d529d41 7410 jz mshtml+0x79d53 (7d529d53)=0D
> 7d529d43 8b400c mov eax,[eax+0xc]=0D
> 7d529d46 234508 and eax,[ebp+0x8]=0D
> 7d529d49 f7d8 neg eax=0D
> 7d529d4b 1bc0 sbb eax,eax=0D
> 7d529d4d f7d8 neg eax=0D
> 7d529d4f 5d pop ebp=0D
> 7d529d50 c20400 ret 0x4=0D
> 7d529d53 33c0 xor eax,eax=0D
> 7d529d55 ebf8 jmp mshtml+0x79d4f (7d529d4f)=0D
=0D
o Vulnerable versions:=0D
======================0D
=0D
The DoS vulnerability was successfully tested on:=0D
> MS IE 6 SP2 - Win XP Pro SP2=0D
> MS IE 6 - Win 2k SP4=0D
=0D
o Disclosure Timeline:=0D
======================0D
=0D
xx Feb 06 - Vulnerabilities discovered.=0D
08 Mar 06 - Vendor contacted.=0D
22 Mar 06 - Vendor confirmed vulnerabilities.=0D
25 May 06 - Public release.=0D
=0D
o Solution:=0D
===========0D
=0D
Install the latest security update (MS06-013) for Internet Explorer [2].=0D
=0D
o Credits:=0D
==========0D
=0D
Thomas Waldegger =0D
BuHa-Security Community - http://buha.info/board/=0D
=0D
If you have questions, suggestions or criticism about the advisory feel=0D
free to send me a mail. The address 'bugtraq@morph3us.org' is more a=0D
spam address than a regular mail address therefore it's possible that=0D
some mails get ignored. Please use the contact details at=0D
http://morph3us.org/ to contact me.=0D
=0D
Greets fly out to cyrus-tc, destructor, nait, rhy, trappy and all=0D
members of BuHa.=0D
=0D
Advisory online: http://morph3us.org/advisories/20060525-msie6-sp2-2.txt=0D
=0D
[1] http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-1188=0D
[2] http://www.microsoft.com/technet/security/Bulletin/MS06-013.mspx=0D
=0D
- --=0D
Don't you feel the power of CSS Layouts?=0D
BuHa-Security Community: http://buha.info/board/=0D
=0D
-----BEGIN PGP SIGNATURE-----=0D
Version: n/a=0D
Comment: http://morph3us.org/=0D
=0D
iD8DBQFEdjSQkCo6/ctnOpYRA9qlAJ9CfZxTO0qAs+6O12hmutZ6eeHoMwCghkd2=0D
vrVBfqAxWpoJ9Ny1W8OAtEw==0D
=M5nj=0D
-----END PGP SIGNATURE-----=0D