← All Labs
A02 Security Misconfiguration – Debug Page Left On
A debug route was accidentally left enabled and exposes synthetic diagnostic settings.
What is Security Misconfiguration – Public Debug Endpoint?
Debug pages can expose environment variables, paths, framework details and secrets. A debug endpoint should not be publicly exposed in a deployed application.
About this lab
Designed by the SecurityElites team specially for training.
How AI helps you find it
AI can explain the relevant HTTP behaviour, suggest a focused test checklist and help compare expected and observed responses. Confirm findings manually.
How to fix it
- Disable debug mode and diagnostic routes in production.
- Restrict diagnostics to authorized operators.
- Remove secrets from debug output.
- Use deployment checks to detect unsafe settings.
- Return generic errors without stack traces.
- Scan deployments for exposed debug endpoints.
How AI helps you defend against it
AI can help review the relevant route, input handling or configuration and draft regression tests. A developer must validate the implementation.
Read the full OWASP LLM Top 10 guide · All free labs · AI red team certification