2020-06-17 17:11:32 +00:00
|
|
|
id: kubernetes-pods-api
|
2020-09-17 08:50:01 +00:00
|
|
|
|
2020-06-17 15:56:34 +00:00
|
|
|
info:
|
2022-05-20 21:38:52 +00:00
|
|
|
name: Kubernetes Pods - API Discovery & Remote Code Execution
|
2021-06-09 12:20:56 +00:00
|
|
|
author: ilovebinbash,geeknik,0xtavian
|
2020-09-13 06:20:06 +00:00
|
|
|
severity: critical
|
2022-05-20 21:38:52 +00:00
|
|
|
description: A Kubernetes Pods API was discovered. When the service port is available, unauthenticated users can execute commands inside the container.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
2022-05-20 21:38:52 +00:00
|
|
|
- https://github.com/officialhocc/Kubernetes-Kubelet-RCE
|
2022-04-22 10:38:41 +00:00
|
|
|
- https://blog.binaryedge.io/2018/12/06/kubernetes-being-hijacked-worldwide/
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 2
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: k8,unauth,kubernetes,devops,misconfig
|
2020-09-17 08:50:01 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2020-06-17 15:56:34 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
2020-09-17 08:50:01 +00:00
|
|
|
- '{{BaseURL}}/pods'
|
2020-12-21 19:35:12 +00:00
|
|
|
- '{{BaseURL}}/api/v1/pods'
|
2021-09-04 10:24:24 +00:00
|
|
|
|
2020-07-08 11:38:57 +00:00
|
|
|
matchers-condition: and
|
2020-06-17 15:56:34 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "apiVersion"
|
2021-09-04 10:24:24 +00:00
|
|
|
|
2020-06-17 15:56:34 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "application/json"
|
2020-11-16 17:35:49 +00:00
|
|
|
part: header
|
2021-09-04 10:24:24 +00:00
|
|
|
|
2020-11-16 17:35:49 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 490a004630440220143f86f473fcb74736d85435c11b69e2645ba37764c811f4e110e562a564f86f02203653a4866258336dcab5cc24bd804ff82ececf124d7ca7f8d9b4685e6bf71b1b:922c64590222798bb761d5b6d8e72950
|