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 def git_files(root, needle): try: result = subprocess.run( ["git", "-C", str(root), "grep", "-I", "-l", "-z", "-F", "--", needle], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, check=False, )
