CWE-1069 · Słabość
Empty Exception Block
- Abstrakcja
- Wariant
- Status
- Niekompletny
- Dodano
- 2 lipca 2018
- Ostatnia zmiana
- 30 kwietnia 2026
Opis
An invokable code block contains an exception handling block that does not contain any code, i.e. is empty.
Skutki
Other
Reduce Reliability
When an exception handling block (such as a Catch and Finally block) is used, but that block is empty, this can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.
Zapobieganie
Implementation
For every exception block add code that handles the specific exception in the way intended by the application.
Słabość nadrzędna
Kiedy powstaje
- Implementation
Dotyczy
Not Language-Specific
Źródła
- Automated Source Code Reliability Measure (ASCRM) — Object Management Group (OMG), ASCRM-RLB-1, 2016
Wpis z katalogu CWE 4.20.