CVE-2026-24061 在 Cyberhawks 实验室中的 Writeup/发现
CVE:CVE-2026-24061
实验室: Cyberhawks 实验室
目标: 10.1.1.1(demo.cyberhawks.lab)
发现编号: WU-08
日期: 2026-09-08
严重性: 严重
状态: 已确认 / 已利用
在对 Cyberhawks 实验室环境进行评估期间,发现目标主机(10.1.1.1)存在一个未经验证的远程代码执行(RCE)漏洞并成功利用。通过暴露的 Telnet 服务(TCP/23)利用 CVE-2026-24061,获得了 root 级别的交互式 Shell,从而完全掌控了系统管理权限。
| 字段 | 值 |
|---|---|
| 目标 IP | 10.1.1.1 |
| 目标主机名 | demo.cyberhawks.lab |
| 操作系统 | Linux 6.12.41+deb13-amd64(Debian 13) |
| 攻击者操作系统 | Parrot OS |
| 评估类型 | 渗透测试(实验室环境) |
对目标执行了 Nmap 服务版本扫描,以枚举开放端口和服务。
命令:
nmap -sV 10.1.1.1
结果摘要:
重要观察:
CVE-2026-24061 是一个未经验证的远程代码执行漏洞,影响 GNU inetutils 2.6 的 Telnet 守护进程组件。利用该漏洞可使远程未经验证的攻击者以运行服务的权限(本例中为 root)在目标系统上执行任意命令。
针对易受攻击的 Telnet 服务,执行了一个专门构建的 Python 漏洞利用脚本(telnet_rce.py),该脚本针对 CVE-2026-24061。
命令:
python3 telnet_rce.py 10.1.1.1
漏洞利用输出:
[*] 已连接到 10.1.1.1:23
[*] 交互式会话已启动。按 Ctrl+C 退出。
Linux 6.12.41+deb13-amd64 (demo.cyberhawks.lab) (pts/0)
root@demo:~#
获得 Shell 后,以下命令确认了所获得的访问级别:
身份验证:
root@demo:~# id
uid=0(root) gid=0(root) groups=0(root)
文件系统枚举:
root@demo:~# ls -la
total 36
drwx------ 6 root root 4096 Aug 28 14:47 .
drwxr-xr-x 19 root root 4096 Aug 28 15:37 ..
-rw-r--r-- 1 root root 607 May 12 2025 .bashrc
drwx------ 4 root root 4096 Sep 6 2025 .cache
drwxr-xr-x 3 root root 4096 Sep 6 2025 .config
drwxrwxr-x 3 root root 4096 Sep 6 2025 .local
-rw------- 1 root root 261 Sep 6 2025 .mariadb_history
-rw-r--r-- 1 root root 132 May 12 2025 .profile
drwx------ 2 root root 4096 Sep 6 2025 .ssh
服务版本验证
root@demo:~# telnet --version
telnet (GNU inetutils) 2.6
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by many authors.
利用后的关键发现:
.mariadb_history — 表明正在使用 MariaDB 数据库;可能存在进一步收集凭据或数据外泄的机会。.ssh/ 目录 — 可能包含可用于横向移动至其他主机的私钥。root(UID 0)访问权限,无需任何提权步骤。| 类别 | 评估 |
|---|---|
| 机密性 | 严重 — 系统上的所有数据均可访问 |
| 完整性 | 严重 — 攻击者可修改或销毁任何数据 |
| 可用性 | 严重 — 攻击者可终止服务或使系统崩溃 |
在单个未经验证的步骤中即实现了对系统的完全入侵。能够访问该网络网段的攻击者可:
apt update && apt install inetutils-telnetd
| 工件 | 描述 |
|---|---|
| Nmap 扫描输出 | 对 10.1.1.1 的完整端口/服务枚举 |
telnet_rce.py | 用于触发 CVE-2026-24061 的漏洞利用脚本 |
| Shell 会话日志 | 交互式 root Shell 记录 |
本报告为 Cyberhawks 实验室编写 — 仅供教育用途。
| 端口 | 状态 | 服务 |
|---|
| 21/tcp | 开放 | FTP(tcpwrapped) |
| 22/tcp | 开放 | SSH(tcpwrapped) |
| 23/tcp | 开放 | Telnet |
| 25/tcp | 开放 | SMTP(tcpwrapped) |
| 53/tcp | 开放 | DNS(tcpwrapped) |
| 80/tcp | 开放 | HTTP(tcpwrapped) |
| 110/tcp | 开放 | POP3(tcpwrapped) |
| 111/tcp | 开放 | RPC(tcpwrapped) |
| 139/tcp | 开放 | NetBIOS(tcpwrapped) |
| 143/tcp | 开放 | IMAP(tcpwrapped) |
| 445/tcp | 开放 | SMB(tcpwrapped) |
| 2049/tcp | 开放 | NFS(tcpwrapped) |
| 3306/tcp | 开放 | MySQL/MariaDB(tcpwrapped) |
| 3389/tcp | 开放 | RDP(tcpwrapped) |
| 5901/tcp | 开放 | VNC(tcpwrapped) |
| 字段 | 详情 |
|---|
| CVE | CVE-2026-24061 |
| 受影响服务 | Telnet(GNU inetutils 2.6,TCP/23) |
| 漏洞类型 | 未经验证的远程代码执行(RCE) |
| CVSS 评分 | 严重 |
| 是否需要身份验证 | 否 |
| 是否需要用户交互 | 否 |