Weakness · Medium
CWE-431: Missing Handler
What it is
A handler is not available or implemented.
- Severity (our rating)
- Medium
- Likelihood of exploit
- Not rated by MITRE
- Introduced during
- Implementation
- Exploited in the wild
- No CVE in CISA's catalog
In more detail
When an exception is thrown and not caught, the process has given up an opportunity to decide if a given failure or event is worth a change in execution.
What an attacker can do
- Varies by Context (Other)
How to prevent it
Implementation
- Handle all possible situations (e.g. error condition).
- If an operation can throw an Exception, implement a handler for that specific exception.
H2 Security
Found it in your code?
We review where it appears, fix it with your team, and check it was not already used against you.
Talk to our teamT Academy
Stop writing it in the first place
Learn to build software and systems without weaknesses like this one, with practice on real hosts in your browser, every objective checked on the machine.
Start freeSource: MITRE Common Weakness Enumeration, CWE version 4.19.1. CWE is a trademark of The MITRE Corporation.