First published: Tue Jul 18 2023(Updated: )
### Summary An OS command injection vulnerability exists in 1Panel firewall functionality. A specially-crafted HTTP request can lead to arbitrary command execution. An attacker can make an authenticated HTTP request to trigger this vulnerability. ### Details 1Panel firewall functionality `/hosts/firewall/ip` endpoint read user input without validation, the attacker extends the default functionality of the application, which execute system commands. ### PoC the payload `; sleep 3 #` will lead server response in 3 seconds ![image](https://user-images.githubusercontent.com/4935500/252299676-bc4a8b92-e475-40ee-a92a-fec9fad7a6c3.png) the payload `; sleep 6 #` will lead server response in 6 seconds ![image](https://user-images.githubusercontent.com/4935500/252299871-766cc411-69e5-4c6c-b4ff-7774fa974ea0.png) ### Impact An attacker can execute arbitrary code on the target system, which can lead to a complete compromise of the system. ### Patches The vulnerability has been fixed in v1.4.3. ### Workarounds It is recommended to upgrade the version to v1.4.3. ### References If you have any questions or comments about this advisory: Open an issue in https://github.com/1Panel-dev/1Panel Email us at wanghe@fit2cloud.com
Credit: security-advisories@github.com security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Fit2cloud 1panel | <1.4.3 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2023-37477 is an OS command injection vulnerability in 1Panel firewall functionality, allowing arbitrary command execution.
An attacker can exploit CVE-2023-37477 by sending a specially-crafted HTTP request to the 1Panel firewall functionality.
CVE-2023-37477 has a severity rating of 8.8 (high).
Fit2cloud 1panel versions up to and including 1.4.3, and go/github.com/1Panel-dev/1Panel versions up to and including 1.4.2.
To fix CVE-2023-37477, update to Fit2cloud 1panel version 1.4.4 or later, or update go/github.com/1Panel-dev/1Panel to version 1.4.3 or later.