30 lines
682 B
YAML
30 lines
682 B
YAML
id: python-metrics
|
|
|
|
info:
|
|
name: Detect Python Exposed Metrics
|
|
author: dhiyaneshDK
|
|
severity: low
|
|
description: Information Disclosure of Garbage Collection
|
|
reference:
|
|
- https://www.shodan.io/search?query=html%3A%22python_gc_objects_collected_total%22
|
|
- https://gist.github.com/ruanbekker/e5b1e7895f62b020ff29b5f40767190c
|
|
tags: exposure,devops,python
|
|
|
|
requests:
|
|
- 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
|