Tainted flow: 'path' from os.getenv (line 29, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
"""保存开发者偏好记忆""" path = MEMORY_FILE.expanduser() path.parent.mkdir(parents=True, exist_ok=True) with open(path, "w", encoding="utf-8") as f: json.dump(data, f, ensure_ascii=False, indent=2) def get_task记忆(task_type):- Confidence
- 86% confidence
- Finding
- with open(path, "w", encoding="utf-8") as f:
