High severityGoAuthentication & SecretsHIGH confidence
TLS Insecure Skip Verify
TLS certificate verification is disabled via InsecureSkipVerify: true (CWE-295).
Standards mapping
- OWASP Top 10
- A02:2021 - Cryptographic Failures
- OWASP ASVS
- V9.2.1 (L2)
Vulnerable vs. safe
Flagged by this check
return &tls.Config{InsecureSkipVerify: true}Passes - the safe pattern
return &tls.Config{InsecureSkipVerify: false}Why it matters & how to fix it
TLS certificate verification is disabled via InsecureSkipVerify: true (CWE-295). This accepts any certificate, exposing the connection to man-in-the-middle interception of credentials and data. Remove the setting and let the default verification run. If connecting to a host with a private CA, add that CA to tls.Config.RootCAs instead of disabling verification.
References
Rule ID integsec-go-tls-insecure-skip-verify - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - Authentication & SecretsHardcoded JWT Secret
- JavaScript / TypeScript - Authentication & SecretsHardcoded Secret
- JavaScript / TypeScript - Authentication & SecretsInsecure Cookie Flags
- JavaScript / TypeScript - Authentication & SecretsJWT Algorithm None
- JavaScript / TypeScript - Authentication & SecretsJWT Decode Without Verify
- JavaScript / TypeScript - Authentication & SecretsTLS Verification Disabled