Tainted flow: 'req' from os.environ.get (line 29, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
url = f"{BASE_URL}{endpoint}" req = urllib.request.Request(url, headers={"X-API-Key": API_KEY}) try: with urllib.request.urlopen(req, timeout=15) as resp: return json.loads(resp.read().decode()) except Exception as e: print(f"ERROR: Failed to fetch {endpoint}: {e}")- Confidence
- 90% confidence
- Finding
- Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
