GHSA-pv7q-v9mv-9mh5

Suggest an improvement
Source
https://github.com/advisories/GHSA-pv7q-v9mv-9mh5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/08/GHSA-pv7q-v9mv-9mh5/GHSA-pv7q-v9mv-9mh5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pv7q-v9mv-9mh5
Aliases
Related
Published
2023-08-10T20:09:07Z
Modified
2024-08-21T14:41:53.550448Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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 picture1

PoC

Request /api/v1/files/loadfile, carry /etc/passwd data to read, as shown below: 微信图片_20230731112833

Impact

1Panel v1.4.3

Database specific
{
    "nvd_published_at": "2023-08-10T18:15:11Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-08-10T20:09:07Z"
}
References

Affected packages

Go / github.com/1Panel-dev/1Panel

Package

Name
github.com/1Panel-dev/1Panel
View open source insights on deps.dev
Purl
pkg:golang/github.com/1Panel-dev/1Panel

Affected ranges

Type
SEMVER
Events
Introduced
1.4.3
Fixed
1.5.0

Affected versions

1.*

1.4.3