CVE Professor
/
All CVEs
CVE-2026-144956

CVE-2026-144956 — SpectoLabs Hoverfly (1.12.17) — CWE-295

HIGH CVSS 9.1 NVD

Hoverfly before 1.12.17 contains an improper certificate validation vulnerability in GetHttpClient in core/http.go that disables upstream TLS verification when -client-authentication-ca-cert is unset. Network attackers intercepting traffic can impersonate upstream hosts with arbitrary certificates to read client-certificate-authenticated requests and return forged responses recorded into simulations.

Hoverfly before 1.12.17 contains an improper certificate validation vulnerability in GetHttpClient in core/http.go that disables upstream TLS verification when -client-authentication-ca-cert is unset. Network attackers intercepting traffic can impersonate upstream hosts with arbitrary certificates to read client-certificate-authenticated requests and return forged responses recorded into simulations.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability None A:N
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE-2026-144956 is a critical Improper Certificate Validation vulnerability (CWE-295) in SpectoLabs Hoverfly (a dynamic API mocking and service virtualization tool).

Technical Flaw Analysis

The vulnerability resides in the GetHttpClient function within core/http.go. Hoverfly is designed to intercept HTTP/HTTPS traffic and route it to upstream servers or return mocked responses. When configured to proxy traffic to upstream services, it establishes TLS connections to those upstream hosts.

The core logic error is a conditional bypass of TLS verification:
1. Hoverfly checks if the -client-authentication-ca-cert flag is set.
2. If this flag is unset (which is the default state for many deployments that do not require mutual TLS for the client side of the proxy), the code explicitly disables TLS verification for the upstream connection.
3. This means that even if the upstream server presents a self-signed, expired, or completely invalid certificate, Hoverfly will accept the connection without validating the certificate chain against any trusted CA.

Why this is critical:
In a standard proxy setup, the proxy (Hoverfly) acts as the client to the upstream server. If TLS verification is disabled, an attacker positioned between Hoverfly and the upstream server (Man-in-the-Middle) can present any certificate (e.g., CN=upstream-api.internal) and Hoverfly will trust it. This allows the attacker to:
1. Decrypt the traffic between Hoverfly and the upstream server (if the traffic is encrypted with a key the attacker can derive or if the attacker is the one terminating the TLS).
2. Forge responses from the upstream server, which Hoverfly will then record into its simulation database or pass back to the original client.

Note: The CVSS vector AT:P (Attack Target: Privileged) suggests that while the network vector is unauthenticated, the attacker must be able to intercept traffic destined for the upstream server, implying a network position (e.g., same subnet, compromised switch, or ARP spoofing) rather than a pure remote internet attack against the Hoverfly UI itself.

⚡ Attack Chain

1. Discovery & Reconnaissance

  • Service Identification: The attacker identifies a Hoverfly instance running on the network (default port 8888 for API, 8889 for proxy).
  • Version Check: The attacker queries the Hoverfly API endpoint /api/v1/info or checks the User-Agent/Server headers to confirm the version is < 1.12.17.
  • Configuration Audit: The attacker determines that Hoverfly is configured to proxy traffic to sensitive upstream services (e.g., internal payment APIs, database proxies) and that -client-authentication-ca-cert is not set in the startup arguments. This can often be inferred if Hoverfly is successfully proxying HTTPS traffic to upstreams without explicit CA bundle configuration for upstream verification.
  • 2. Exploitation

    The attacker performs a Man-in-the-Middle (MitM) attack on the network path between Hoverfly and the upstream server.

    Prerequisites:

  • Attacker is on the same network segment as Hoverfly and the upstream server.

  • Attacker can perform ARP spoofing or has a compromised network switch.

  • Attacker generates a self-signed certificate for the upstream host (e.g., upstream-api.corp.local).
  • Step-by-Step Exploitation:

    1. Traffic Interception:
    The attacker uses a tool like ettercap or mitmproxy to intercept traffic between Hoverfly (IP: 10.0.0.5) and the upstream server (IP: 10.0.0.10).

    2. Certificate Forgery:
    The attacker presents a self-signed certificate for upstream-api.corp.local to Hoverfly.

    3. Bypassing Validation:
    Because -client-authentication-ca-cert is unset, Hoverfly's GetHttpClient function skips the InsecureSkipVerify check (or explicitly sets it to true in the tls.Config). The TLS handshake succeeds.

    4. Response Forgery:
    The attacker modifies the response from the upstream server. For example, if the upstream returns {"status": "ok"}, the attacker changes it to {"status": "failed", "error": "auth_token_invalid"} or injects malicious data.

    Illustrative PoC (Conceptual):

    # Attacker setup using mitmproxy
    # 1. Generate self-signed cert for upstream
    openssl req -x509 -newkey rsa:2048 -keyout upstream.key -out upstream.crt -days 365 -nodes -subj "/CN=upstream-api.corp.local"
    
    # 2. Start mitmproxy with the forged cert
    mitmproxy --mode transparent --ssl-insecure --ssl-dh-param 2048 --cert upstream.crt --key upstream.key
    
    # 3. Configure ARP spoofing to redirect Hoverfly's traffic to attacker
    arpspoof -i eth0 -t 10.0.0.5 10.0.0.10
    
    # 4. In mitmproxy, modify the response body
    # Original: {"data": "sensitive_info"}
    # Modified: {"data": "attacker_controlled_data"}

    Note: The exact API endpoints for Hoverfly configuration are not specified in the CVE description, so the above is an illustrative example of the network-level exploitation mechanics.

    3. Post-Exploitation

  • Data Exfiltration: The attacker reads the decrypted traffic between Hoverfly and the upstream server, potentially exposing sensitive data (API keys, PII, financial data) that was intended to be protected by TLS.
  • Simulation Poisoning: If Hoverfly is in "record" mode, the attacker can inject malicious responses into the simulation database. When other clients use Hoverfly to mock the upstream service, they will receive the forged responses, leading to:
  • * Logic Errors: Clients may behave incorrectly based on false data. * Security Bypass: If the mocked response includes a "success" status for an unauthorized action, clients may proceed with privileged operations. * Supply Chain Compromise: If the simulation is used in CI/CD pipelines, poisoned simulations can lead to faulty deployments or security misconfigurations.

    🌍 Real World Impact

    Based on the CVSS 4.0 vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N:

  • Confidentiality (High): An attacker can read all traffic between Hoverfly and upstream servers. This includes any sensitive data transmitted over the proxied connection.
  • Integrity (High): An attacker can modify responses from upstream servers. This can lead to:
  • * Corrupted data in simulations. * Misleading test results. * Potential injection of malicious logic into client applications that rely on the mocked responses.
  • Availability (None): The vulnerability does not directly cause a denial of service. However, if the attacker modifies responses to cause client crashes or infinite loops, indirect availability impact is possible but not scored in the CVSS vector.
  • Scope (None): The impact is confined to the Hoverfly instance and the clients interacting with it. It does not directly compromise the upstream server or other network segments.
  • Practical Consequences:

  • CI/CD Pipeline Compromise: If Hoverfly is used in automated testing, poisoned simulations can lead to the deployment of vulnerable or incorrect code.

  • Data Leakage: Sensitive data (e.g., API keys, user credentials) transmitted to upstream services can be intercepted and exfiltrated.

  • Trust Erosion: Developers may lose trust in the testing environment, leading to delays or incorrect security decisions.
  • 🛡️ Remediation & Mitigation

    1. Upgrade (Primary Fix)

  • Affected Versions: Hoverfly < 1.12.17
  • Fixed Version: Hoverfly 1.12.17
  • Action: Immediately upgrade to version 1.12.17 or later.
  • # Example: Using Docker
        docker pull spectolabs/hoverfly:1.12.17
        docker run -d --name hoverfly -p 8888:8888 -p 8889:8889 spectolabs/hoverfly:1.12.17

    2. Workarounds (If Upgrade is Not Immediately Possible)

  • Set -client-authentication-ca-cert: Even if mutual TLS is not required, setting this flag to a valid CA bundle (e.g., the system CA store) will force Hoverfly to validate upstream certificates.
  • hoverfly -client-authentication-ca-cert /etc/ssl/certs/ca-certificates.crt
  • Network Segmentation: Isolate Hoverfly in a dedicated network segment with strict firewall rules. Ensure that only authorized upstream servers can be reached, and monitor for unexpected TLS handshakes.
  • Disable Proxying: If Hoverfly is only used for local mocking and not for proxying to live upstreams, disable the proxy mode to eliminate the attack surface.
  • 3. Detection

  • Log Analysis: Monitor Hoverfly logs for TLS handshake failures or warnings about certificate validation. In vulnerable versions, these warnings may be absent or suppressed.
  • Network Monitoring: Use tools like Zeek or `Suricata* to detect: * TLS handshakes with self-signed or invalid certificates from Hoverfly to upstream servers. * Unexpected changes in response bodies (e.g., size mismatches, content hash changes).
  • Integrity Checks: Regularly verify the integrity of simulation files (JSON/YAML) stored by Hoverfly. Compare hashes against known good versions.
  • ⚠️ Urgency

  • CVSS Score: 9.1 (Critical)
  • CISA KEV: No (Not currently listed in the Known Exploited Vulnerabilities catalog)
  • Exploit Complexity: High (Requires network position and MitM capability)
Patching Priority: HIGH

While the exploit complexity is high (requiring a network-level MitM position), the impact is severe (data exfiltration and integrity compromise). In environments where Hoverfly is used in CI/CD pipelines or handles sensitive data, this vulnerability should be treated as critical and patched immediately. Organizations should prioritize upgrading to 1.12.17 within 24-48 hours, especially if Hoverfly is deployed in network segments with potential for internal lateral movement or MitM attacks.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="SpectoLabs Hoverfly"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-144956
Technical reference / advisory repository for CVE-2026-144956
Technical reference / advisory repository for CVE-2026-144956
Technical reference / advisory repository for CVE-2026-144956
CVSS Score
9.1 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-295
Affected Products (1)
SpectoLabs:Hoverfly (1.12.17)
Related CVEs
8.4
CVE-2026-81133
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an Improper Certificate
5.9
CVE-2026-52896
On affected platforms running Arista EOS with Streaming Telemetry Agent (TerminAttr) configured with gRPC tunn
9.1
CVE-2026-144304
Certifi versions before 2026.10.18 include the `emSign ECC Root CA - G3` root certificate in their bundled CA
7.4
CVE-2026-110481
Improper Certificate Validation vulnerability in Apache Camel Milo component. This issue affects Apache Cam
7.4
CVE-2026-115278
Improper Certificate Validation vulnerability in Apache Camel Vert.x components. This issue affects Apache
7.4
CVE-2026-132829
Improper Certificate Validation vulnerability in Apache Camel FTP component. This issue affects Apache Came
6.8
CVE-2026-126925
IBM AIX 7.2, and 7.3 and VIOS 4.1 NIM could allow a remote authenticated attacker under certain conditions to