Update prometheus-targets-endpoint.yaml

patch-1
Prince Chaddha 2021-10-19 20:35:34 +05:30 committed by GitHub
parent 72805491d0
commit 6d13118df6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 4 deletions

View File

@ -3,9 +3,9 @@ id: prometheus-targets-endpoint
info:
name: Exposure of sensitive operational information via Prometheus targets API endpoint
author: geeknik
severity: high
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/
severity: high
tags: prometheus,exposure
requests:
@ -18,8 +18,14 @@ requests:
- type: status
status:
- 200
- type: word
words:
- "Endpoint"
- "State"
- "Labels"
- '{"status":"success","data":'
- 'Labels'
condition: and
- type: word
part: header
words:
- 'application/json'