Arbitrary File Upload in CutePHP CuteNews 2.1.2
CVE-2019-11447 is a vulnerability in CutePHP CuteNews 2.1.2 that allows an attacker to upload arbitrary files via the avatar upload functionality in the profile area (avatar_file field to index.php?mod=main&opt=personal). The vulnerability arises due to insufficient validation of the uploaded file's content and type, specifically a lack of effective control over the $imgsize variable in /core/modules/dashboard.php. Attackers can bypass file type checks by using a GIF header, enabling them to upload files containing executable code, 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 an attacker to achieve remote code execution on the server hosting CuteNews 2.1.2. This can lead to full compromise of the application and potentially the underlying server, depending on the privileges of the web server process.
If you can’t patch tonight, do this now.
As an interim mitigation, disable avatar uploads or restrict file uploads to a whitelist of safe image types with strict server-side validation. Additionally, configure the web server to prevent execution of uploaded files in the upload directory.
Patch, then assume compromise.
Upgrade to a patched version of CuteNews where file upload validation is properly implemented. Ensure that uploaded files are strictly validated for type, size, and content, and that executable code cannot be uploaded or executed via the avatar upload functionality.
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 2 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.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.