Property
Languageyaml
Severitylow
CWECWE-489: Active Debug Code
OWASPA06:2017 - Security Misconfiguration
Confidence LevelLow
Impact LevelMedium
Likelihood LevelLow

Description#

Setting FLASK_ENV to ‘development’ automatically enables Flask’s debug mode, which exposes sensitive debugging information and can make the app vulnerable. This setting should not be used in production or shared environments.

Impact#

If debug mode is enabled in a deployed application, attackers could access detailed error messages, view code, or even execute arbitrary code on the server, leading to data leaks or system compromise.