CVE-2021-44673: Unrestricted Upload of File with Dangerous Type in Croogo
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.87162%
CWE
Published
3/11/2022
Updated
9/20/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
croogo/croogo | composer | <= 3.0.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability occurs in the admin/file-manager/attachments/add
endpoint, which maps to the add()
method in the AttachmentsController
. The exploit demonstrates that arbitrary PHP
files can be uploaded and executed, indicating insufficient file type validation in the upload handling logic. In CakePHP
-based applications like Croogo
, controller actions like add()
typically process form submissions, including file uploads. The lack of proper file extension/MIME type checks in this method allows dangerous file types to be stored in web-accessible directories, leading to RCE.