id: python-metrics
info:
name: Detect Python Exposed Metrics
author: dhiyaneshDK
severity: low
description: Information Disclosure of Garbage Collection
reference:
- https://gist.github.com/ruanbekker/e5b1e7895f62b020ff29b5f40767190c
classification:
cpe: cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: python
product: python
shodan-query: html:"python_gc_objects_collected_total"
tags: exposure,devops,python,misconfig
http:
- method: GET
path:
- "{{BaseURL}}/metrics"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "python_gc_objects_collected_total"
- "python_info"
condition: and
- type: status
status:
- 200
# digest: 4a0a00473045022042aa57759bf77617ffe27a28141797276b02ebd1feaa3e40a0723510824b732f022100f39ab85d594c8472ba9230ba75bd89938ea104b5e9a8977c4cc0fc0f663a6bc2:922c64590222798bb761d5b6d8e72950