Tainted flow: 'r' from os.environ.get (line 145, 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["Content-Type"] = "application/json" r = urllib.request.Request(url, method=method, data=data, headers=headers) try: with urllib.request.urlopen(r, timeout=60) as resp: raw = resp.read().decode("utf-8") except urllib.error.HTTPError as e: raw = e.read().decode("utf-8")
