CWE-605Multiple Binds to the Same Port

PUBLISHEDweakness record
released 2007-05-07 · last modified 2025-12-11

Metadata

CWE ID:
CWE-605
摘要:
Variant
结构:
Simple
状态:
Draft
发布日期:
2007-05-07
更新日期:
2025-12-11

名称

Multiple Binds to the Same Port

描述

When multiple sockets are allowed to bind to the same port, other services on that port may be stolen or spoofed.

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.

常见后果

范围:
Confidentiality, Integrity
影响:
Read Application Data
注释:
Packets from a variety of network services may be stolen or the services spoofed.

相关 CWE