CVE-2023-22463CWE-798

KubePi's Hardcoded Jwtsigkeys allows malicious actor to login with a forged JWT token

Critical · published January 4, 2023

Patch now

High probability of exploitation

CVSS calls it critical at 9.8. It sits in the 99.4th percentile for exploit probability.

CVSS v3.0
9.8
EPSS
70%
Percentile
99.4
In the wild
Unconfirmed
What it is

🚨 A hard-coded JWT secret is the villain here! Imagine all your online projects sharing the same secret recipe — that’s exactly what KubePi versions up to 1.6.2 are doing! 🔥 Think of it like a restaurant where every chef uses the same secret sauce recipe for every dish, making it easy for a food critic to copy and serve their own version. If anyone can ‘forge’ a dish, they can take over the whole kitchen! An attacker can create a forged JWT token, completely taking over the administrator account of any online project. Once they have that power, they could seize control of the entire Kubernetes cluster, leading to potentially devastating data breaches or outages.

Put simply

Think of it like a restaurant where every chef uses the same secret sauce recipe for every dish, making it easy for a food critic to copy and serve their own version. If anyone can ‘forge’ a dish, they can take over the whole kitchen! The vulnerability in KubePi's JWT authentication stems from hard-coded JwtSigKeys, allowing attackers to forge tokens easily. This means any user can impersonate the admin without needing proper authentication checks, which is a security nightmare!

What to do

An attacker can create a forged JWT token, completely taking over the administrator account of any online project. Once they have that power, they could seize control of the entire Kubernetes cluster, leading to potentially devastating data breaches or outages. Upgrade your KubePi to version 1.6.3 or later immediately to benefit from the patch. In the app.yml configuration, ensure that the JwtSigKey is specified; if left blank, it will auto-generate a random key. There are no workarounds for this issue! You can tackle this vulnerability head-on! Follow these steps, and you'll be the security hero your projects need! 🛡️

The record
Technical detail
CVSS v3.0
9.8 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.69667 · 99.4th percentile
Weakness
CWE-798 · Use of Hard-coded Credentials
Published
2023-01-04T15:04Z
EPSS history
Timeline
  • 04 JAN 15:04Z
    KubePi's Hardcoded Jwtsigkeys allows malicious actor to login with a forged JWT token
    cvelistv5