NewsCrawler.org

The Port That Does Not Exist: a scan of IPv4 for open port 0

The Port That Does Not Exist: a scan of IPv4 for open port 0
Image: acid.vegas

Port 0 is normally not used to listen for connections, because asking for it makes the operating system pick a free ephemeral port[1]. The TCP standard RFC 9293 does not forbid zero, and IANA only reserves it, so a packet can still be addressed to port 0. The author ran an IRC network on port 0 by adding iptables rules that redirect it to port 6667.

The author scanned all of IPv4 for open port 0 using masscan[2]. 1,173,626 addresses answered with a SYN-ACK[3], but 1,116,675 of them completed the handshake and never sent a byte, and many of these answers came from edge firewalls answering for whole blocks. Of the 56,951 addresses that sent data, 94% were messages from F5 BIG-IP load balancers. After removing those and 305 hosts returning the same fixed token, 2,905 addresses remained, about 0.25% of the responders.

The remaining services are common ones such as SSH, databases, telnet and FTP, mostly on embedded devices like dropbear, NAS certificates from QNAP, Synology and Buffalo, and DVRs. The author guesses that a router configuration left the external port at zero. Hosting providers GigaCloud (Ukraine), VDCBY (Belarus) and SiS Distribution (Thailand) run SSH on port 0, and GigaCloud also runs 16 of the 80 mail servers found on port 0.

Read the original acid.vegasDiscussion

Discussion

Commenters mostly discuss the writing: one says the AI-like prose gets worse toward the end, while another praises the article's hacker tone. One commenter links the use of 0 as a sentinel value in C APIs to the sshhole project.

Sources

Published: First seen: Читать по-русски

Open as a page