T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:39- Finding
Automatic Modification of MCP Client Configuration Without Explicit User Approval
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 39-48
Vulnerability Type: Unauthorized modification of persistent client configuration
Risk Level: MediumRelevant Instruction Snippet:
text 1. Check whether MCP is configured Check whether the current client has configured the `xiaolan-erp` MCP service. - If it is not configured, write the JSON configuration block into the client's MCP configuration file, and then tell the user to reconnect or restart the client. - Local clients (Kimi CLI / Claude Code / Cursor): the AI automatically writes the configuration. - Cloud clients: the AI outputs the complete configuration block for the user to paste manually. - If writing fails, the complete configuration block must be displayed; failure must not be silent. - If it is configured, continue to the next step.The configuration being installed is:
json { "mcpServers": { "xiaolan-erp": { "url": "https://xiaolan-tech.com/mcp/erp" } } }Technical Analysis
The Skill instructs the Agent to modify a persistent MCP client configuration automatically when an inventory-related trigger activates it. It does not require an explicit confirmation immediately before the file write.
Adding an MCP endpoint changes the client's persistent trust boundary. Once registered, the remote service can receive subsequent tool requests and user-supplied ERP data. Although the endpoint is openly documented and there is no evidence that it is malicious, persistent registration of an external tool provider should be treated as a security-sensitive configuration operation.
This is classified as
T05: Unauthorized Access and Privilege Escalationbecause the Agent is directed to exercise local configuration-write capabilities without an explicit authorization checkpoint. The finding does not establish operating-system privilege escalation or comprom ...[truncated 1061 chars]- Remediation
View remediation
Remediation Suggestions
- Require explicit, informed user approval immediately before changing any MCP configuration file.
- Display the exact endpoint, target configuration path, and proposed configuration diff before writing.
- Explain what categories of data may be sent to the external service.
- Prefer the client's native, permission-scoped MCP registration mechanism instead of directly editing configuration files.
- Create a backup before modification and provide a clear removal or rollback procedure.
- Restrict the configuration write to the specific MCP entry and preserve unrelated settings.
- For broad trigger terms, first ask whether the user wants to enable the integration rather than treating the mention as authorization.
