subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"method": "tools/call", "params": {"name": tool, "arguments": args}, }) r = subprocess.run( ["curl", "-s", "-X", "POST", MCP_URL, "-H", "Content-Type: application/json", "-d", payload], capture_output=True, text=True, timeout=300,- Confidence
- 91% confidence
- Finding
- r = subprocess.run( ["curl", "-s", "-X", "POST", MCP_URL, "-H", "Content-Type: application/json", "-d", payload], capture_output=True, text=True, timeout=300, )
