T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:18- Finding
Overly Broad Tool Permissions for Browser Session Management
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 18-21
Vulnerability Type: Excessive filesystem and command-execution permissions
Risk Level: MediumVulnerable Code
yaml tools: - read - exec - writeTechnical Analysis
The skill requests simultaneous filesystem read, filesystem write, and command-execution capabilities. These permissions are broader than the minimum privileges clearly required for the declared browser-session management and page-retrieval functionality.
The document does not define filesystem path restrictions, a command allowlist, network destination restrictions, credential-handling boundaries, or mandatory user confirmation before privileged operations. Although the documentation claims command execution occurs in a sandbox, it provides no enforceable configuration establishing that boundary.
No concrete command that transmits an API key or other sensitive information was identified. The API key example at line 149 only checks whether an environment variable is defined and does not itself transmit or disclose its value. Therefore, the static pre-scan warning concerning sensitive network transmission is not confirmed. The security issue is the unnecessarily broad capability surface, which could enable unauthorized access if hostile page content, unsafe user input, or future skill instructions influence tool use.
Attack Path
- A user invokes the skill to browse or interact with an attacker-controlled website.
- The website presents content designed to influence the Agent into performing operations unrelated to the browsing task.
- The skill has access to
read,write, andexecrather than a narrowly scoped browser-only interface. - If the Agent follows the hostile or unsafe instructions without an independent authorization gate, it could read accessible local files, alter workspace files, or execute operating-system commands.
- External API fu ...[truncated 932 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
execunless system-command execution is indispensable to the documented browser workflow. - Replace generic filesystem access with a browser-specific interface and a dedicated temporary workspace.
- Restrict reads and writes to explicitly approved paths; deny access to home directories, credential stores, SSH material, environment files, browser profiles, and system configuration.
- If command execution is required, enforce a fixed executable allowlist, validated arguments, a minimal environment, resource limits, and a non-privileged sandbox.
- Require explicit user confirmation before reading sensitive files, entering credentials, exporting session data, executing commands, or sending data to external services.
- Apply a network destination allowlist and prohibit access to loopback services, private network ranges, and cloud metadata endpoints unless specifically authorized.
- Treat all website content as untrusted data and prevent it from authorizing tool calls or changing the Agent's security constraints.
- Document retention and protection requirements for login credentials, cookies, screenshots, and persistent browser-session state.
- Add automated tests verifying that browsing tasks cannot access files or commands outside the approved sandbox.
- Remove
