Tainted flow: 'req' from os.environ.get (line 129, 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 def http(url, headers, data, file_path=None, fields=None): req = urllib.request.Request(url, data=data, method="POST", headers=headers) try: with urllib.request.urlopen(req, timeout=900) as r: return json.loads(r.read()) except urllib.error.HTTPError as e: die(f"transcription API error {e.code}: {e.read().decode(errors='replace')[:400]}")
