subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
return tmp_path except Exception as e: # 尝试 curl result = subprocess.run(['curl', '-s', '-o', tmp_path, url], capture_output=True) if result.returncode != 0: raise Exception(f"下载失败: {e}") return tmp_path- Confidence
- 80% confidence
- Finding
- result = subprocess.run(['curl', '-s', '-o', tmp_path, url], capture_output=True)
