Skip to content

1Panel O&M management panel has a background arbitrary file reading vulnerability

Moderate
wanghe-fit2cloud published GHSA-pv7q-v9mv-9mh5 Aug 10, 2023

Package

backend (1Panel)

Affected versions

v1.4.3

Patched versions

v1.5.0

Description

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

Moderate

CVE ID

CVE-2023-39964

Weaknesses

No CWEs

Credits