Umbra Wiki weakness weakness/CWE-393
Back to wiki

CWE-393 — Return of Wrong Status Code

provenance: imported · CWE: CWE-393

CWE-393: Return of Wrong Status Code

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Draft
Likelihood of exploit

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.

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.

Common consequences

  • Integrity, Other: Unexpected State, Alter Execution Logic

Mitigations

(none listed)

References

  • CWE page: https://cwe.mitre.org/data/definitions/393.html
  • CWE list: https://cwe.mitre.org/data/index.html