Tainted flow: 'out_path' from os.environ.get (line 50, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
# 输出文件 safe_title = title.replace("/", "_").replace("\\", "_") out_path = OUTPUT_DIR / f"{safe_title}.drawio" with open(out_path, "w", encoding="utf-8") as f: f.write(xml) print(f"✅ 生成成功: {out_path}")- Confidence
- 93% confidence
- Finding
- with open(out_path, "w", encoding="utf-8") as f:
