subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"--output", path] try: r = subprocess.run(cmd, capture_output=True, text=True, timeout=15) if r.returncode != 0: print(f" PeekabooWin stderr: {r.stderr.strip()}", flush=True) return r.returncode == 0- Confidence
- 79% confidence
- Finding
- On Windows, the executable path is resolved from environment variables and PATH, and the code may fall back to invoking `npx` to fetch/run a package. In a hostile local environment, PATH or `PEEKABOO_WIN_DIR` manipulation could cause execution of an unintended binary or untrusted package, which is especially sensitive because this skill captures private WeChat screenshots.
