CWE•Base•Draft•10 recent CVEs
CWE-393Return of Wrong Status Code
Description
A function or operation returns an incorrect return value or status code that does not indicate the true result of execution, causing the product to modify its behavior based on the incorrect result.
Common consequences
- Integrity,Other→Unexpected State,Alter Execution LogicThis weakness can lead to unpredictable behavior. If the function is used to make security-critical decisions or provide security-critical information, then the wrong status code can cause the product to assume that an action is safe or cor