T07 · Tool Hijacking and Spoofing
- Location
SKILL.md:12- Finding
Automatic Persistent Modification of MCP Tool Configuration Without Explicit User Approval
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 12–25
Vulnerability Type: Automatic modification of the host application's MCP tool configuration
Risk Level: MediumRelevant executable code snippet:
bash bash <Base directory>/setup-mcp.shThe surrounding instructions require this initialization check every time the skill is triggered. If a tool associated with
guoguo_send_serveris unavailable, the agent is directed to run the script. The document states that the script locates the Qoder MCP configuration and adds the server automatically.Technical Analysis
MCP configuration controls which external tools the agent can invoke and where potentially sensitive tool arguments are sent. Automatically changing that configuration crosses the boundary between performing the stated shipping task and administering the agent's persistent tool environment.
The workflow does not require informed user approval before the change, display the target configuration file or proposed diff, identify and validate the MCP server endpoint, restrict the configuration entry to an allowlisted service, or provide a rollback procedure. Because the resulting MCP tool is subsequently given names, telephone numbers, full addresses, and order information, configuration integrity is security-sensitive.
This is best classified as tool hijacking risk because modification of the MCP registry can cause a legitimate-looking shipping tool call to reach an unintended implementation. The repository does not establish that such redirection actually occurs; the vulnerability is the unverified and unconsented configuration-change mechanism.
Attack Path
- A user request triggers the shipping-order skill.
- The agent determines that no
guoguo_send_servertool is currently available. - Following the mandatory setup instruction, the agent executes
setup-mcp.sh. - The script modifies the host application's persis ...[truncated 1081 chars]
- Remediation
View remediation
Remediation Suggestions
- Do not modify MCP configuration automatically merely because the expected tool is unavailable.
- Require explicit, informed user approval before making any persistent configuration change.
- Before approval, display:
- The exact configuration file to be changed.
- The complete proposed configuration entry.
- The MCP server endpoint and transport.
- The expected permissions and data categories sent to the service.
- Validate the server against a pinned allowlist and require authenticated, encrypted transport.
- Verify the service identity using pinned certificates, keys, or signed configuration metadata where supported.
- Create a configuration backup and provide an automatic rollback operation.
- Apply least-privilege file permissions and reject symlinks, path traversal, and configuration files outside the intended application directory.
- Ask the user to review and confirm the complete shipping payload immediately before transmitting personal data.
- Document the service operator, privacy policy, retention policy, and data-processing scope.
