Tainted flow: 'req' from os.environ.get (line 156, 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 req.add_header(k, v) req.add_header("User-Agent", "feeling-search-skill/1.0") try: with urllib.request.urlopen(req, timeout=TIMEOUT) as resp: raw = resp.read() return json.loads(raw.decode("utf-8", "replace")) except urllib.error.HTTPError as e:
