Katalog CWE

CWE-605 · Słabość

Multiple Binds to the Same Port

Abstrakcja
Wariant
Status
Szkic
Dodano
7 maja 2007
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

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.

Skutki

  • Confidentiality, Integrity

    Read Application Data

    Packets from a variety of network services may be stolen or the services spoofed.

Zapobieganie

  • Policy

    Restrict server socket address to known local addresses.

Słabość nadrzędna

Kiedy powstaje

Dotyczy

Not Language-Specific

Wpis z katalogu CWE 4.20.