Tainted flow: 'log_file' from os.environ.get (line 158, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
"model": model_id, "reasoning": (recommendation or {}).get("reasoning", ""), } with open(log_file, "a", encoding="utf-8") as f: f.write(json.dumps(entry, ensure_ascii=False) + "\n") except OSError: pass- Confidence
- 91% confidence
- Finding
- with open(log_file, "a", encoding="utf-8") as f:
