Tainted flow: 'req' from os.environ.get (line 48, 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 url = f"{base_url}{path}?{urllib.parse.urlencode(params)}" req = urllib.request.Request(url, headers={"User-Agent": "finnhub-skill/0.2"}) try: with urllib.request.urlopen(req, timeout=20) as resp: body = resp.read().decode("utf-8") return json.loads(body) except urllib.error.HTTPError as e:
