Tainted flow: 'request' from os.environ.get (line 67, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
method="POST", ) try: with urllib.request.urlopen(request, timeout=60) as response: result = parse_payload(response.read(), response.headers.get("content-type", "")) return result, response.headers.get("mcp-session-id") or session_id except urllib.error.HTTPError as error:- Confidence
- 84% confidence
- Finding
- The script builds outbound requests to an environment-configurable MCP_URL and attaches either an API key or bearer token from environment variables. If AI_HIVE_MCP_URL is overridden to a malicious endpoint, the helper will transmit those credentials to that host, turning a diagnostic client into a credential exfiltration vector.
