Tainted flow: 'req' from os.environ.get (line 37, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
url = BASE.rstrip("/") + "/v1/trading-weather?" + urllib.parse.urlencode(params) req = urllib.request.Request(url, headers={"x-api-key": KEY}) try: with urllib.request.urlopen(req, timeout=30) as r: return json.loads(r.read().decode()) except urllib.error.HTTPError as e: print(f"ERROR: HTTP {e.code}: {e.read().decode()[:200]}")- Confidence
- 94% confidence
- Finding
- with urllib.request.urlopen(req, timeout=30) as r:
