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
- 93% confidence
- Finding
- The script builds a request using environment-controlled configuration, including the gateway base URL and multiple identifiers, and then sends the request with an Authorization header to that destination. If an attacker can influence environment variables such as LINKFOX_TOOL_GATEWAY, they can redirect authenticated traffic and potentially capture API keys, request data, and session metadata.
