Federico Fazzi has discovered some vulnerabilities in MiraksGalerie, which can be exploited by malicious people to compromise a vulnerable system.
Input passed to the "g_pcltar_lib_dir" parameter in pcltar.lib.php and to the "listconfigfile" parameter in galsecurity.lib.php is not properly verified before being used to include files. This can be exploited to execute arbitrary PHP code by including files from local or external resources.
Successful exploitation of "g_pcltar_lib_dir" in pcltar.lib.php requires that "register_globals" is enabled.
The vulnerabilities have been confirmed in version 2.62. Other versions may also be affected.
Solution: Edit the source code to ensure that input is properly verified.
Do you have additional information related to this advisory?
Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this
information to firstname.lastname@example.org