Ethical Hacking Automation

Automate Recon and scanning process with Vidoc. All security teams in one place

Detect Python Exposed Metrics

By kannthu

Vidoc logoVidoc Module

What is "Detect Python Exposed Metrics?"

The "Detect Python Exposed Metrics" module is designed to identify potential information disclosure vulnerabilities in Python applications. It specifically targets the exposure of sensitive metrics through the "/metrics" endpoint. This module has a low severity level and was authored by dhiyaneshDK.


If the exposed metrics are not properly secured, an attacker may be able to gain access to sensitive information about the Python application, such as garbage collection data and Python version details. This could potentially lead to further exploitation or unauthorized access.

How the module works?

The module works by sending a GET request to the "/metrics" endpoint of the target Python application. It then applies matching conditions to determine if the application is exposing specific metrics and if the response status is 200 (OK).

Matching conditions:

- The response body must contain the following words: python_gc_objects_collected_total and python_info. - The response status must be 200 (OK).

If both conditions are met, the module will report a vulnerability.

Example HTTP request:

GET /metrics

For more information, refer to the following reference:


- Max request: 1 - Shodan query: html: "python_gc_objects_collected_total"

Module preview

Concurrent Requests (1)
1. HTTP Request template
Matching conditions
word: python_gc_objects_collected_total, pytho...and
status: 200
Passive global matcher
No matching conditions.
On match action
Report vulnerability