Tainted flow: 'OUTPUT_FILE' from os.getenv (line 15, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
} # 保存 with open(OUTPUT_FILE, "w", encoding="utf-8") as f: json.dump(report, f, ensure_ascii=False, indent=2) print(f"\n✅ 日报已保存: {OUTPUT_FILE}")- Confidence
- 84% confidence
- Finding
- The output path is derived from the TODAY environment variable and then used in a file write without validation. An attacker who can influence the environment could supply path traversal sequences or an absolute path, causing the skill to overwrite unintended files relative to the process working directory.
