Tainted flow: 'req' from os.environ.get (line 72, 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
- 91% confidence
- Finding
- The request sent via urlopen includes multiple environment-derived values in HTTP headers, most importantly the API key in the Authorization header and session metadata fields. Because the destination host is also configurable through LINKFOX_TOOL_GATEWAY, an attacker who can influence environment variables can redirect authenticated requests and exfiltrate credentials or sensitive session context to an arbitrary server.
