github.com/1Panel-dev/1Panel
Affected
- introduced
1.4.3, fixed1.5.0(semver)
Fixed versions
1.5.0
Fix
- Fixed version
1.5.0go get github.com/1Panel-dev/[email protected]
Advisory
Also known as: CVE-2023-39966, GO-2023-2006
1Panel arbitrary file write vulnerability
Summary
An arbitrary file write vulnerability could lead to direct control of the server
Details
Arbitrary file creation
In the api/v1/file.go file, there is a function called SaveContentthat,It recieves JSON data sent by users in the form of a POST request. And the lack of parameter filtering allows for arbitrary file write operations.It looks like this:
PoC
微信图片_20230801093933
微信图片_20230801094037
As a result, the server is directly controlled, causing serious harm
Impact
1Panel v1.4.3
High Basis: The source's own band: HIGH
1.4.3, fixed 1.5.0 (semver)1.5.0
1.5.0go get github.com/1Panel-dev/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0