Tainted flow: 'path' from os.environ.get (line 13, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
def save_memory(agent_id: str, data: dict): path = os.path.join(MEMORY_PATH, f"{agent_id}.json") with open(path, "w", encoding="utf-8") as f: json.dump(data, f, indent=2, ensure_ascii=False) def load_memory(agent_id: str):- Confidence
- 95% confidence
- Finding
- with open(path, "w", encoding="utf-8") as f:
