Unrestricted File Upload in ThePortal2 2.2 galeria.php
ThePortal2 version 2.2 contains an unrestricted file upload vulnerability in admin/galeria.php. Remote attackers can upload arbitrary files with executable extensions (such as .php) without proper validation. Once uploaded, the attacker can directly access and execute the file via a request to galeria/, leading to remote code execution on the server.
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, data theft, or further lateral movement within the network.
If you can’t patch tonight, do this now.
As an immediate mitigation, disable file uploads or restrict upload functionality to trusted users only. Configure the web server to prevent execution of uploaded files in the galeria/ directory, for example by using .htaccess rules to deny execution of PHP files.
Patch, then assume compromise.
Upgrade to a fixed version of ThePortal2, if available. Alternatively, implement strict server-side validation of uploaded files, restricting allowed file types and extensions, and ensure that uploaded files are not executable by the web server.
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.