发布时间 :2006-04-18 06:02:00
修订时间 :2017-10-18 21:29:05

[原文]Directory traversal vulnerability in the loadConfig function in index.php in phpWebSite 0.10.2 and earlier allows remote attackers to include arbitrary local files and execute arbitrary PHP code via the hub_dir parameter, as demonstrated by including access_log. NOTE: in some cases, arbitrary remote file inclusion could be performed under PHP 5 using an SMB share argument such as "\\systemname\sharename".

[CNNVD]phpWebSite loadConfig函数 目录遍历漏洞(CNNVD-200604-286)

        phpWebSite 0.10.2及早期版本中的loadConfig函数存在目录遍历漏洞。这使得远程攻击者可以借助于hub_dir参数包含任意本地文件以及执行任意PHP代码,如包含access_log。注:在某些情况下,可以在PHP 5中使用SMB共享参数,如"\\systemname\sharename",执行任意远程文件包含操作。

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

- CPE (受影响的平台与产品)


- OVAL (用于检测的技术细节)


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(UNKNOWN)  BID  17521
(UNKNOWN)  VUPEN  ADV-2006-1361
(UNKNOWN)  XF  phpwebsite-index-hubdir-file-include(25867)

- 漏洞信息

phpWebSite loadConfig函数 目录遍历漏洞
高危 路径遍历
2006-04-18 00:00:00 2006-04-19 00:00:00
        phpWebSite 0.10.2及早期版本中的loadConfig函数存在目录遍历漏洞。这使得远程攻击者可以借助于hub_dir参数包含任意本地文件以及执行任意PHP代码,如包含access_log。注:在某些情况下,可以在PHP 5中使用SMB共享参数,如"\\systemname\sharename",执行任意远程文件包含操作。

- 公告与补丁


- 漏洞信息

phpWebSite index.php hub_dir Arbitrary File Inclusion
Remote / Network Access

- 漏洞描述

phpWebSite contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to the index.php script not properly sanitizing user input supplied to the 'hub_dir' variable. This may allow an attacker to include a file from the local host that contains arbitrary commands which will be executed by the vulnerable script. It is also possible to include remote files, but only from accessable Windows shares when using PHP5.

- 时间线

2006-04-17 Unknow
2006-04-17 Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

PHPWebSite Config.PHP File Include Vulnerability
Input Validation Error 17521
Yes No
2006-04-14 12:00:00 2006-05-03 09:20:00
rgod is credited with the discovery of this vulnerability.

- 受影响的程序版本

phpWebsite phpWebsite 0.10.2
phpWebsite phpWebsite 0.10.1
+ Gentoo Linux
phpWebsite phpWebsite 0.10
Gentoo Linux

- 漏洞讨论

PHPWebSite is prone to a remote and local file-include vulnerability. This issue is due to a failure in the application to properly sanitize user-supplied input.

An attacker can exploit this issue to execute arbitrary remote and local PHP code on an affected computer with the privileges of the webserver process. This may facilitate unauthorized access.

Versions 0.10.2 and prior are affected.

- 漏洞利用

No exploit is required.

The following proof of concept is available:

- 解决方案

Currently we are not aware of any official vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at:

Please see the referenced third-party vendor advisories for details on obtaining appropriate updates.

- 相关参考