Tainted flow: 'filename' from input (line 640, user input) → open (file write)
Medium
- Category
- Data Flow
- Content
print_report(report) filename = output_path or f"{ticker}_analysis_{datetime.now().strftime('%Y%m%d')}.json" with open(filename, "w") as f: json.dump(report, f, indent=2) print(f"✅ Full report saved to {filename}")- Confidence
- 88% confidence
- Finding
- with open(filename, "w") as f:
