Tainted flow: 'req' from os.environ.get (line 96, credential/environment) → urllib.request.urlopen (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={"Authorization": f"Bearer {key}", "Content-Type": "application/json"}, ) with urllib.request.urlopen(req, timeout=120) as r: obj = json.loads(r.read().decode()) return parse_verdict(obj["choices"][0]["message"]["content"])
