Tainted flow: 'req' from os.environ.get (line 333, 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
- 93% confidence
- Finding
- The script sends multiple environment-derived values, including the API key and session metadata headers, to a network endpoint whose base URL can be overridden by the LINKFOX_TOOL_GATEWAY environment variable. If an attacker can influence that environment variable, they can redirect requests to an attacker-controlled server and harvest credentials or request contents.
