Tainted flow: 'req' from os.environ.get (line 125, credential/environment) → urllib.request.build_opener.open (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"] = "Bearer " + _token() req = urllib.request.Request(url, data=data, headers=headers, method=method) try: with _OPENER.open(req, timeout=timeout) as r: raw = r.read().decode() or "{}" except urllib.error.HTTPError as e: if 300 <= e.code < 400:
