CWE-393Return of Wrong Status Code

PUBLISHEDweakness record
released 2006-07-19 · last modified 2025-12-11

Metadata

CWE ID:
CWE-393
摘要:
Base
结构:
Simple
状态:
Draft
发布日期:
2006-07-19
更新日期:
2025-12-11

名称

Return of Wrong Status Code

描述

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.

常见后果

范围:
Integrity, Other
影响:
Unexpected State, Alter Execution Logic
注释:
This weakness could place the system in a state that could lead unexpected logic to be executed or other unintended behaviors.

相关 CWE