Arbitrary File Upload in IMGallery <=2.5
IMGallery 2.5 and earlier contains a vulnerability in users_adm/start1.php where files with multiple extensions are not properly handled. This allows remote authenticated users to upload files with a .php extension (e.g., image.jpg.php), which can then be executed on the server, leading to arbitrary PHP code execution.
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 authenticated users to execute arbitrary PHP code on the server, potentially leading to full compromise of the affected web application and underlying system, depending on the privileges of the web server process.
If you can’t patch tonight, do this now.
Restrict file upload functionality to trusted users only, implement server-side checks to validate file types and extensions, and configure the web server to disallow execution of uploaded files in the upload directory. Consider using application whitelisting and disabling PHP execution in upload directories via .htaccess or server configuration.
Patch, then assume compromise.
Upgrade to a fixed version of IMGallery that properly validates and restricts file uploads, ensuring that files with multiple extensions and executable content cannot be uploaded. Apply any vendor-supplied patches addressing this issue.
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.