Tainted flow: 'req' from os.environ.get (line 65, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
os.makedirs(os.path.dirname(out_path) or ".", exist_ok=True) req = urllib.request.Request(url, headers={"User-Agent": "OpenClaw-Media-Gen/1.0"}) try: with urllib.request.urlopen(req, timeout=timeout_s) as resp, open(out_path, "wb") as f: total = 0 while True: chunk = resp.read(1024 * 1024) # 1MB- Confidence
- 91% confidence
- Finding
- with urllib.request.urlopen(req, timeout=timeout_s) as resp, open(out_path, "wb") as f:
