1panel-dev/1panel · Security
1Panel command injection vulnerability in Firewall ip functionality
- GHSA ID
- GHSA-p9xf-74xh-mhw5
- CVE ID
- CVE-2023-37477
- Severity
- high
- Published
- Updated
- CVSS
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Description
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

the payload ; sleep 6 # will lead server response in 6 seconds

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 [email protected]
CWEs
- CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-p9xf-74xh-mhw5 ↗
- https://github.com/1Panel-dev/1Panel/commit/e17b80cff4975ee343568ff526b62319f499005d ↗
- https://github.com/1Panel-dev/1Panel/releases/tag/v1.4.3 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2023-37477 ↗
- https://github.com/advisories/GHSA-p9xf-74xh-mhw5 ↗