Quick 'n Easy FTP Server pro/lite Logging unicode stack overflow



********************************************
IHS Iran Homeland Security Public advisory
by : c0d3r "Kaveh Razavi" c0d3r@xxxxxxxxxxx
********************************************

Title : Quick 'n Easy FTP Server pro/lite
Logging unicode stack overflow

********************************************

information :

Quick 'n Easy FTP Server is a simple and handy FTP server which is
developed by Pablo van der Meer . there is a unicode overflow in the
logging process ,after enough long string sent as an argument of a
command when you go to the logging section overflow happens and
SEH gets hit .

********************************************

simple exploitation :

it is a unicode overflow so any code execution wont be stable .
here is a sampe way to trigger the vulnerability :
login to the FTP Server then try :
command aaaaa < about 1100 a (0x61) here > aaaa
then in the ftp server main window go to Logging section .
the FTP Server will crash . and in the ftptrace.txt we have :
24/07/2006 20:41:53.500 Exception caught by MainExceptionHandler():
Exception : c0000005
Address : 00610061
Access Type : write
Access Address : 00000000
the amazing part is if your string was large enough the ftp server
detect overflow and prevents from any pointers overwrite .

********************************************

Risk Rate : Medium

1) it is a unicode overflow , and exploitation wont be stable because
of the vulnerability's nature .
2) successful exploitation needs the admin go to the logging section .
3) it needs authentication .

********************************************

workaround :

no patch , all targets are vulnerable.

********************************************

Disclosure timeline :


March 26 , 2006 : vender contacted
March 27 , 2006 : vender replyed *
March 27 , 2006 : vender contacted , example provided
March 28 , 2006 : vender replyed **
March 28 , 2006 : vender contacted , C code provided to test the vuln.
March 29 , 2006 : vender replyed ***
April 25 , 2006 : public release

* vender says I haven't applyed all the microsoft updates while I
have and of course an overflow issue in a software is not related
to microsoft libraries .
** vender is insisting that the problem is not the FTP problem and my
box problem .
*** I sent him a C code to check the vulnerability , he said he will
contact me . well he didn't .

********************************************

Credit :

all go to IHS team
www.ihsteam.com
www.ihsteam.net
www.c0d3r.org

greeting :

LorD and NT of IHS , Jamie of exploitdev.org ,
other friends of mine in www.underground.ir



Relevant Pages

  • [NT] Quick n Easy FTP Server Logging Unicode Buffer Overflow
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Quick 'n Easy FTP Server Logging Unicode Buffer Overflow ... A Unicode overflow with the logging process of Quick 'n Easy FTP Server ...
    (Securiteam)
  • Re: utf8 and ftplib
    ... It opens a new local file using utf8 encoding and then reads from a file ... characters from the source file (e.g. foreign characters, ... Is there any way that I can correctly retrieve a utf8 encoded file from an FTP server? ... to be decoded to unicode on being read later. ...
    (comp.lang.python)
  • Re: accessing multiple folde using FTP Sever
    ... But when I'm logging with different user, I 'm getting access to only "temp" ... FTP Server code is public if you really need to dig into this, ... ; @CESYSGEN ENDIF SERVERS_MODULES_SERVICES ...
    (microsoft.public.windowsce.embedded)
  • RE: Converting data into Unicode
    ... Subject: Converting data into Unicode ... Not sure but I beleive that the Unix based ftp server may not support ... After you enter the UCs2 command what do you get? ... Are you getting the 500 after the UCs2 or after the PUT. ...
    (bit.listserv.ibm-main)
  • [opensuse] ftp Logging?
    ... I made some content available to friends via my ftp server, and I'd like to find out who logged on. ... Last time I was in the YaST module for the ftp server, I turned on verbose logging. ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)