PHPDig Config.PHP Include Remote Command Execution Vulnerability

BID:9424

Info

PHPDig Config.PHP Include Remote Command Execution Vulnerability

Bugtraq ID: 9424
Class: Input Validation Error
CVE:
Remote: Yes
Local: No
Published: Jan 14 2004 12:00AM
Updated: Jan 14 2004 12:00AM
Credit: Discovery credited to FraMe.
Vulnerable: PhpDig PhpDig 1.6.5
PhpDig PhpDig 1.6.4
PhpDig PhpDig 1.6.3
PhpDig PhpDig 1.6.2
PhpDig PhpDig 1.6.1
PhpDig PhpDig 1.6
PhpDig PhpDig 1.4.8
PhpDig PhpDig 1.4.7
PhpDig PhpDig 1.4.6
PhpDig PhpDig 1.4.5 c
PhpDig PhpDig 1.4.5 b
PhpDig PhpDig 1.4.5
PhpDig PhpDig 1.4.4 c
PhpDig PhpDig 1.4.4 b
PhpDig PhpDig 1.4.4
PhpDig PhpDig 1.4.3
PhpDig PhpDig 1.4.2
PhpDig PhpDig 1.4.1
PhpDig PhpDig 1.4 -2
PhpDig PhpDig 1.4
Not Vulnerable:

Discussion

PHPDig Config.PHP Include Remote Command Execution Vulnerability

A problem has been identified in the handling of includes in PhpDig. Because of this, it may be possible for a remote user to gain unauthorized access to a vulnerable host.

Exploit / POC

PHPDig Config.PHP Include Remote Command Execution Vulnerability

No exploit is required for this vulnerability.

Solution / Fix

PHPDig Config.PHP Include Remote Command Execution Vulnerability

Solution:
A solution has been posted to PHPDig that deals with this issue:

!!! ADD THIS TO THE TOP OF THE CONFIG.PHP FILE NOW !!!

PHP:
--------------------------------------------------------------------------------

// prevent remote command execution
if ((isset($relative_script_path)) &&
($relative_script_path != ".") &&
($relative_script_path != "..")) {
exit();
}

// prevent requests for config.php
if (eregi("config.php",$_SERVER['SCRIPT_FILENAME']) ||
eregi("config.php",$_SERVER['REQUEST_URI'])) {
exit();
}

--------------------------------------------------------------------------------

Please see reference section for more details.

A patched version has been provided for this issue.


PhpDig PhpDig 1.6.5

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