Tainted flow: 'req' from os.getenv (line 154, 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 headers=build_headers(), ) try: with OPENER.open(req, timeout=REQUEST_TIMEOUT_SECONDS) as response: return json.loads(response.read().decode("utf-8")) except urllib.error.HTTPError as exc: print_http_error(exc)
