Tainted flow: 'req' from os.environ.get (line 283, 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 headers={"Content-Type": "application/json"}, ) ctx = _ssl_context() with urllib.request.urlopen(req, timeout=HTTP_TIMEOUT + 5, context=ctx) as resp: if resp.status != 201: logger.warning("IAM Token 获取失败: HTTP %d", resp.status) return None
