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

43 lines
1.1 KiB
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/
metadata:
max-request: 1
2023-10-14 11:27:55 +00:00
tags: prometheus,leak,misconfig
2021-10-18 18:36:27 +00:00
http:
2021-10-18 18:36:27 +00:00
- 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\"'
# digest: 4a0a0047304502202c5944a52cbb910d5ffd4741d3ba1a58127d71e530f255fe5f73088f89dd0b85022100edabee72ec909322a77a427a2993c093e689912eca5f3d1fcce72bb80f074314:922c64590222798bb761d5b6d8e72950