Arbitrary PHP Code Execution via File Upload in Monstra CMS 3.0.4
Monstra CMS through version 3.0.4 fails to properly restrict dangerous file extensions in its file upload functionality. While the application blocks .php and similar extensions, it does not block .pht or .phar extensions. This allows remote authenticated Admins or Editors to upload files containing arbitrary PHP code with these extensions, which can then be executed on the server, leading to remote code execution. This vulnerability is distinct from CVE-2017-18048.
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.
Authenticated Admins or Editors can achieve arbitrary code execution on the server by uploading a malicious .pht or .phar file. This can lead to full compromise of the CMS instance, including data theft, defacement, or further lateral movement within the hosting environment.
If you can’t patch tonight, do this now.
As an interim measure, implement server-side restrictions to block execution of .pht and .phar files in upload directories, and use web server configuration to deny access to these file types. Limit file upload permissions to only trusted users and monitor uploaded files for suspicious activity.
Patch, then assume compromise.
Update Monstra CMS to a version that properly restricts all PHP-related file extensions, including .pht and .phar, in the file upload functionality. 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.