CWE

普遍的弱点

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

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

CWE-605:多个绑定到同一端口

弱点ID:605
Abstraction:Base
Structure:Simple
查看自定义信息:
+描述
当允许多个插座绑定到同一端口时,该端口上的其他服务可能会被盗或欺骗。
+Extended Description
On most systems, a combination of setting the SO_REUSEADDR socket option, and a call to bind() allows any process to bind to a port to which a previous process has bound with INADDR_ANY. This allows a user to bind to the specific address of a server bound to INADDR_ANY on an unprivileged port, and steal its UDP packets/TCP connection.
+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 Class班级 - 以非常抽象的方式描述的弱点,通常与任何特定的语言或技术无关。比支柱弱点更具体,但比基本弱点更一般。班级弱点通常用以下维度的1或2来描述问题:行为,属性和资源。 666 手术on Resource in Wrong Phase of Lifetime
ChildOf Class班级 - 以非常抽象的方式描述的弱点,通常与任何特定的语言或技术无关。比支柱弱点更具体,但比基本弱点更一般。班级弱点通常用以下维度的1或2来描述问题:行为,属性和资源。 675 在单操作上下文中对资源的多次操作
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条目。 1006 不良的编码实践
+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
保密
正直

Technical Impact:Read Application Data

Packets from a variety of network services may be stolen or the services spoofed.
+示例的例子

示例1

该代码将服务器套接字绑定到端口21,从而允许服务器在该端口上侦听流量。

(bad code)
示例语言:C
void bind_socket(void) {

int server_sockfd;
int server_len;
struct sockaddr_in server_address;

/*unlink the socket if already bound to avoid an error when bind() is called*/

unlink("server_socket");
server_sockfd = socket(AF_INET, SOCK_STREAM, 0);

server_address.sin_family = af_inet;
server_address.sin_port = 21;
server_address.sin_addr.s_addr = htonl(INADDR_ANY);
server_len = sizeof(struct sockaddr_in);

bind(server_sockfd,(struct sockaddr *)&s1,server_len);
}

This code may result in two servers binding a socket to same port, thus receiving each other's traffic. This could be used by an attacker to steal packets meant for another process, such as a secure FTP server.

+潜在的缓解

阶段: Policy

将服务器插座地址限制为已知的本地地址。
+Weakness Ordinalities
Ordinality 描述
基本的
(弱点独立于其他弱点的地方)
+会员资格
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条目。 954 SFP Secondary Cluster: Multiple Binds to the Same Port
+分类映射
Mapped Taxonomy Name Node ID 合身 Mapped Node Name
Software Fault Patterns SFP32 多个绑定到同一端口
+Content History
+提交
提交日期 Submitter 组织
2007-05-07 匿名工具供应商(在NDA下)
+Modifications
Modification Date 修饰符 组织
2008-07-01 Eric Dalci 雪茄
updated Time_of_Introduction
2008-09-08 CWE Content Team MITRE
更新的common_cconsquences, Relationships, Other_Notes, Taxonomy_Mappings
2009-05-27 CWE Content Team MITRE
更新了示范_examples
2009-10-29 CWE Content Team MITRE
更新的common_cconsquences
2011-06-01 CWE Content Team MITRE
更新的common_cconsquences, Demonstrative_Examples
2011-06-27 CWE Content Team MITRE
更新的common_cconsquences
2012-05-11 CWE Content Team MITRE
更新的关系
2012-10-30 CWE Content Team MITRE
更新的势_MINEIGATIONS
2014-06-23 CWE Content Team MITRE
updated Enabling_Factors_for_Exploitation, Other_Notes
2014-07-30 CWE Content Team MITRE
更新的关系,分类_mappings
2017-11-08 CWE Content Team MITRE
updated Applicable_Platforms, Description, Enabling_Factors_for_Exploitation, Relationships, Taxonomy_Mappings
2019-01-03 CWE Content Team MITRE
updated Weakness_Ordinalities
+先前的输入名称
改变日期 Previous Entry Name
2008-04-11 Multiple Binds to Same Port
提供更多信息 - 请选择其他过滤器。
Page Last Updated:January 31, 2023