T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:22- Finding
Playwright Workflow Requires Disabling Sandbox Isolation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 22; reiterated at line 693
Vulnerability Type: Least-privilege violation through unrestricted host access
Risk Level: HighVulnerable code snippet:
markdown - For now, run this workflow with sandboxing disabled: start Codex with `--sandbox danger-full-access` (or the equivalent config for `sandbox_mode=danger-full-access`). This is a temporary requirement while `js_repl` + Playwright support inside the sandbox is still being completed.The same unsafe requirement is repeated in the failure guidance:
markdown - Browser launch or network operations fail immediately: confirm the session was started with `--sandbox danger-full-access` and restart that way if needed.Technical Analysis
The Skill explicitly instructs users to disable the Codex sandbox for the entire browser or Electron debugging session. This removes a major isolation boundary while the Agent installs dependencies, launches subprocesses, interacts with local applications, and evaluates JavaScript in browser or Electron contexts.
Browser and Electron debugging legitimately requires access to application processes and project files, but unrestricted host access is broader than those requirements. If the target workspace, application, dependency, or generated command is malicious or compromised, its actions may occur without sandbox restrictions. The warning that this is a temporary compatibility requirement does not provide a compensating security control.
Attack Path
- A user loads the Skill to test a local web or Electron application.
- Following
SKILL.md, the user restarts Codex with--sandbox danger-full-access. - The workflow installs dependencies and launches the target application or development server.
- A compromised dependency, malicious project startup script, or hostile Electron main process executes during setup or launch.
- Because sandbox ...[truncated 754 chars]
- Remediation
View remediation
Remediation Suggestions
- Keep sandboxing enabled by default and grant only the capabilities required for the current test, such as workspace-scoped filesystem access, selected subprocess execution, display access, and loopback networking.
- Run browser or Electron testing in a dedicated container, virtual machine, or disposable operating-system account when sandbox compatibility is unavailable.
- Require explicit, informed user approval before entering an unrestricted mode, clearly identifying the target application and commands that will run.
- Do not use unrestricted mode for untrusted repositories, pull requests, downloaded applications, or projects with unreviewed lifecycle and startup scripts.
- Separate dependency installation and application execution from any environment containing production credentials or sensitive files.
- Restore sandboxed operation immediately when supported rather than documenting
danger-full-accessas the standard workflow.
