Tainted flow: 'report_path' from os.getenv (line 852, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
# 写入文件 os.makedirs(REPORTS_DIR, exist_ok=True) report_path = os.path.join(REPORTS_DIR, f'dcf_{COMPANY_NAME}_{TODAY}.md') with open(report_path, 'w', encoding='utf-8') as f: f.write(report) print(f"\n 报告已保存: {report_path}")- Confidence
- 88% confidence
- Finding
- with open(report_path, 'w', encoding='utf-8') as f:
