Tainted flow: 'req' from os.environ.get (line 61, 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", "User-Agent": "video-sound-audition/1"}) try: with urllib.request.urlopen(req, timeout=120) as r: return json.loads(r.read().decode()) except urllib.error.HTTPError as e: die(f"varg API {e.code} on {path}: {e.read().decode()[:300]}")
