subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
] print(f"Rendering with: {browser}") try: subprocess.run(cmd, check=True, capture_output=True, text=True) except subprocess.CalledProcessError as e: print("ERROR: browser exited with code", e.returncode, file=sys.stderr) print(e.stderr, file=sys.stderr)- Confidence
- 70% confidence
- Finding
- subprocess module calls execute external commands. Without careful input validation, this enables command injection.
