Tainted flow: 'req' from os.environ.get (line 335, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
} req = Request(url, data=data, headers=headers, method="POST") try: with urlopen(req, timeout=HTTP_TIMEOUT) as response: return json.loads(response.read().decode("utf-8")) except HTTPError as e: body = e.read().decode("utf-8") if e.fp else ""- Confidence
- 96% confidence
- Finding
- The script reads an API key and multiple metadata values from environment variables, then attaches them to every outbound HTTP request. Because the destination base URL is also environment-controllable via LINKFOX_TOOL_GATEWAY, a poisoned runtime environment can redirect requests and exfiltrate the Authorization header and session metadata to an attacker-controlled endpoint.
