Unrestricted File Upload in AdaptCMS 3.0.3
AdaptCMS 3.0.3 contains an unrestricted file upload vulnerability in the admin/files/add endpoint. Authenticated users can upload files with a PHP extension, which are then placed in /app/webroot/uploads. These files can subsequently be accessed and executed directly, allowing arbitrary PHP 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 authenticated users to execute arbitrary PHP code on the server, leading to full compromise of the application and potentially the underlying system. Attackers can gain remote code execution, escalate privileges, and pivot to other systems.
If you can’t patch tonight, do this now.
As an interim measure, restrict access to the uploads directory via web server configuration to prevent execution of uploaded files. Implement file type and extension validation on the server side, and consider using allowlists for permitted file types.
Patch, then assume compromise.
Upgrade to a version of AdaptCMS where file upload restrictions are properly enforced. Ensure that the application validates file types and extensions, and does not allow executable files (such as .php) to be uploaded. Implement server-side checks to restrict file execution in upload directories.
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.