Prometheus Metrics - Detect
ID: prometheus-metrics
Severity: medium
Author: dhiyaneshDK,philippedelteil
Tags: exposure,prometheus,hackerone,config
Description
Section titled “Description”Prometheus metrics page was detected.
YAML Source
Section titled “YAML Source”id: prometheus-metrics
info: name: Prometheus Metrics - Detect author: dhiyaneshDK,philippedelteil severity: medium description: Prometheus metrics page was detected. reference: - https://github.com/prometheus/prometheus - https://hackerone.com/reports/1026196 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N cvss-score: 5.3 cwe-id: CWE-200 metadata: max-request: 2 tags: exposure,prometheus,hackerone,config
http: - method: GET path: - "{{BaseURL}}/metrics" - "{{BaseURL}}/api/metrics"
stop-at-first-match: true
matchers-condition: and matchers: - type: word words: - 'cpu_seconds_total' - 'http_request_duration_seconds' - 'process_virtual_memory_bytes' - 'process_start_time_seconds' condition: or
- type: word part: body words: - "lvm_" - "kube" - "namedprocess" - "mysqld" - "collectd_" - "libvirt_" - "mongodb" - "blackbox_" - "haproxy_" - "rabbitmq_" negative: true
- type: status status: - 200# digest: 4a0a0047304502200d1cf7084f71576f6e8700efbd7e5eee503136381c80476b0e70a04aee7291d9022100c21a788aa12bfa7274bc3f680023c9f49d68854ee3eaf22a6d3d79a17104c10e:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/exposures/configs/prometheus-metrics.yaml"