Add prometheus_version_scan module (Prometheus version detection)
I'd like to add a prometheus_version_scan module.
Why Prometheus
One of the most commonly internet-exposed monitoring systems, and the default datasource behind most Grafana dashboards (complements the Grafana module in #1799) — so a reliable version is useful input for the planned version-to-CVE mapping work. Prometheus ships with no built-in authentication, so its build-info is readable by default on exposed instances. There is currently no Prometheus module, and no open issue/PR for one. Proposed detection
GET /api/v1/status/buildinfo on ports 9090 (Prometheus default) plus 80/443 for reverse-proxied instances, over http and https. This is a documented, unauthenticated endpoint (available since Prometheus 2.14) that returns {"status":"success","data":{"version":"X.Y.Z","revision":…,"goVersion":…}}. Match on status 200 and the buildinfo signature ("status":"success","data":{"version":…), then capture and log only the version string. Anchoring on the buildinfo shape avoids matching other Prometheus API responses that also report "status":"success" (e.g. query results). Added as a scan module alongside the other _version_scan modules, in a prometheus profile so -p prometheus runs it. Testing plan Test against official prom/prometheus Docker images (an older 2.x and a current 2.x/3.x), confirming the version is captured. Also test against non-buildinfo Prometheus responses (query results, errors) and other products' /api/ responses to check for false positives, and verify the module stays silent when buildinfo isn't served.
Can this be assigned to me?
OS: Windows 11
OS Version: 10.0.26200
Python Version: 3.12.10
/assign @securestep9
Duplicate of #1924, the assigned tracking issue (PR #1930).