Kube API Version
ID: kube-api-version
Severity: info
Author: sharath,raesene
Tags: tech,k8s,kubernetes,devops,kube
Description
Section titled “Description”Searches for exposed Kubernetes API servers which return version information unauthenticated
YAML Source
Section titled “YAML Source”id: kube-api-version
info: name: Kube API Version author: sharath,raesene severity: info description: Searches for exposed Kubernetes API servers which return version information unauthenticated metadata: max-request: 1 tags: tech,k8s,kubernetes,devops,kube
http: - method: GET path: - "{{BaseURL}}/version"
matchers-condition: and matchers: - type: status status: - 200
- type: word part: body words: - '"major":' - '"minor":' - '"goVersion":' condition: and
extractors: - type: json json: - ".gitVersion"# digest: 4b0a00483046022100835115fbfa8dce5b1ea51858d94a05ab1b37955b61da206fc27bd77c3f8dc335022100c9c8c2888b58bdd701b7cc19ec3da5efb852f2c35ba0cac305845f8c860b5c2c:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/technologies/kubernetes/kube-api/kube-api-version.yaml"