| Título | mastergo-design mastergo-magic-mcp 0.2.0 Information Disclosure |
|---|
| Descripción | A vulnerability was found in mastergo-design/mastergo-magic-mcp 0.1.7-beta.0. The issue affects the MCP tool mcp__C2d and the parameter filePath.
The mcp__C2d tool accepts a caller-controlled filePath argument and reads the referenced file with fs.readFileSync(filePath, "utf-8") without enforcing a trusted workspace, project root, extension allow-list, or canonical path containment. The file body is then sent to MasterGo's backend /postC2d endpoint as the design-source payload.
An MCP client that can invoke this tool may cause the MCP server process to read arbitrary local files accessible to the server user, such as local configuration files, source files, plaintext secrets, SSH keys, cloud credentials, or other process-readable files. The file body leaves the host through an HTTPS request to MasterGo's backend.
Affected package: @mastergo/magic-mcp
Affected tool: mcp__C2d
Affected parameter: filePath
Affected file: src/tools/get-c2d.ts
CWE: CWE-22 / CWE-200 / CWE-20
CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Suggested severity: Medium
Suggested remediation: resolve filePath with realpath and require it to remain inside an operator-approved workspace or explicitly selected project directory before reading. Reject absolute paths, traversal attempts, and symlink escapes outside the trusted root. Consider an extension allow-list and explicit user confirmation for off-host upload. |
|---|
| Fuente | ⚠️ https://github.com/mastergo-design/mastergo-magic-mcp/issues/88 |
|---|
| Usuario | Mcfly_Zhang (UID 98877) |
|---|
| Sumisión | 2026-06-12 04:15 (hace 1 mes) |
|---|
| Moderación | 2026-07-14 17:39 (1 month later) |
|---|
| Estado | Aceptado |
|---|
| Entrada de VulDB | 378328 [mastergo-design mastergo-magic-mcp hasta 0.2.0 mcp__C2d src/tools/get-c2d.ts execute filePath recorrido de directorios] |
|---|
| Puntos | 20 |
|---|