Tainted flow: 'req' from os.environ.get (line 90, 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 last_error = None for attempt in range(MAX_RETRIES + 1): try: with urllib.request.urlopen(req, timeout=timeout) as resp: result = json.loads(resp.read().decode("utf-8")) return result if result is not None else {} except Exception as e:
