Tainted flow: 'STATE_FILE' from os.getenv (line 22, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
def save_state(state: dict): """保存会话状态""" os.makedirs(SESSIONS_DIR, exist_ok=True) with open(STATE_FILE, 'w', encoding='utf-8') as f: json.dump(state, f, ensure_ascii=False, indent=2)- Confidence
- 90% confidence
- Finding
- with open(STATE_FILE, 'w', encoding='utf-8') as f:
