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-21 08:09:36 +00:00
|
|
|
- type: regex
|
|
|
|
regex:
|
2021-07-21 08:06:59 +00:00
|
|
|
- "(?m)^\\s*apiVersion\\s*:\\s*kustomize\\.config"
|
|
|
|
- "(?mi)^\\s*kind\\s*:\\s*Kustomization"
|
|
|
|
- "(?m)^\\scommonLabels\\s*:"
|
|
|
|
- "(?m)^\\sresources\\s*:"
|
|
|
|
- "(?m)^\\snamespace\\s*:"
|
|
|
|
part: body
|
2021-07-23 04:15:52 +00:00
|
|
|
|
2021-07-21 08:06:59 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "Content-Type: application/yaml"
|
|
|
|
part: header
|
2021-07-23 04:15:58 +00:00
|
|
|
|
2021-07-21 08:06:59 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|