Tainted flow: 'request' from os.environ.get (line 154, credential/environment) → urllib.request.urlopen (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 if data is not None: request.add_header("Content-Type", "application/json; charset=utf-8") try: with urllib.request.urlopen(request, timeout=timeout) as response: return response.read() except urllib.error.HTTPError as exc: raise AbsError(explain(exc), 2 if exc.code == 401 else 3) from None
