CWE-393
Return of Wrong Status Code
AI Translation Available
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.
Status
draft
Abstraction
base
Affected Platforms
Extended Description
AI Translation
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 product to assume that an action is safe or correct, even when it is not.
Technical Details
AI Translation
Common Consequences
integrity
other
Impacts
unexpected state
alter execution logic
Detection Methods
fuzzing