subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if dst.exists() and dst.stat().st_size > 0: return tmp = dst.with_suffix(".tmp") subprocess.run(["curl", "-sSL", "-o", str(tmp), src_url], check=True) img = Image.open(tmp).convert("RGB") h = round(w * 4 / 3) ratio = max(w / img.width, h / img.height)- Confidence
- 93% confidence
- Finding
- subprocess.run(["curl", "-sSL", "-o", str(tmp), src_url], check=True)
