Tainted flow: 'req' from os.environ.get (line 2139, 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 q = urllib.parse.quote(team) req = urllib.request.Request(base + "/searchteams.php?t=" + q, headers={"User-Agent": "Mozilla/5.0 (compat; sports-data-analysis)"}) with urllib.request.urlopen(req, timeout=15) as resp: tdata = json.loads(resp.read().decode("utf-8")) teams = (tdata.get("teams") or []) if isinstance(tdata, dict) else [] if not teams:
