{"id":"GHSA-p9xf-74xh-mhw5","summary":"1Panel command injection vulnerability in Firewall ip functionality","details":"### Summary\nAn 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.\n\n### Details\n1Panel firewall functionality `/hosts/firewall/ip` endpoint read user input without validation, the attacker extends the default functionality of the application, which execute system commands.\n\n### PoC\nthe payload `; sleep 3 #` will lead server response in 3 seconds \n![image](https://user-images.githubusercontent.com/4935500/252299676-bc4a8b92-e475-40ee-a92a-fec9fad7a6c3.png)\n\nthe payload `; sleep 6 #` will lead server response in 6 seconds \n![image](https://user-images.githubusercontent.com/4935500/252299871-766cc411-69e5-4c6c-b4ff-7774fa974ea0.png)\n\n### Impact\nAn attacker can execute arbitrary code on the target system, which can lead to a complete compromise of the system.\n\n### Patches\n\nThe vulnerability has been fixed in v1.4.3.\n\n### Workarounds\n\nIt is recommended to upgrade the version to v1.4.3.\n\n### References\n\nIf you have any questions or comments about this advisory:\n\nOpen an issue in https://github.com/1Panel-dev/1Panel\nEmail us at wanghe@fit2cloud.com\n","aliases":["CVE-2023-37477","GO-2023-1940"],"modified":"2024-08-20T20:59:16.244415Z","published":"2023-07-18T19:10:58Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2023-07-18T19:10:58Z","nvd_published_at":"2023-07-18T19:15:09Z","cwe_ids":["CWE-78"]},"references":[{"type":"WEB","url":"https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-p9xf-74xh-mhw5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37477"},{"type":"WEB","url":"https://github.com/1Panel-dev/1Panel/commit/e17b80cff4975ee343568ff526b62319f499005d"},{"type":"PACKAGE","url":"https://github.com/1Panel-dev/1Panel"},{"type":"WEB","url":"https://github.com/1Panel-dev/1Panel/releases/tag/v1.4.3"}],"affected":[{"package":{"name":"github.com/1Panel-dev/1Panel","ecosystem":"Go","purl":"pkg:golang/github.com/1Panel-dev/1Panel"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.4.3"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.4.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-p9xf-74xh-mhw5/GHSA-p9xf-74xh-mhw5.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}