Tainted flow: 'request' from os.environ.get (line 122, credential/environment) → urllib.request.build_opener.open (network output)
- Category
- Data Flow
- Confidence
- 90% confidence
- Finding
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
- Content
python }, ) try: with _OPENER.open(request, timeout=timeout) as resp: return resp.status, dict(resp.headers), resp.read().decode("utf-8", "replace") except urllib.error.HTTPError as err: return err.code, dict(err.headers or {}), err.read().decode("utf-8", "replace")
