GHSA-pv7q-v9mv-9mh5
Dashboard / Vulnerabilities / GHSA-pv7q-v9mv-9mh5
GHSA-pv7q-v9mv-9mh5
Summary: 1Panel O&M management panel has a background arbitrary file reading vulnerability
Details: ### Summary Arbitrary file reads allow an attacker to read arbitrary important configuration files on the server. ### Details In the api/v1/file.go file, there is a function called LoadFromFile, which directly reads the file by obtaining the requested path parameter[path]. The request parameters are not filtered, resulting in a background arbitrary file reading vulnerability  ### PoC Request /api/v1/files/loadfile, carry /etc/passwd data to read, as shown below:  ### Impact 1Panel v1.4.3
References: https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-pv7q-v9mv-9mh5, https://nvd.nist.gov/vuln/detail/CVE-2023-39964, https://github.com/1Panel-dev/1Panel, https://github.com/1Panel-dev/1Panel/releases/tag/v1.5.0
Affected packages
Package
Name: github.com/1Panel-dev/1Panel
Purl: pkg:golang/github.com/1Panel-dev/1Panel
Affected ranges
Type: SEMVER
Events:
