Tainted flow: 'env' from os.environ.get (line 125, credential/environment) → subprocess.Popen (code execution)
Medium
- Category
- Data Flow
- Content
def run_mcp_command(mcp_path, env, method, params, timeout=10): """Send command to MCP server and get response""" mcp = subprocess.Popen( [mcp_path], stdin=subprocess.PIPE, stdout=subprocess.PIPE,- Confidence
- 82% confidence
- Finding
- mcp = subprocess.Popen( [mcp_path], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, env=env, bufsize=1
