Beyond its protocol weaknesses, particular Telnet server implementations have contained memory-corruption vulnerabilities. One well-documented example is CVE-2011-4862 in the encryption-option code shared by affected FreeBSD, Heimdal, MIT Kerberos applications, and GNU inetutils releases. An unauthenticated client could supply an overlong encryption key that was copied into a fixed-size buffer, enabling code execution with the daemon's privileges. Exposure to Telnet or support for encryption does not by itself prove vulnerability: identify the implementation and affected version before drawing that conclusion.
# fingerprint the telnetd implementation/version (banner, option negotiation)
nc <target> 23; nmap -p23 -sV <target>
# compare the implementation and version with a specific vendor advisory
Subtopics#
- Encryption-key buffer overflow: CVE-2011-4862 in affected BSD-derived telnetd code.