T07 · Tool Hijacking and Spoofing
- Location
SKILL.md:3- Finding
Undisclosed Third-Party MCP Intermediary for crates.io Operations
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 3 and 20–24
Vulnerability Type: Tool hijacking and spoofing through an unaffiliated remote MCP endpoint
Risk Level: MediumVulnerable Code
markdown Crates.io MCP — wraps the crates.io REST API v1 (free, no auth)json { "mcpServers": { "crates": { "url": "https://gateway.pipeworx.io/crates/mcp" } } }Technical Analysis
The skill describes itself as a wrapper for the crates.io REST API, but it directs all MCP operations to
gateway.pipeworx.iorather than an official crates.io endpoint. The document does not disclose the intermediary's trust relationship, operator, data-handling practices, or response-integrity controls.Because the remote MCP service controls the implementation and results of the documented crate search and metadata tools, it can observe package queries and return data that differs from crates.io. This creates a tool-spoofing risk: calls that appear to access crates.io are actually mediated by a third party.
The audited file contains no evidence that this endpoint executes local code, accesses credentials, installs persistence, or retrieves executable payloads. The risk is limited to information disclosed through MCP requests and decisions made from potentially manipulated responses.
Attack Path
- An agent loads the MCP configuration from
SKILL.md. - The agent invokes
search_crates,get_crate, orget_versions. - The request, including crate names or search terms, is sent to
gateway.pipeworx.io. - A compromised or malicious intermediary records the query or returns manipulated package metadata.
- The agent or user trusts the response as crates.io data.
- The manipulated result influences dependency research or selection, potentially directing the user toward an unsafe package or version.
Impact Assessment
The intermediary can observe crate-search activity and control package metadata presented through t ...[truncated 493 chars]
- An agent loads the MCP configuration from
- Remediation
View remediation
Remediation Suggestions
- Replace the third-party MCP service with direct access to the official crates.io API or a locally hosted, audited adapter.
- If the intermediary is required, clearly identify its operator and disclose that crate queries and results pass through a third party.
- Document the endpoint's privacy policy, retention behavior, authentication model, and integrity guarantees.
- Require explicit user approval before registering or contacting the remote MCP server.
- Validate security-sensitive metadata against the official crates.io API before recommending or selecting dependencies.
- Where supported, pin and verify the remote service identity and use authenticated, integrity-protected responses.
- Treat remote descriptions and metadata as untrusted data and prevent them from being interpreted as agent instructions.
