CVE-2023-22463 KubePi's Hardcoded Jwtsigkeys allows malicious actor to login with a forged JWT token
KubePi의 하드 코딩 된 Jwtsigkeys는 악의적 인 행위자가 위조 된 JWT 토큰으로 로그인 할 수있게합니다.
설명
KubePi is a k8s panel. The jwt authentication function of KubePi through version 1.6.2 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. `session.go`, the use of hard-coded JwtSigKey, allows an attacker to use this value to forge jwt tokens arbitrarily. The JwtSigKey is confidential and should not be hard-coded in the code. The vulnerability has been fixed in 1.6.3. In the patch, JWT key is specified in app.yml. If the user leaves it blank, a random key will be used. There are no workarounds aside from upgrading.
KubePi는 K8s 패널입니다. 버전 1.6.2를 통한 KubePi의 jwt 인증 기능은 하드 코딩된 Jwtsigkeys를 사용하며, 모든 온라인 프로젝트에 대해 동일한 Jwtsigkeys를 생성한다. 즉, 공격자는 모든 jwt 토큰을 위조하여 모든 온라인 프로젝트의 관리자 계정을 인계받을 수 있습니다. 또한, 관리자를 사용하여 대상 기업의 k8s 클러스터를 인수할 수 있습니다. 하드 코딩된 JwtSigKey를 사용하여 공격자가 이 값을 사용하여 jwt 토큰을 임의로 위조할 수 있습니다. JwtSigKey는 기밀이며 코드에 하드 코딩되어서는 안됩니다. 이 취약점은 1.6.3에서 수정되었습니다. 패치에서 JWT 키는 app.yml에 지정됩니다. 사용자가 빈칸을 남겨 두면 임의의 키가 사용됩니다. 업그레이드 외에 다른 해결 방법은 없습니다.
영향 받는 제품 제품 1개
-
해결 버전 있음
KubeOperator
KubePi
영향 받는 버전
- 1.6.3 미만
해결 버전
- 1.6.3 이상
참고 자료 4건
- github.com https://github.com/KubeOperator/KubePi/blob/da784f5532ea2495b92708cacb32703bff3a45a3/internal/api/v1/session/session.go#L35 (새 창)
- github.com https://github.com/KubeOperator/KubePi/commit/3be58b8df5bc05d2343c30371dd5fcf6a9fbbf8b (새 창)
- github.com https://github.com/KubeOperator/KubePi/releases/tag/v1.6.3 (새 창)
- github.com https://github.com/KubeOperator/KubePi/security/advisories/GHSA-vjhf-8vqx-vqpq (새 창)