2022-03-08 18:47:22 +00:00
|
|
|
id: puppetdb-detect
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: PuppetDB Detection
|
|
|
|
author: c-sh0
|
|
|
|
severity: info
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://puppet.com/docs/puppetdb/7/api/meta/v1/version.html#pdbmetav1version
|
2022-03-08 18:47:22 +00:00
|
|
|
tags: puppet,tech,exposure
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2022-03-08 18:47:22 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-03-08 18:47:22 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/pdb/meta/v1/version"
|
|
|
|
|
2022-03-09 11:33:51 +00:00
|
|
|
matchers-condition: and
|
2022-03-08 18:47:22 +00:00
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- 'application/json'
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"version"'
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- '"version"\s:\s"([0-9.]+)"'
|