High severityJavaScript / TypeScriptAuthentication & SecretsHIGH confidence
TLS Verification Disabled
TLS certificate verification is disabled, exposing traffic to man-in-the-middle attacks.
Standards mapping
- OWASP ASVS
- V9.2.1 (L2)
Vulnerable vs. safe
Flagged by this check
const agent = new https.Agent({ rejectUnauthorized: false });Passes - the safe pattern
const safeAgent = new https.Agent({ rejectUnauthorized: true });Why it matters & how to fix it
TLS certificate verification is disabled, exposing traffic to man-in-the-middle attacks. Keep certificate validation enabled and trust a proper CA bundle instead of disabling checks.
References
Rule ID integsec-js-tls-verification-disabled - 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
- Python - Authentication & SecretsDjango Hardcoded Secret Key