PT-2023-27178 · 1Panel · 1Panel
Darkfive2022
·
Publicado
2023-08-10
·
Atualizado
2024-08-21
·
CVE-2023-39966
CVSS v3.1
7.5
Alta
| Vetor | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
1Panel versions 1.4.3
Description
An arbitrary file write vulnerability could lead to direct control of the server. In the
api/v1/file.go file, there is a function called SaveContentthat,It that receives JSON data sent by users in the form of a POST request. The lack of parameter filtering allows for arbitrary file write operations. This issue can be exploited by writing the SSH public key into the /etc/.root/authorized keys configuration file on the server, allowing for direct control of the server.Recommendations
For version 1.4.3, update to version 1.5.0 to resolve the issue. As a temporary workaround, consider restricting access to the
api/v1/file.go file or disabling the SaveContentthat,It function until a patch is applied. Avoid using the vulnerable API endpoint until the issue is resolved.Exploit
Correção
Missing Authorization
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
1Panel