2021-02-10 20:15:57 +00:00
|
|
|
id: docker-compose-config
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: docker-compose.yml exposure
|
2021-06-09 12:20:56 +00:00
|
|
|
author: meme-lord,blckraven,geeknik
|
2021-02-10 20:15:57 +00:00
|
|
|
severity: medium
|
2021-05-26 21:14:15 +00:00
|
|
|
tags: config,exposure,devops
|
2021-02-10 20:15:57 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
redirects: true
|
|
|
|
max-redirects: 3
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/docker-compose.yml"
|
2021-02-11 07:37:02 +00:00
|
|
|
- "{{BaseURL}}/docker-compose.prod.yml"
|
|
|
|
- "{{BaseURL}}/docker-compose.production.yml"
|
|
|
|
- "{{BaseURL}}/docker-compose.staging.yml"
|
|
|
|
- "{{BaseURL}}/docker-compose.dev.yml"
|
2021-03-09 20:52:45 +00:00
|
|
|
- "{{BaseURL}}/docker-compose-dev.yml"
|
2021-03-09 20:49:46 +00:00
|
|
|
- "{{BaseURL}}/docker-compose.override.yml"
|
|
|
|
|
2021-02-10 20:15:57 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
2021-03-24 23:28:50 +00:00
|
|
|
- 'regex("^version: ", body) && contains(body, "services:")'
|
2021-02-10 20:15:57 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|