AssoCIateD includes/gallery_functions.php root_path Variable Remote File Inclusion

2006-06-01T08:05:10
ID OSVDB:26150
Type osvdb
Reporter Kacper(kacper1964@yahoo.pl)
Modified 2006-06-01T08:05:10

Description

Vulnerability Description

AssoCIateD (ACID) contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to includes/gallery_functions.php script 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.

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 1.2.0 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Short Description

AssoCIateD (ACID) contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to includes/gallery_functions.php script 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]/[ACID_path]/includes/gallery_functions.php?root_path=[evil_scripts]

References:

Vendor URL: http://herve.labas.free.fr/acid/en/ Vendor Specific News/Changelog Entry: http://sourceforge.net/forum/forum.php?forum_id=577085 Secunia Advisory ID:20426 Related OSVDB ID: 26146 Related OSVDB ID: 26148 Related OSVDB ID: 26149 Related OSVDB ID: 26147 Generic Exploit URL: http://milw0rm.com/exploits/1858 FrSIRT Advisory: ADV-2006-2107 CVE-2006-2841 Bugtraq ID: 18220