Tainted flow: 'req' from os.environ.get (line 46, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
], "temperature": 0.9}).encode() req = urllib.request.Request(f"{API_BASE}/chat/completions", data=payload, headers={"Content-Type": "application/json", "Authorization": f"Bearer {API_KEY}"}) with urllib.request.urlopen(req, timeout=60) as r: return json.loads(r.read())["choices"][0]["message"]["content"] def build_prompt(festival, target, relation, recent, style, length_hint):- Confidence
- 95% confidence
- Finding
- with urllib.request.urlopen(req, timeout=60) as r:
