49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
id: application-yaml
|
|
|
|
info:
|
|
name: application.yaml detection
|
|
author: Cristi vlad (@cristivlad25)
|
|
severity: info
|
|
description: Finds Application YAML files which often contain sensitive information.
|
|
metadata:
|
|
max-request: 4
|
|
tags: misconfig
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/app.yaml"
|
|
- "{{BaseURL}}/app.yml"
|
|
- "{{BaseURL}}/application.yaml"
|
|
- "{{BaseURL}}/application.yml"
|
|
|
|
stop-at-first-match: true
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
condition: or
|
|
words:
|
|
- "runtime:"
|
|
- "spring:"
|
|
- "datasource:"
|
|
- "platform:"
|
|
- "server:"
|
|
- "job:"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: dsl
|
|
condition: or
|
|
dsl:
|
|
- "!contains(tolower(body), '<html')"
|
|
- "!contains(tolower(body), '<body')"
|
|
- "!contains(tolower(body), '</h1>')"
|
|
- "!contains(tolower(body), '</h2>')"
|
|
- "!contains(tolower(body), '</h3>')"
|
|
- "!contains(tolower(body), '<?xml')"
|
|
|
|
# digest: 4a0a004730450221008579bdb011d8a9e6bbf942ffd972f269d3ec4c82206acc520c7aebdfef5c9251022031dc6ee745d5998b0a57769639a364df8cfba212bbc295817d205320a7ff9cd5:922c64590222798bb761d5b6d8e72950
|