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/
|
2021-05-26 21:15:50 +00:00
|
|
|
tags: k8,unauth,kubernetes,devops
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 2
|
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
|
2022-05-20 21:38:52 +00:00
|
|
|
|
|
|
|
# Enhanced by mp on 2022/05/20
|