News:

Wieners, Brats, Franks, we've got 'em all.

Main Menu

Directly running a .zip, kinda

Started by iago, November 16, 2005, 03:25:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

iago

This is a tricky way to hide an executable file:

QuoteWas doing some testing [xfocus-AD-051115]

Ie Multiple antivirus failed to scan
malicous filename bypass vulnerability

The system is windows 2000 sp4 srp5 with
all other patches upto date.

At the command prompt cmd.exe execute
the following with the results.

I copy and paste from cmd.exe
-------------------------------------------------------------------

E:\TEMP>cd test

E:\TEMP\test>copy %windir%\system32\calc.exe
        1 file(s) copied.

E:\TEMP\test>ren calc.exe calc.exe.zip

E:\TEMP\test>dir /b
calc.exe.zip

E:\TEMP\test>calc.exe.zip

E:\TEMP\test>
-------------------------------------------------------------------
This bring up the calc.exe on the screen.


_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


It actually doesn't matter what the extension is.  .exe.txt.zip.exe.pdf will still run.

Sidoh

Isn't this kind of like the "exploit" we found on Apache with it parsing stuff.php.rar as a PHP file?

iago

Yes, in the thread on full-disclosure this issue was referenced. :)

Sidoh

Quote from: iago on January 03, 2006, 10:54:16 PM
Yes, in the thread on full-disclosure this issue was referenced. :)

Hehe. :)

ink

Isn't that somewhat of a non-issue if you have settings set to show file extensions?

Another neat thing is using SFX scripting in winrar to make self-extracting archieves

Sidoh

Quote from: ink on February 14, 2006, 02:59:22 PM
Isn't that somewhat of a non-issue if you have settings set to show file extensions?

Another neat thing is using SFX scripting in winrar to make self-extracting archieves

You're good at digging up old topics! ;D

Haha, yeah.  This doesn't really matter as you're pretty much telling Windows to execute it as an application when you type a filename in a command prompt.

iago

Quote from: ink on February 14, 2006, 02:59:22 PM
Isn't that somewhat of a non-issue if you have settings set to show file extensions?

Yes, but Windows' traditional "beauty before safety/functionality" view ensured that that's off by default.  Big mistake, in my opinion. 

ink

#7
Don't worry, the Windows Vista 'revolution' will fix all that! Ahha  :D

Another way to trick people is using either Winzip or Winrar, you can rename a file to something like:
"MaliciousFile.doc                                                             .exe"

That way when you add it to the archieve it looks like:

MaliciousFile.doc                           ..
and using Reshack you can easily change the .exe icon to a .doc icon

Sidoh

Quote from: ink on February 20, 2006, 07:47:47 PM
Don't worry, the Windows Vista 'revolution' will fix all that! Ahha  :D

ROFL.

Warrior

Quote from: ink on February 20, 2006, 07:47:47 PM
Don't worry, the Windows Vista 'revolution' will fix all that! Ahha  :D

You're damn right, but you'd be too busy misinterpreting text to figure out how to install it
at the least.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

ink

lol yes I'm sure installing a Windows product will be very difficult, I'm not sure if I can handle a revolutionary install wizard!

Warrior

You might think it's disabled by default.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

ink

Hawhaw! If I were to base my judgement off previous Microsoft products, I'd say yes, file extentions will be disabled by default.

Warrior

Most likely, I turn them on personally. Mostly because to make "PHP" files I make textfiles then rename the extension. Otherwise I'd leave them off.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

ink

I turn them on because looks can be decieving.