Delivering code in production with debug features activated is security-sensitive. It has led in the past to the following vulnerabilities:
Debug statements (ones with 'D' or 'd' in the indicator area) should not be executed in production, but the
WITH DEBUGGING MODE clause
activates all debug lines, which could expose sensitive information to attackers.
Ask Yourself Whether
- the code or configuration enabling the application debug features is deployed on production servers.
- the application runs by default with debug features activated.
There is a risk if you answered yes to any of those questions.
Recommended Secure Coding Practices
Do not enable debug features on production servers.
Sensitive Code Example
SOURCE-COMPUTER. IBM-370 WITH DEBUGGING MODE.