Medium severityGoInsecure ConfigurationMEDIUM confidence
Gin Debug Mode
Gin is running in debug mode (or gin.Default(), which does not force release mode) (CWE-489/CWE-1188).
Standards mapping
- OWASP Top 10
- A05:2021 - Security Misconfiguration
- OWASP ASVS
- V14.3.2 (L1)
Vulnerable vs. safe
Flagged by this check
gin.SetMode(gin.DebugMode)Passes - the safe pattern
gin.SetMode(gin.ReleaseMode)Why it matters & how to fix it
Gin is running in debug mode (or gin.Default(), which does not force release mode) (CWE-489/CWE-1188). Debug mode prints verbose request logs and internal warnings that can leak routing and configuration details in production. Call gin.SetMode(gin.ReleaseMode) at startup (or set GIN_MODE=release) before creating the engine.
References
Rule ID integsec-go-gin-debug-mode - 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 - Insecure ConfigurationCORS Acao Wildcard Header
- JavaScript / TypeScript - Insecure ConfigurationCORS Wildcard Origin
- JavaScript / TypeScript - Insecure ConfigurationCORS Wildcard With Credentials
- JavaScript / TypeScript - Insecure ConfigurationCSRF Protection Disabled
- JavaScript / TypeScript - Insecure ConfigurationExpress Trust Proxy All
- JavaScript / TypeScript - Insecure ConfigurationExpress X Powered By Enabled