subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
escaped_arg = call_arg.replace('"', '\\"') cmd_str = f'mcporter call "exa.{escaped_arg}"' result = subprocess.run( cmd_str, shell=True, capture_output=True,- Confidence
- 98% confidence
- Finding
- result = subprocess.run( cmd_str, shell=True, capture_output=True, text=True, timeout=120 )
