Tainted flow: 'req' from os.environ.get (line 57, credential/environment) → urllib.request.build_opener.open (network output)
Critical
- 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 "(free key: https://app.sentisense.ai/get-api-key)") req = urllib.request.Request(url, headers={"X-SentiSense-API-Key": key}) try: with urllib.request.build_opener(NoRedirect).open(req, timeout=20) as r: return json.load(r) except urllib.error.HTTPError as e: retry = e.headers.get("Retry-After")
