Tainted flow: 'req' from os.environ.get (line 110, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
url = f"{BASE_URL.rstrip('/')}{path}" req = urllib.request.Request(url, method="GET", headers=_headers()) try: with urllib.request.urlopen(req, timeout=timeout) as resp: return json.loads(resp.read().decode("utf-8")) except urllib.error.HTTPError as e: err_body = e.read().decode("utf-8") if e.fp else ""- Confidence
- 90% confidence
- Finding
- with urllib.request.urlopen(req, timeout=timeout) as resp:
