Unhandled exceptions have two primary risks.
- Denial of service: When an unhandled exception occurs, it might cause memory leakage or consume server resources by performing more process than usual.
- Leaking information: Unhandled exceptions can generate error messages with sensitive information. When these error messages are shown to users, attackers can take advantage of them to develop their attack on the target.
Properly handle all types of exceptions and display a generic error message.
👉 You might also like:
Last updated on December 12, 2021