2021-07-21 08:06:59 +00:00
|
|
|
id: kubernetes-kustomization-disclosure
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Kubernetes Kustomization Disclosure
|
|
|
|
author: dhiyaneshDk
|
|
|
|
severity: medium
|
|
|
|
reference: https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/kubernetes-kustomization-disclosure.json
|
|
|
|
tags: exposure,config
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/kustomization.yml"
|
2021-07-23 04:15:44 +00:00
|
|
|
|
2021-07-21 08:06:59 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2021-07-23 21:33:31 +00:00
|
|
|
- type: word
|
2021-07-21 08:06:59 +00:00
|
|
|
part: body
|
2021-07-23 21:33:31 +00:00
|
|
|
condition: or
|
|
|
|
words:
|
|
|
|
- "apiVersion:"
|
|
|
|
- "resources:"
|
|
|
|
- "namespace:"
|
|
|
|
- "commonLabels:"
|
|
|
|
- "Kustomization"
|
2021-07-23 04:15:52 +00:00
|
|
|
|
2021-08-17 16:41:28 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- "contains(tolower(all_headers), 'application/yaml')"
|
2021-07-23 04:15:58 +00:00
|
|
|
|
2021-07-21 08:06:59 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|