nuclei-templates/exposures/configs/prometheus-targets-endpoint...

32 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

id: prometheus-targets-endpoint
info:
name: Prometheus targets API endpoint
author: geeknik
severity: info
description: The targets endpoint exposes services belonging to the infrastructure, including their roles and labels. In addition to showing the target machine addresses, the endpoint also exposes metadata labels that are added by the target provider. These labels are intended to contain non-sensitive values, like the name of the server or its description, but various cloud platforms may automatically expose sensitive data in these labels, oftentimes without the developers knowledge.
reference: https://jfrog.com/blog/dont-let-prometheus-steal-your-fire/
tags: prometheus,exposure
requests:
- method: GET
path:
- "{{BaseURL}}/api/v1/targets"
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
words:
- '{"status":"success","data":'
- 'Labels'
condition: and
- type: word
part: header
words:
- 'application/json'