Create metabase-version-detect.yaml

patch-1
revblock 2021-06-15 10:30:39 +01:00
parent e103e7b0ff
commit bce658a441
No known key found for this signature in database
GPG Key ID: 842F57E6F7E68B64
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
id: metabase-version-detect
info:
name: Detect Metabase Version
author: revblock
description: If a Metabase instance is deployed on the target URL it will return a login page with the version number in the page source
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}/auth/login"
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
words:
- "<title>Metabase</title>"
- "window.MetabaseBootstrap"
- "window.MetabaseRoot"
extractors:
- type: regex
part: body
group: 1
regex:
- '"(v\d+.\d+.\d+)"'