nuclei-templates/misconfiguration/application-yaml.yaml

43 lines
1.0 KiB
YAML
Raw Normal View History

2021-10-22 16:49:12 +00:00
id: application-yaml
2021-10-22 09:17:44 +00:00
info:
2021-10-22 16:49:12 +00:00
name: application.yaml detection
2021-10-22 09:17:44 +00:00
author: Cristi vlad (@cristivlad25)
2021-10-22 16:49:12 +00:00
severity: info
description: Finds Application YAML files which often contain sensitive information.
2021-10-28 12:14:58 +00:00
tags: misconfig
2021-10-22 09:17:44 +00:00
requests:
- method: GET
path:
- "{{BaseURL}}/app.yaml"
- "{{BaseURL}}/app.yml"
- "{{BaseURL}}/application.yaml"
- "{{BaseURL}}/application.yml"
2021-10-22 16:49:12 +00:00
2021-10-22 09:17:44 +00:00
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
condition: or
2021-10-22 16:49:12 +00:00
words:
- "runtime:"
- "spring:"
- "datasource:"
- "platform:"
- "server:"
- "job:"
2021-10-22 09:17:44 +00:00
- type: status
status:
- 200
2021-10-22 16:49:12 +00:00
2021-10-22 09:17:44 +00:00
- type: dsl
2021-10-22 16:49:12 +00:00
condition: or
2021-10-22 09:17:44 +00:00
dsl:
- "!contains(tolower(body), '<html')"
- "!contains(tolower(body), '<body')"
- "!contains(tolower(body), '</h1>')"
- "!contains(tolower(body), '</h2>')"
- "!contains(tolower(body), '</h3>')"
2021-10-22 16:49:12 +00:00
- "!contains(tolower(body), '<?xml')"