CWE-605: Multiple Binds to the Same Port

ID CWE-605
Abstraction Variant
Structure Simple
Status Draft
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.

Modes of Introduction

Phase Note
Implementation
Operation

Applicable Platforms

Type Class Name Prevalence
Language Not Language-Specific

Relationships

View Weakness
# ID View Status # ID Name Abstraction Structure Status
CWE-1000 Research Concepts Draft CWE-675 Multiple Operations on Resource in Single-Operation Context Class Simple Draft
CWE-1000 Research Concepts Draft CWE-666 Operation on Resource in Wrong Phase of Lifetime Class Simple Draft
Loading...
Loading...