The vulnerability exists in the OpenTelemetry.Exporter.Instana package, where the Transport.ConfigureBackendClient method improperly handles TLS certificate validation. When a proxy is configured via the INSTANA_ENDPOINT_PROXY environment variable, the code creates an HttpClient with a handler that unconditionally accepts all server certificates, effectively bypassing TLS validation. This flaw exposes telemetry data and the Instana API key to potential man-in-the-middle attacks.
The patch addresses this by refactoring the HttpClient creation process. The vulnerable ConfigureBackendClient method is removed and replaced with a CreateClient method. The new implementation no longer disables certificate validation by default. Instead, it provides a mechanism for users to supply their own HttpClient via the HttpClientFactory option, giving them control over the validation logic. This change ensures that TLS certificate validation is enabled by default, mitigating the risk of interception.