Lp3
Medium
- Category
- MCP Least Privilege
- Confidence
- 91% confidence
- Finding
- The skill instructs the agent to save generated reports under `~/workspace/reports/stock/{股票名}/` and to create image files with `plt.savefig(...)`, which are file-write operations, yet no permissions are declared. This creates a capability/permission mismatch that can cause unauthorized or unexpected writes if the runtime does not enforce least-privilege strictly, and user-controlled stock names may also influence output paths if not sanitized elsewhere.
