subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
env["EVERYTHING_CLI_SKILL_ROOT"] = str(SKILL_ROOT) env["EVERYTHING_CLI_REPO_ROOT"] = str(REPO_ROOT) env["EVERYTHING_CLI_CACHE_ROOT"] = str(CACHE_ROOT) return subprocess.run( [ powershell, "-NoLogo",- Confidence
- 91% confidence
- Finding
- The script executes a materialized PowerShell script via subprocess with user-supplied arguments and explicitly uses ExecutionPolicy Bypass. Although it avoids shell=True and passes arguments as a list, this still expands the code's execution surface and suppresses a normal PowerShell safety control, which is risky for a skill whose stated purpose is file search.
