Merge pull request #3818 from pdelteil/patch-92

Update and rename golang-metrics.yaml to prometheus-metrics.yaml
patch-1
Sandeep Singh 2022-03-02 22:59:42 +05:30 committed by GitHub
commit 2fccd30bf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 24 deletions

View File

@ -1,24 +0,0 @@
id: exposed-metrics
info:
name: Exposed metrics
author: dhiyaneshDK
severity: low
reference: https://hackerone.com/reports/1026196
tags: config,exposure
requests:
- method: GET
path:
- "{{BaseURL}}/metrics"
matchers-condition: and
matchers:
- type: word
words:
- 'cpu_seconds_total'
condition: and
- type: status
status:
- 200

View File

@ -0,0 +1,29 @@
id: prometheus-metrics
info:
name: Exposed Prometheus metrics
author: dhiyaneshDK, philippedelteil
severity: low
reference:
- https://github.com/prometheus/prometheus
- https://hackerone.com/reports/1026196
tags: config,exposure,prometheus
requests:
- method: GET
path:
- "{{BaseURL}}/metrics"
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: status
status:
- 200