Tainted flow: 'timeout' from os.environ.get (line 11, 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 def endpoint_up(url, timeout=3): try: with urllib.request.urlopen(url, timeout=timeout) as r: return r.status # any HTTP status means it's listening except Exception: return False
