PT-2023-18515 · Kubepi · Kubepi

Shangrui-Hash

·

Publicado

2023-01-04

·

Atualizado

2024-08-20

·

CVE-2023-22463

CVSS v3.1

9.8

Crítica

VetorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions KubePi versions prior to 1.6.3
Description The jwt authentication function of KubePi uses hard-coded Jwtsigkeys, resulting in the same Jwtsigkeys for all online projects. This means that an attacker can forge any jwt token to take over the administrator account of any online project. Furthermore, they may use the administrator to take over the k8s cluster of the target enterprise. The session.go file uses a hard-coded JwtSigKey, allowing an attacker to use this value to forge jwt tokens arbitrarily. The JwtSigKey is confidential and should not be hard-coded in the code.
Recommendations For versions prior to 1.6.3, upgrade to version 1.6.3 or later, where the JWT key can be specified in app.yml, and if left blank, a random key will be used. As a temporary workaround, consider restricting access to the session.go file and the JwtSigKey variable until a patch is available. Avoid using the hard-coded JwtSigKey value in the affected API endpoints until the issue is resolved.

Exploit

Correção

Using Hardcoded Credentials

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

Enumeração de Fraquezas

Identificadores relacionados

CVE-2023-22463
GHSA-VJHF-8VQX-VQPQ
GO-2023-1283

Produtos afetados

Kubepi