Tainted flow: 'req' from os.environ.get (line 60, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
params = urllib.parse.urlencode({"client": "firefox", "q": query}) url = f"{BASE_URL}?{params}" req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0"}) with urllib.request.urlopen(req, timeout=10) as resp: data = json.loads(resp.read().decode()) return data[1] if len(data) > 1 else []- Confidence
- 90% confidence
- Finding
- Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
