subprocess module call
- Category
- Dangerous Code Execution
- Confidence
- 70% confidence
- Finding
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
- Content
python if shutil.which(command[0]) is None: continue try: completed = subprocess.run( command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
