Tainted flow: 'req' from os.environ.get (line 70, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
method="POST", ) try: with urlopen(req, timeout=150) 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
- 92% confidence
- Finding
- The script allows the destination gateway to be overridden via the LINKFOX_TOOL_GATEWAY environment variable while also attaching the API key and session metadata as request headers. In an untrusted or multi-tenant execution environment, an attacker who can influence environment variables can redirect requests to an attacker-controlled host and exfiltrate credentials and contextual metadata.
