subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# Download image if output path specified if output_path: download_cmd = ["curl", "-s", "-L", "--max-time", "60", "-o", output_path, image_url] download_result = subprocess.run(download_cmd, capture_output=True) if download_result.returncode != 0: print(json.dumps({ "success": False,- Confidence
- 82% confidence
- Finding
- download_result = subprocess.run(download_cmd, capture_output=True)
