CWE-392: Missing Report of Error Condition
Description
The product encounters an error but does not provide a status code or return value to indicate that an error has occurred.
Submission Date :
July 19, 2006, midnight
Modification Date :
2023-10-26 00:00:00+00:00
Organization :
MITRE
Example - 1
In the following snippet from a doPost() servlet method, the server returns "200 OK" (default) even if an error occurs.
// // Something that may throw an exception.//
...
logger.error("Caught: " + t.toString());return;try {} catch (Throwable t) {}
Related Weaknesses
This table shows the weaknesses and high level categories that are related to this weakness. These relationships are defined to give an overview of the different insight to similar items that may exist at higher and lower levels of abstraction.
Visit http://cwe.mitre.org/ for more details.