nuclei-templates/misconfiguration/prometheus/prometheus-flags.yaml

38 lines
852 B
YAML
Raw Normal View History

2021-11-27 22:09:10 +00:00
id: prometheus-flags
2021-10-18 18:36:27 +00:00
info:
2021-10-19 16:56:31 +00:00
name: Prometheus flags API endpoint
2021-10-18 18:36:27 +00:00
author: geeknik
2021-10-19 16:56:31 +00:00
severity: info
2021-10-18 18:36:27 +00:00
description: The flags endpoint provides a full path to the configuration file. If the file is stored in the home directory, it may leak a username.
reference: https://jfrog.com/blog/dont-let-prometheus-steal-your-fire/
2021-11-27 22:09:10 +00:00
tags: prometheus
2021-10-18 18:36:27 +00:00
requests:
- method: GET
path:
2021-10-18 18:43:36 +00:00
- "{{BaseURL}}/api/v1/status/flags"
2021-10-18 18:36:27 +00:00
matchers-condition: and
matchers:
- type: status
status:
- 200
2021-10-19 15:04:13 +00:00
- type: word
2021-10-18 18:36:27 +00:00
words:
- '"data":'
- '"config.file":'
condition: and
2021-10-18 19:36:49 +00:00
2021-10-19 15:02:37 +00:00
- type: word
part: header
words:
- 'application/json'
extractors:
- type: regex
name: web_admin_enabled
regex:
- '\"web\.enable\-admin\-api\"\: \"true\"'