vendor:
PostNuke Module phgstats 0.5
by:
bd0rk || SOH-Crew
5.5
CVSS
MEDIUM
Remote File Include
CWE
Product Name: PostNuke Module phgstats 0.5
Affected Version From:
Affected Version To:
Patch Exists: NO
Related CWE:
CPE:
Platforms Tested:
PostNuke Module phgstats 0.5 (phgdir) Remote File Include Exploit
This exploit allows an attacker to include a remote file in the vulnerable code. The vulnerable code is 'include_once($phgdir . 'settings/config.inc.php');'. The exploit takes the target URL, command shell location, and command shell variable as input. It then sends a GET request to 'main/phgstats.inc.php' with the parameters 'phgdir' and the command shell variable. The exploit checks for certain error messages to determine if the exploit was successful.
Mitigation:
To mitigate this vulnerability, the vendor should declare the $phgdir variable or use proper input validation to prevent remote file inclusion.