Summary
An internal API HTTP client disables TLS certificate verification by hardcoding InsecureSkipVerify: true and provides no configuration override. An attacker able to intercept or redirect client connections may read, alter, or impersonate API traffic.
Affected context
The vulnerability occurs in deployments that use the affected internal API HTTP client for HTTPS communication. Because certificate verification is disabled unconditionally, the client may accept certificates that are expired, self-signed, incorrectly issued, or otherwise unrelated to the intended server, particularly when traffic crosses an untrusted or compromised network path.
Exploit preconditions
- Attack surface: HTTPS connections made by the internal API HTTP client
- Required access: A network position capable of intercepting, redirecting, or impersonating the intended API endpoint
- Trigger point: Any client request performed while certificate verification remains disabled
- Why exploitation is possible: The client accepts the server's certificate without validating its trust chain or hostname
Why this happens
The underlying bug is unconditional disabling of TLS certificate verification through a hardcoded InsecureSkipVerify: true setting. This prevents the HTTP client from confirming that the remote endpoint presents a certificate issued by a trusted authority for the expected host. The behavior maps to CWE-295: Improper Certificate Validation, because authentication of the TLS peer is bypassed rather than enforced.
Potential impact
- An attacker may decrypt sensitive API requests and responses.
- An attacker could modify data exchanged with internal services.
- Credentials, tokens, or other secrets may be exposed.
- An attacker can impersonate an internal API endpoint.
- Compromised traffic may cause downstream data integrity or authorization issues.
General mitigation guidance
Mitigation generally focuses on making TLS peer authentication mandatory and preserving a clear trust boundary.
Common defensive patterns include:
- Use the platform or library default of validating certificate chains and hostnames.
- Remove hardcoded certificate-verification bypasses from production code paths.
- If private certificates are required, configure an explicit, controlled trust store rather than disabling validation.
- Separate narrowly scoped development or test behavior from production configuration.
- Restrict client privileges and avoid placing long-lived secrets in requests where possible.
- Treat endpoint addresses, proxy settings, and trust-store configuration as security-sensitive inputs.
How teams detect issues like this
Organizations can identify this class of issue through:
- Static analysis rules searching for
InsecureSkipVerifyassignments or equivalent TLS-verification bypass settings. - Code review checks for custom HTTP transport initialization and insecure test settings reaching production paths.
- Policy enforcement that requires certificate and hostname validation for outbound HTTPS clients.
- Runtime telemetry for unexpected certificates, trust-store changes, proxy redirection, or connections to unapproved endpoints.
- Automated dependency and source review tools that flag improper TLS configuration.

