Tainted flow: 'mcp_url' from os.environ.get (line 406, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
"method": "tools/call", "params": {"name": tool_name, "arguments": arguments}, } resp = requests.post(mcp_url, headers=headers, json=payload, timeout=120) resp.raise_for_status() result = resp.json() content = result.get("result", {}).get("content", [])- Confidence
- 95% confidence
- Finding
- The script allows the upload endpoint to be overridden via --mcp_url or WEIYUN_MCP_URL, then sends the MCP token in the WyHeader and file data to that URL with no allowlist or origin validation. If an attacker can influence the environment variable, wrapper script, or invocation parameters, this becomes an exfiltration path for both credentials and local file contents to an arbitrary server.
