Remote File Inclusion in mcGalleryPRO 2006 random2.php
A remote file inclusion vulnerability exists in random2.php in mcGalleryPRO 2006 due to insufficient sanitization of the path_to_folder parameter. This allows remote attackers to include and execute arbitrary PHP code hosted on a remote server by supplying a crafted URL to the vulnerable parameter.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary PHP code on the server, potentially leading to full compromise of the affected system, including data theft, defacement, or use as a pivot point for further attacks.
If you can’t patch tonight, do this now.
Restrict access to random2.php via web server configuration, disable allow_url_fopen and allow_url_include in php.ini, and implement input validation to ensure only local, expected paths are accepted for the path_to_folder parameter.
Patch, then assume compromise.
Upgrade to a fixed version of mcGalleryPRO 2006 where input validation and sanitization of the path_to_folder parameter is properly implemented. If no patch is available, consider removing or disabling the vulnerable script.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.