Tainted flow: 'CONFIG_FILE' from os.environ.get (line 20, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
def save_config(config: dict): """保存配置""" CONFIG_FILE.parent.mkdir(parents=True, exist_ok=True) with open(CONFIG_FILE, 'w') as f: json.dump(config, f, indent=2)- Confidence
- 87% confidence
- Finding
- with open(CONFIG_FILE, 'w') as f:
