Tainted flow: 'LOG_FILE' from os.environ.get (line 10, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
def save_log(log): """保存记录。""" try: with open(LOG_FILE, 'w', encoding='utf-8') as f: json.dump(log, f, ensure_ascii=False, indent=2) except Exception: pass- Confidence
- 91% confidence
- Finding
- with open(LOG_FILE, 'w', encoding='utf-8') as f:
