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.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://jfrog.com/blog/dont-let-prometheus-steal-your-fire/
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: prometheus,leak,misconfig
|
2021-10-18 18:36:27 +00:00
|
|
|
|
2023-04-27 04:28:59 +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'
|
|
|
|
|
2021-10-18 18:51:11 +00:00
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
name: web_admin_enabled
|
|
|
|
regex:
|
|
|
|
- '\"web\.enable\-admin\-api\"\: \"true\"'
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a0047304502202c5944a52cbb910d5ffd4741d3ba1a58127d71e530f255fe5f73088f89dd0b85022100edabee72ec909322a77a427a2993c093e689912eca5f3d1fcce72bb80f074314:922c64590222798bb761d5b6d8e72950
|