Improper Certificate Validation High

Skipping TLS certificate validation by setting InsecureSkipVerify to true disables critical host and certificate checking. This allows any certificate from any server to be accepted, permitting man-in-the-middle attacks. Certificate chains and host names should always be validated by setting InsecureSkipVerify to false, unless for testing. Disabling certificate validation indicates the application is vulnerable to malicious impersonation and sensitive data interception.

Detector ID
go/improper-certificate-validation@v1.0
Category
Common Weakness Enumeration (CWE) external icon