Lucene search
+L

HashiCorp Consul version detect

🗓️ 14 Nov 2026 15:13:24Reported by KittySploitType 
kittysploit
 kittysploit
🔗 github.com👁 17 Views

HashiCorp Consul agent self/version endpoint reveals the agent version.

Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""HashiCorp Consul version fingerprint."""

import json

from kittysploit import *
from lib.protocols.http.http_client import Http_client


class Module(Scanner, Http_client):
    __info__ = {
        "name": "HashiCorp Consul version detect",
        "description": "Reads Consul agent self/version from /v1/agent/self.",
        "author": ["KittySploit Team"],
        "severity": "info",
        "tags": ["consul", "hashicorp", "scanner", "version"],
        "agent": {
            "chain": {"suggested_followups": ["scanner/http/consul_detect"]},
        },
    }

    def run(self):
        for path in ("/v1/agent/self", "/v1/status/leader"):
            r = self.http_request(method="GET", path=path, allow_redirects=False)
            if not r or int(r.status_code or 0) != 200:
                continue
            text = r.text or ""
            version = ""
            try:
                data = json.loads(text)
                if isinstance(data, dict):
                    version = str(
                        data.get("Config", {}).get("Version")
                        or data.get("version")
                        or ""
                    )
            except json.JSONDecodeError:
                pass
            if version or "consul" in text.lower():
                self.set_info(
                    severity="info",
                    reason=f"Consul agent API at {path}" + (f" version {version}" if version else ""),
                    version=version or "unknown",
                )
                return True
        return False

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

14 Nov 2026 15:13Current
6.2Medium risk
Vulners AI Score6.2
17