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
- 83% confidence
- Finding
- The script reads API credentials from environment variables and sends them to the remote MCP endpoint selected by AI_HIVE_MCP_URL. If that environment variable is overridden to an attacker-controlled host, the helper will transmit the API key or bearer token in request headers, enabling credential theft and arbitrary remote tool invocation.
