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
- 96% confidence
- Finding
- The request sent via urlopen includes attacker-influenced environment-derived values in headers, most importantly the API gateway base URL from LINKFOX_TOOL_GATEWAY and metadata headers such as SESSION_ID, MODE_ID, and APP_NAME. If an attacker can influence the environment, they can redirect authenticated traffic to an arbitrary host and exfiltrate the API key and request contents, making this a real SSRF/credential-leak class issue.
