Tainted flow: 'req' from os.environ.get (line 24, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
url += "?" + urllib.parse.urlencode({"modelType": args.type}) req = urllib.request.Request(url, headers={"Authorization": f"Bearer {key}", "Accept": "application/json"}) try: with urllib.request.urlopen(req, timeout=30) as resp: data = json.load(resp) except Exception as exc: raise SystemExit(f"模型查询失败:{exc}") from exc- Confidence
- 90% confidence
- Finding
- Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
