Tainted flow: 'req' from os.environ.get (line 334, 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
- 88% confidence
- Finding
- The script reads `LINKFOX_TOOL_GATEWAY` from the environment and sends the API key in the `Authorization` header to that URL via `_post`. If an attacker can influence the runtime environment, they can redirect requests to an arbitrary server and capture the credential, turning environment-controlled configuration into credential exfiltration.
