27 lines
646 B
YAML
27 lines
646 B
YAML
id: kubernetes-pods-api
|
|
|
|
info:
|
|
name: Kubernetes Pods API
|
|
author: ilovebinbash & geeknik
|
|
severity: critical
|
|
description: When the service port is available, anyone can execute commands inside the container. See https://github.com/officialhocc/Kubernetes-Kubelet-RCE for inspiration.
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- '{{BaseURL}}/pods'
|
|
- '{{BaseURL}}:10250/pods'
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "apiVersion"
|
|
part: body
|
|
- type: word
|
|
words:
|
|
- "application/json"
|
|
part: header
|
|
- type: status
|
|
status:
|
|
- 200
|