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=120) 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 attacker-influenced environment data such as LINKFOX_TOOL_GATEWAY, SESSION_ID, MODE_ID, APP_NAME, and the API key header. Because the destination host can be overridden by an environment variable, sensitive headers and request contents may be exfiltrated to an untrusted endpoint, making this more than a generic network call.
