Socket Security Flashcards
(60 cards)
What are sockets?
Endpoints for communication over TCP/IP networks.
How will IPv6 improve socket security?
Mitigates some TCP/IP vulnerabilities.
What is server hijacking?
A local user intercepts/manipulates data meant for a server they didn’t start.
How does a server use a socket?
Creates and binds it to a port for communication.
What is a port in socket programming?
A 16-bit unsigned integer (0-65535) for network communication.
What is the bind function’s purpose?
Associates a socket with a specific address and port.
What is the sockaddr_in structure used for?
Specifies IPv4 socket address details.
What does sin_addr in sockaddr_in do?
Defines the IP address to bind the socket to.
What is INADDR_ANY?
Binds a socket to all network interfaces (IP 0).
What issue arises with INADDR_ANY?
Multiple sockets can bind to the same port, causing conflicts.
How do socket libraries resolve binding conflicts?
Prioritize the most specific IP binding.
What is an example of specific binding?
Binding to 172.100.92.45 over INADDR_ANY.
What is a solution to binding conflicts?
Bind to every available IP on the server.
What is SO_EXCLUSIVEADDRUSE?
A Windows NT SP4 option to prevent port reuse.
How does Windows 2003 handle socket security?
Uses DACLs on sockets, reducing need for SO_EXCLUSIVEADDRUSE.
Why is Linux immune to this binding issue?
Port reuse requires SO_REUSEADDR, otherwise blocked.
What is DCCP?
Datagram Congestion Control Protocol, UDP with congestion control.
Why is managing multiple streams suboptimal?
Congestion control applied per stream, not across a group.
What is a problem with apps using one stream per object?
Inefficient congestion control for related streams.
What protocols support groups of streams?
SCTP and SST (Structured Stream Transport).
What is SCTP?
Stream Control Transmission Protocol, defined in RFC 4960.
What is a feature of SCTP?
Supports groups of related streams and multiple network paths.
What is SCTP’s security feature?
Uses a 4-way handshake to protect against SYN flooding.
What platforms support SCTP?
FreeBSD, Mac OSX, Windows, Linux.