Tainted flow: 'req' from os.environ.get (line 73, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
return [] url = f"https://api.openai.com/v1/usage?start_date={start.strftime('%Y-%m-%d')}&end_date={end.strftime('%Y-%m-%d')}" req = urllib.request.Request(url, headers={"Authorization": f"Bearer {key}"}) with urllib.request.urlopen(req, timeout=10) as resp: data = json.loads(resp.read()) results = [] for entry in data.get("data", []):- Confidence
- 90% confidence
- Finding
- Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
