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: 4a0a00473045022100fa224f2ddeba3339f9aa23238bed3645003015d3ca53490bd38cf00034d2277902205cae498eb55ab5eb585ccb962258b77346cd24bd9ffe0df49df284c795f4a36c:922c64590222798bb761d5b6d8e72950