subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
概述:xxx""" try: result = subprocess.run( f'{llm_command} "{prompt}"', shell=True, capture_output=True,- Confidence
- 98% confidence
- Finding
- The script builds a shell command by interpolating untrusted paper content into a single string and executes it with shell=True. Paper titles/abstracts come from external APIs and may contain quotes or shell metacharacters, allowing command injection or argument injection into the local LLM command.
