T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:32- Finding
Excessive Execution and File-Write Permissions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 32-35
Vulnerability Type: Violation of least privilege through unnecessary tool permissions
Risk Level: MediumVulnerable Code
yaml tools: - read - exec - writeTechnical Analysis
The Skill declares unrestricted
execandwritecapabilities even though its stated purpose is to retrieve and search repository documentation through a remote MCP service. Local file modification is not required for those operations, and the package contains onlySKILL.md; it does not include the local scripts repeatedly referenced by its command examples.Granting capabilities beyond the minimum required increases the consequences of processing untrusted repository documentation or external content. If an Agent interprets malicious content as instructions, the exposed execution and write tools could provide a path from content processing to local command execution or file modification.
This finding does not establish that the Skill itself contains a malicious command. It identifies an unnecessary privilege boundary that could be exploited in combination with attacker-controlled content or unsafe Agent behavior.
Attack Path
- An Agent loads the Skill and grants the declared
read,exec, andwritetools. - A user requests content from a repository or external URL controlled by an attacker.
- The retrieved content contains instructions designed to influence the Agent into invoking local tools.
- Because the Skill has declared execution and write access, the Agent may execute commands or create and modify local files if it fails to isolate retrieved content from trusted instructions.
- The resulting access is limited by the operating-system privileges of the Agent process but may affect all files and commands available to that process.
Impact Assessment
Successful exploitation could permit arbitrary command execution and l ...[truncated 366 chars]
- An Agent loads the Skill and grants the declared
- Remediation
View remediation
Remediation Suggestions
- Remove the
writecapability because the documented repository-reading workflow does not require local file modification. - Replace unrestricted
execaccess with a narrowly scoped MCP or HTTP client tool that only permits the documented operations. - Restrict outbound requests to approved HTTPS endpoints, including the expected
gitmcp.iohost. - Treat all repository documents, source code, and externally fetched content as untrusted data rather than executable Agent instructions.
- Require explicit user confirmation before any local command execution.
- If local execution is genuinely required, provide the exact audited script in the package and constrain its accepted commands and arguments.
- Run the Skill in a sandbox with minimal filesystem access, no unnecessary credentials, and restricted network connectivity.
- Remove the
