Tainted flow: 'req' from os.environ.get (line 139, 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, headers={"Accept": "application/json", "User-Agent": "HermesAgent/1.0"}, ) try: with urllib.request.urlopen(req, timeout=timeout) as resp: return json.load(resp) except urllib.error.HTTPError as exc: if exc.code == 429 and attempt < retries:
