CVE-2023-37477: Command injection in firewall ip functionality in 1Panel
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
the payload ; sleep 6 # will lead server response in 6 seconds !image
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
Other sources
1Panel is an open source Linux server operation and maintenance management panel. 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. 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. An attacker can execute arbitrary code on the target system, which can lead to a complete compromise of the system. This issue has been addressed in commit e17b80cff49 which is included in release version 1.4.3. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/github.com/1Panel-dev/1Panelto a version that resolves this vulnerability.Fixed in 1.4.3 - Upgrade
Upgrade
1Panelto a version that resolves this vulnerability.Fixed in 1.4.3Patch e17b80cff49
Event History
Frequently Asked Questions
What is CVE-2023-37477?
CVE-2023-37477 is an OS command injection vulnerability in 1Panel firewall functionality, allowing arbitrary command execution.
How can an attacker exploit CVE-2023-37477?
An attacker can exploit CVE-2023-37477 by sending a specially-crafted HTTP request to the 1Panel firewall functionality.
What is the severity of CVE-2023-37477?
CVE-2023-37477 has a severity rating of 8.8 (high).
Which software versions are affected by CVE-2023-37477?
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.
How do I fix CVE-2023-37477?
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.