High severityRubyAuthentication & SecretsHIGH confidence
JWT Verification Disabled
JWT signature verification is disabled (verify=false or alg "none"), allowing attackers to forge tokens (CWE-347).
Standards mapping
- OWASP ASVS
- V3.5.3 (L1)
Vulnerable vs. safe
Flagged by this check
JWT.decode(token, hmac_secret, false)Passes - the safe pattern
JWT.decode(token, hmac_secret, true, { algorithm: "HS256" })Why it matters & how to fix it
JWT signature verification is disabled (verify=false or alg "none"), allowing attackers to forge tokens (CWE-347). Always verify the signature: pass verify=true and pin the expected algorithm (algorithm: "HS256"/"RS256").
References
Rule ID integsec-ruby-jwt-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
- JavaScript / TypeScript - Authentication & SecretsTLS Verification Disabled