Web Security · Junior · Question 75 of 75
Why are detailed error messages with stack traces dangerous in production?
- ✓Correct answer: They reveal internals like file paths, library versions and queries that help attackers
- 2Because browsers can't display long error messages
- 3Because they make the page slower to render
Explanation
Show users a generic message with an error ID, and log the details on the server where only the team can see them.