High severityPHPInsecure ConfigurationMEDIUM confidence
Display Errors On
display_errors is enabled at runtime (CWE-489/CWE-209).
Standards mapping
- OWASP Top 10
- A05:2021 - Security Misconfiguration
- OWASP ASVS
- V14.3.2 (L1)
Vulnerable vs. safe
Flagged by this check
ini_set("display_errors", 1);Passes - the safe pattern
ini_set("display_errors", 0);Why it matters & how to fix it
display_errors is enabled at runtime (CWE-489/CWE-209). In production this renders PHP errors — including file paths, SQL, and stack traces — to end users. Set display_errors = Off in production and route errors to a log via log_errors = On.
References
Rule ID integsec-php-display-errors-on - 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