SECUNIA ADVISORY ID: SA24019
VERIFY ADVISORY: http://secunia.com/advisories/24019/
CRITICAL: Less critical
IMPACT: Exposure of system information, Exposure of sensitive information, System access
SOFTWARE: Coppermine Photo Gallery 1.x - http://secunia.com/product/1427/
DESCRIPTION: Some vulnerabilities have been discovered in Coppermine Photo Gallery, which can be exploited by malicious users to disclose sensitive information and to compromise vulnerable systems.
1) Input passed to the form fields "Path to custom header include" and "Path to custom footer include" in admin.php is not properly verified before being used to include files. This can be exploited to include arbitrary files from local resources and potentially also from external resources.
2) Input passed to the form field "Command line options for ImageMagick" in admin.php is not properly sanitised before being used as an option to ImageMagick's "convert" command. This can be exploited to inject arbitrary shell commands via the ";" character.
Successful exploitation of either vulnerability requires valid administrator credentials. The vulnerabilities are confirmed in version 1.4.10. Other versions may also be affected.
SOLUTION: Edit the source code to ensure that input is properly verified and sanitised.
PROVIDED AND/OR DISCOVERED BY: Site developer and an anonymous person