Tainted flow: 'req' from os.environ.get (line 106, 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 req = urllib.request.Request( url, headers={"X-SentiSense-API-Key": key, "User-Agent": USER_AGENT}) try: with urllib.request.build_opener(NoRedirect).open(req, timeout=20) as r: return load_json(r.read().decode("utf-8")) except urllib.error.HTTPError as e: if e.code == 429 and not retried:
