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
- 89% confidence
- Finding
- The script posts credentials from environment variables to a remote MCP endpoint whose URL is overrideable via AI_HIVE_MCP_URL. That means a user or wrapper process can redirect requests to an arbitrary host and cause the helper to transmit API keys or bearer tokens to an unintended server, creating a credential exfiltration risk.
