subprocess module call
Medium
- Category
- Dangerous Code Execution
- Confidence
- 70% confidence
- Finding
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
- Content
python # Use system ping try: result = subprocess.run( ["ping", "-c", str(count), "-W", "2", host], capture_output=True, text=True, timeout=15 )
