cockpit-hq/cockpit
cpe:2.3:a:cockpit-project:cockpit:*:*:*:*:*:*:*
- < 2.4.1
A vulnerability allowing arbitrary file upload has been identified in Cockpit-HQ Cockpit versions prior to 2.4.1. This issue arises from insufficient upload filtering, which allows attackers to bypass restrictions by using certain file extensions. Exploitation of this vulnerability could lead to remote code execution.
Successful exploitation allows for arbitrary file upload, which can be leveraged to execute malicious code on the server.
To reproduce this vulnerability, upload a file with a .phar or .phtml extension through the application's asset management feature. After uploading, access the file via its asset link, which will execute any commands specified in the file. This can be done by embedding a command in the uploaded file that is executed upon access.
Users are advised to upgrade Cockpit-HQ Cockpit to version 2.4.1 or higher.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.