PT-2023-27176 · 1Panel · 1Panel

Darkfive2022

·

Publicado

2023-08-10

·

Atualizado

2024-08-21

·

CVE-2023-39964

CVSS v3.1

7.5

Alta

VetorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions 1Panel version 1.4.3
Description 1Panel is an open source Linux server operation and maintenance management panel. 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. This allows an attacker to read arbitrary important configuration files on the server.
Recommendations For version 1.4.3, update to version 1.5.0 to resolve the issue. As a temporary workaround, consider disabling the LoadFromFile function in the api/v1/file.go file until a patch is available. Restrict access to the /api/v1/files/loadfile endpoint to minimize the risk of exploitation. Avoid using the parameter[path] in the affected API endpoint until the issue is resolved.

Exploit

Correção

Path traversal

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

CVE-2023-39964
GHSA-PV7Q-V9MV-9MH5
GO-2023-2004

Produtos afetados

1Panel