subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
webp_output.parent.mkdir(parents=True, exist_ok=True) magick = shutil.which("magick") if magick: subprocess.run([magick, str(svg_output), str(webp_output)], check=True) return convert = shutil.which("convert") if convert:- Confidence
- 90% confidence
- Finding
- subprocess.run([magick, str(svg_output), str(webp_output)], check=True)
