Tainted flow: 'req' from os.environ.get (line 142, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
headers={'Authorization': f'Bearer {key}', 'Content-Type': 'application/json'}, method='POST', ) with urllib.request.urlopen(req, timeout=30) as r: out = json.loads(r.read().decode()) return out['choices'][0]['message']['content'].strip() except Exception:- Confidence
- 98% confidence
- Finding
- with urllib.request.urlopen(req, timeout=30) as r:
