CWE-393
Overview
- CWE ID
- 393
- CWE Name
- Return of Wrong Status Code
- CWE Abstraction
- Base
- CWE structure
- Simple
- CWE Status
- Draft
Description
A function or operation returns an incorrect return value or status code that does not indicate an error, but causes the product to modify its behavior based on the incorrect result.
Extended Description
This 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 software to assume that an action is safe, even when it is not.