High severityPHPAuthentication & SecretsHIGH confidence
Disabled TLS Verification
TLS certificate verification is disabled (CWE-295).
Standards mapping
- OWASP ASVS
- V9.2.1 (L2)
Vulnerable vs. safe
Flagged by this check
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);Passes - the safe pattern
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);Why it matters & how to fix it
TLS certificate verification is disabled (CWE-295). This allows man-in-the-middle attackers to intercept and modify traffic. Leave CURLOPT_SSL_VERIFYPEER = true and CURLOPT_SSL_VERIFYHOST = 2; if a custom CA is needed, configure CURLOPT_CAINFO instead of disabling verification.
References
Rule ID integsec-php-disabled-tls-verification - 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