Tainted flow: 'req' from os.environ.get (line 161, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
}, method="POST", ) with urllib.request.urlopen(req, timeout=120) as resp: result = json.loads(resp.read().decode("utf-8")) return result["choices"][0]["message"]["content"] except urllib.error.HTTPError as e:- Confidence
- 96% confidence
- Finding
- with urllib.request.urlopen(req, timeout=120) as resp:
