subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
env.setdefault("SKILL_CACHE_WORKSPACE", _get_workspace()) try: result = subprocess.run(cmd, capture_output=True, text=True, timeout=30, env=env) stdout = result.stdout.strip() if result.stdout else "" # raw_output 模式:直接返回原始内容- Confidence
- 70% confidence
- Finding
- subprocess module calls execute external commands. Without careful input validation, this enables command injection.
