T05 · Unauthorized Access and Privilege Escalation
- Location
README.md:76- Finding
Manual MCP Configuration Exposes Unnecessary Marketplace Tools
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 76–83
Vulnerability Type: Excessive MCP tool permissions
Risk Level: MediumVulnerable Code
markdown If you'd rather set the server in one shot (e.g. to pin a literal key), use `mcp set`. Note: `mcp set` takes only the **bare per-server object** `{url,transport,headers}` — not a wrapped config. ([`mcp/openclaw.json`](./mcp/openclaw.json) shows the same server in the `mcp.servers.<name>` shape it lands as in `~/.openclaw/openclaw.json`; copy only the inner object into `mcp set`.) ```bash openclaw mcp set agentprizm-memory '{"url":"https://agentprizm.com/api/mcp","transport":"streamable-http","headers":{"Authorization":"Bearer ap_xxxxxxxxxxxxxxxxxx"}}'text ### Technical Analysis The documented manual configuration omits the `toolFilter.include: ["memory_*"]` restriction present in `mcp/openclaw.json` and the recommended installation command. According to the project documentation, registering the AgentPrizm server without this filter exposes all 22 server tools rather than only the eight memory tools. The additional capabilities include 14 `skill_*` marketplace operations, such as installing, publishing, updating, deprecating, and unpublishing skills. These capabilities are unrelated to the skill's declared persistent-memory purpose and violate least-privilege principles. ### Attack Path 1. A user follows the documented manual configuration alternative. 2. OpenClaw registers the remote MCP endpoint without a memory-only tool filter. 3. The agent receives access to all tools advertised by the remote server, including marketplace modification operations. 4. Malicious or misleading content, agent misuse, or a compromised remote service induces the agent to invoke an unrelated `skill_*` operation. 5. The agent installs or modifies marketplace skills using the user's authenticated AgentPrizm account. ### Impact Assessment Explo ...[truncated 481 chars]- Remediation
View remediation
Remediation Suggestions
Add the memory-only tool filter to the manual configuration:
bash openclaw mcp set agentprizm-memory '{"url":"https://agentprizm.com/api/mcp","transport":"streamable-http","headers":{"Authorization":"Bearer ap_xxxxxxxxxxxxxxxxxx"},"toolFilter":{"include":["memory_*"]}}'If
mcp setdoes not supporttoolFilter, document and require an immediate follow-up command that restricts the server tomemory_*.Also:
- State explicitly that an unfiltered server exposes marketplace-management capabilities.
- Present unrestricted access only as a clearly labeled, explicit opt-in.
- Add a verification step using
openclaw mcp toolsto confirm that only the eight expected memory tools are exposed. - Keep
mcp/openclaw.json, the recommended installation command, and every alternative setup path aligned with the same least-privilege policy.
