Advisory

GHSA-pv7q-v9mv-9mh5

Also known as: CVE-2023-39964, GO-2023-2004

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-08-10 20:09 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/1Panel-dev/1Panel

Go · All systems

Affected

  • introduced 1.4.3, fixed 1.5.0 (semver)

Fixed versions

1.5.0

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences