Moa Gallery Remote File Inclusion and File Disclosure Vulnerabilities
Description
Multiple vulnerabilities have been identified in Moa Gallery, which could be exploited by remote attackers to disclose sensitive information or compromise a vulnerable web server.
The first issue is caused by input validation errors in various scripts within the "sources" directory (e.g. "sources/_error_funcs.php") when processing the "MOA_PATH" parameter, which could be exploited by remote attackers to include malicious PHP scripts and execute arbitrary commands with the privileges of the web server.
The second vulnerability is caused by an input validation error in the "sources/_template_parser.php" script when processing the "p_filename" parameter, which could allow attackers to download arbitrary files via a directory traversal.
Vulnerable Products
Vulnerable Software: Moa Gallery version 1.2.0 and prior