Tainted flow: 'req' from os.environ.get (line 40, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
err("Refusing to request non-OpenWeather URL") try: req = urllib.request.Request(url, headers={"User-Agent": USER_AGENT}) with urllib.request.urlopen(req, timeout=DEFAULT_TIMEOUT_SECS) as r: return json.loads(r.read()) except urllib.error.HTTPError as e: body = e.read().decode()- Confidence
- 90% confidence
- Finding
- Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
