Context-Inappropriate Capability
Medium
- Confidence
- 97% confidence
- Finding
- The browser-detection logic builds shell commands with execSync using environment-controlled input: PUPPETEER_EXECUTABLE_PATH is trusted directly, and browser lookup uses shell execution via `which ...`. More importantly elsewhere in this file, the script also uses `spawn(..., { shell: true })`, which broadens attack surface and can enable command execution through shell interpretation in environments where PATH, npm, or shell behavior is attacker-influenced. In an agent skill context, silently spawning local processes is more dangerous because the skill can execute host commands beyond its apparent rendering purpose.
