The code has a return statement inside a finally block, which will cause any thrown exception in the try block to be discarded.
Extended Description
N/A
ThreatScore
Threat Mapped score: 0.0
Industry: Finiancial
Threat priority: Unclassified
Observed Examples (CVEs)
No observed examples available.
Related Attack Patterns (CAPEC)
N/A
Attack TTPs
N/A
Modes of Introduction
Phase
Note
Implementation
N/A
Common Consequences
Impact: Alter Execution Logic — Notes:
Potential Mitigations
Implementation: Do not use a return statement inside the finally block. The finally block should have "cleanup" code. (N/A)
Applicable Platforms
None listed.
Demonstrative Examples
Intro: In the following code excerpt, the IllegalArgumentException will never be delivered to the caller. The finally block will cause the exception to be discarded.