Tainted flow: 'filename' from input (line 353, user input) → open (file write)
Medium
- Category
- Data Flow
- Content
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S") filename = f"thinking_report_{timestamp}.json" with open(filename, 'w', encoding='utf-8') as f: json.dump(report, f, ensure_ascii=False, indent=2) print(f"\n报告已保存到: {filename}")- Confidence
- 90% confidence
- Finding
- with open(filename, 'w', encoding='utf-8') as f:
