Tainted flow: 'history_file' from os.getenv (line 34, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
"""Save history of processed emails""" ensure_data_dir() history_file = DATA_DIR / 'processed.json' with open(history_file, 'w') as f: json.dump(history, f, indent=2) def simulate_fetch_emails():- Confidence
- 90% confidence
- Finding
- with open(history_file, 'w') as f:
