T05 · Unauthorized Access and Privilege Escalation
Error
- Location
- SKILL.md:29
- Finding
- Mandatory Disabling of WorkBuddy Sandbox Protections<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 29–33 **Vulnerability Type**: Security boundary bypass and excessive privilege **Risk Level**: High ### Vulnerable Instruction ```text dangerouslyDisableSandbox: true ``` The same section also instructs the operator to disable the top-level WorkBuddy sandbox security switch before executing the Skill's browser automation. ### Technical Analysis The Skill makes deactivation of two security controls a prerequisite: 1. The command-level sandbox is bypassed with `dangerouslyDisableSandbox: true`. 2. The global WorkBuddy sandbox security control is temporarily disabled. This expands the authority of all subsequently executed JavaScript. The project scripts can read arbitrary paths supplied through parameters, invoke browser automation under an authenticated session, and, in `verify_via_cli.js`, start a local child process. Without sandbox containment, a compromised script, substituted executable, or attacker-controlled input can affect any files and processes accessible to the current operating-system account. The instruction does not provide a restricted alternative, capability allowlist, or verification mechanism for the scripts that will run while containment is disabled. ### Attack Path 1. The operator installs or loads the Skill. 2. The Skill instructs the operator or Agent to disable WorkBuddy sandbox protections. 3. The operator runs one of the JavaScript files through `ego-browser nodejs`. 4. A replaced script, malicious executable resolved from `PATH`, or exploitable input path executes outside the normal sandbox. 5. The resulting code can access resources available to the current user and perform actions through the authenticated browser session. ### Impact Assessment An attacker who obtains control of code or inputs during execution could gain the privileges of the current operating-system user rather than the restricted capabilities normally granted to the Skill. The affec ...[truncated 171 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Do not require users or Agents to disable the global WorkBuddy sandbox. - Grant only the specific browser IPC capability required by `ego-browser`. - Run filesystem parsing and browser automation in separate, least-privileged processes. - Deny child-process execution to publication scripts. - Require explicit per-run user approval if an unsandboxed operation is unavoidable. - Verify script integrity before any exceptional unsandboxed execution. - Fail closed when the required IPC capability is unavailable instead of automatically weakening security controls. ]]>
