Tainted flow: 'req' from os.environ.get (line 47, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
) 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 destination is derived from environment-controlled base URL values and then sent via urlopen with the Authorization header attached. If an attacker can influence LINKFOX_TOOL_GATEWAY, STORE_API_BASE_URL, or SPAPI_BASE_URL, they can redirect the request and exfiltrate the API key to an arbitrary server, making this a real SSRF/credential-leak issue.
