CWE

Common Weakness Enumeration

社区开发的软件和硬件弱点类型清单

2021 CWE Most Important Hardware Weaknesses
CWE Top 25 Most Dangerous Weaknesses
Home>CWE List> cwe-单个字典定义(4.10)
ID

CWE-393: Return of Wrong Status Code

弱点ID:393
Abstraction:Base
Structure:Simple
查看自定义信息:
+描述
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
这可能导致不可预测的行为。如果该函数用于做出关键安全决定或提供关键安全信息,则错误的状态代码可能会导致产品假定操作是安全的,即使不是这样。
+Relationships
Section HelpThis table shows the weaknesses and high level categories that are related to this weakness. These relationships are defined as ChildOf, ParentOf, MemberOf and give insight to similar items that may exist at higher and lower levels of abstraction. In addition, relationships such as PeerOf and CanAlsoBe are defined to show similar weaknesses that the user may want to explore.
+与观点“研究概念”相关(CWE-1000)
Nature 类型 ID Name
ChildOf 支柱支柱 - 弱点是最抽象的弱点类型,代表了与之相关的所有类别/基础/变体弱点的主题。从技术上讲,柱子与类别不同,因为在技术上仍然是一种描述错误的弱点,而类别代表用于分组相关事物的常见特征。 703 检查或处理特殊条件不当
ChildOf Class班级 - 以非常抽象的方式描述的弱点,通常与任何特定的语言或技术无关。比支柱弱点更具体,但比基本弱点更一般。班级弱点通常用以下维度的1或2来描述问题:行为,属性和资源。 684 Incorrect Provision of Specified Functionality
Section HelpThis table shows the weaknesses and high level categories that are related to this weakness. These relationships are defined as ChildOf, ParentOf, MemberOf and give insight to similar items that may exist at higher and lower levels of abstraction. In addition, relationships such as PeerOf and CanAlsoBe are defined to show similar weaknesses that the user may want to explore.
+与“软件开发”视图相关(CWE-699)
Nature 类型 ID Name
MemberOf 类别类别 - 包含共享共同特征的其他条目的CWE条目。 389 Error Conditions, Return Values, Status Codes
+Modes Of Introduction
Section HelpThe different Modes of Introduction provide information about how and when this weakness may be introduced. The Phase identifies a point in the life cycle at which introduction may occur, while the Note provides a typical scenario related to introduction during the given phase.
阶段 Note
建筑和设计
执行
+Applicable Platforms
Section HelpThis listing shows possible areas for which the given weakness could appear. These may be for specific named Languages, Operating Systems, Architectures, Paradigms, Technologies, or a class of such platforms. The platform is listed along with how frequently the given weakness appears for that instance.

Languages

Class: Not Language-Specific(Undetermined Prevalence)

+Common Consequences
Section HelpThis table specifies different individual consequences associated with the weakness. The Scope identifies the application security area that is violated, while the Impact describes the negative technical impact that arises if an adversary succeeds in exploiting this weakness. The Likelihood provides information about how likely the specific consequence is expected to be seen relative to the other consequences in the list. For example, there may be high likelihood that a weakness will be exploited to achieve a certain impact, but a low likelihood that it will be exploited to achieve a different impact.
Scope 影响 Likelihood
正直
Other

Technical Impact: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.
+示例的例子

示例1

In the following example, an HTTP 404 status code is returned in the event of an IOException encountered in a Java servlet. A 404 code is typically meant to indicate a non-existent resource and would be somewhat misleading in this case.

(bad code)
示例语言:Java
尝试 {

//可能会抛出ioexception的东西
。。。
} catch (IOException ioe) {
响应。SENDERROR(SC_NOT_FOUND);
}
+观察到的例子
参考 描述
DNS server returns wrong response code for non-existent AAAA record, which effectively says that the domain is inaccessible.
Hardware-specific implementation of system call causes incorrect results from geteuid.
系统呼叫返回错误的值,导致无效的取消率。
链:Apple SSL产品中的“ goto”不正确,绕过证书验证,允许中间(AITM)攻击(Apple“ Goto Fail”错误)。CWE-705(Incorrect Control Flow Scoping) ->CWE-561(死代码) - >CWE-295(证书验证不正确) - >CWE-393(状态代码错误的返回) - >CWE-300(通过非端点访问频道)。
+会员资格
Section HelpThis MemberOf Relationships table shows additional CWE Categories and Views that reference this weakness as a member. This information is often useful in understanding where a weakness fits within the context of external information sources.
Nature 类型 ID Name
MemberOf ViewView - a subset of CWE entries that provides a way of examining CWE content. The two main view structures are Slices (flat lists) and Graphs (containing relationships between entries). 884 CWE横截面
MemberOf 类别类别 - 包含共享共同特征的其他条目的CWE条目。 961 SFP Secondary Cluster: Incorrect Exception Behavior
+Notes

Relationship

This can be primary or resultant, but it is probably most often primary to other issues.
+分类映射
Mapped Taxonomy Name Node ID 合身 Mapped Node Name
PLOVER Wrong Status Code
Software Fault Patterns SFP6 Incorrect Exception Behavior
+Content History
+提交
提交日期 Submitter 组织
2006-07-19 PLOVER
+Modifications
Modification Date 修饰符 组织
2008-07-01 Sean Eidemiller 雪茄
added/updated demonstrative examples
2008-07-01 Eric Dalci 雪茄
updated Time_of_Introduction
2008-09-08 CWE Content Team MITRE
更新的维护_notes,关系,其他_notes,gualomy_mappings
2008-10-14 CWE Content Team MITRE
updated Description
2009-03-10 CWE Content Team MITRE
更新的关系
2010-02-16 CWE Content Team MITRE
更新其他_notes,关系_notes
2011-06-01 CWE Content Team MITRE
更新的common_cconsquences
2011-06-27 CWE Content Team MITRE
更新的common_cconsquences
2012-05-11 CWE Content Team MITRE
更新的common_cconsquences, Relationships
2014-06-23 CWE Content Team MITRE
updated Observed_Examples
2014-07-30 CWE Content Team MITRE
更新的关系,分类_mappings
2017-11-08 CWE Content Team MITRE
更新了适用的_platforms
2020-02-24 CWE Content Team MITRE
updated Observed_Examples
2021-03-15 CWE Content Team MITRE
updated Maintenance_Notes
2021-07-20 CWE Content Team MITRE
updated Observed_Examples
2023-01-31 CWE Content Team MITRE
updated Description
+先前的输入名称
改变日期 Previous Entry Name
2008-04-11 Wrong Status Code
提供更多信息 - 请选择其他过滤器。
Page Last Updated:January 31, 2023