PHP file.c 目录遍历漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1110029 漏洞类型 路径遍历
发布时间 2006-04-10 更新时间 2006-04-10
CVE编号 CVE-2006-1494 CNNVD-ID CNNVD-200604-114
漏洞平台 PHP CVSS评分 2.6
|漏洞来源
https://www.exploit-db.com/exploits/27595
https://cxsecurity.com/issue/WLB-2006040013
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200604-114
|漏洞详情
PHP4.4.2和5.1.2中的file.c存在目录遍历漏洞。这使得本地用于可以绕过open_basedir限制,并且远程用户可以借助于tempnam在任意目录中创建文件。
|漏洞EXP
source: http://www.securityfocus.com/bid/17439/info

PHP is prone to multiple 'safe_mode' and 'open_basedir' restriction-bypass vulnerabilities. Successful exploits could allow an attacker to access sensitive information or to write files in unauthorized locations.

These vulnerabilities would be an issue in shared-hosting configurations where multiple users can create and execute arbitrary PHP script code, when the 'safe_mode' and 'open_basedir' restrictions are expected to isolate the users from each other.

These issues are reported to affect PHP versions 4.4.2 and 5.1.2; other versions may also be vulnerable.

tempnam("path_from_open_basedir", "../../../../../../../../Open_basedir_bypasswd");
|参考资料

来源:SREASONRES
名称:20060408tempnam()open_basedirbypassPHP4.4.2and5.1.2
链接:http://securityreason.com/achievement_securityalert/36
来源:SECUNIA
名称:19599
链接:http://secunia.com/advisories/19599
来源:issues.rpath.com
链接:https://issues.rpath.com/browse/RPL-683
来源:XF
名称:php-tempnam-directory-traversal(25705)
链接:http://xforce.iss.net/xforce/xfdb/25705
来源:UBUNTU
名称:USN-320-1
链接:http://www.ubuntu.com/usn/usn-320-1
来源:BID
名称:17439
链接:http://www.securityfocus.com/bid/17439
来源:BUGTRAQ
名称:20061005rPSA-2006-0182-1phpphp-mysqlphp-pgsql
链接:http://www.securityfocus.com/archive/1/archive/1/447866/100/0/threaded
来源:REDHAT
名称:RHSA-2006:0568
链接:http://www.redhat.com/support/errata/RHSA-2006-0568.html
来源:REDHAT
名称:RHSA-2006:0567
链接:http://www.redhat.com/support/errata/RHSA-2006-0567.html
来源:SUSE
名称:SUSE-SA:2006:024
链接:http://www.novell.com/linux/security/advisories/05-05-2006.html
来源:MANDRIVA
名称:MDKSA-2006:074
链接:http://www.mandriva.com/security/advisories?name=MDKSA-2006:074
来源:VUPEN
名称:ADV-2006-1290
链接:http://w