Tainted flow: 'req' from os.environ.get (line 125, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
try: req = urllib.request.Request(url, data=payload.encode(), headers={"Content-Type": "application/json"}) with urllib.request.urlopen(req, timeout=120) as resp: data = json.loads(resp.read()) text = data["candidates"][0]["content"]["parts"][0]["text"] return json.loads(text)- Confidence
- 95% confidence
- Finding
- with urllib.request.urlopen(req, timeout=120) as resp:
