subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
elif sys.platform == "darwin": subprocess.run(["open", str(drawio_file)]) else: subprocess.run([drawio_path, str(drawio_file)]) return True except Exception as e: print(f"[ERROR] Failed to open: {e}")- Confidence
- 85% confidence
- Finding
- subprocess.run([drawio_path, str(drawio_file)])
