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
- 94% confidence
- Finding
- The request sent via urlopen includes sensitive environment-derived values in headers, and the destination host is also overridable through LINKFOX_TOOL_GATEWAY. That creates a true exfiltration path: if an attacker can influence the environment, the script will transmit API keys and session identifiers to an arbitrary endpoint over the network.
