exec() call detected
High
- Category
- Dangerous Code Execution
- Content
config_file = os.path.join(os.path.dirname(__file__), f'{args.config}_config.py') if os.path.exists(config_file): print(f'📋 加载配置: {args.config}_config.py\n') exec(open(config_file, encoding='utf-8').read(), globals()) else: print(f'⚠️ 配置文件不存在: {config_file}') print('⚠️ 跳过目录重命名和文件归档步骤\n')- Confidence
- 99% confidence
- Finding
- exec(open(config_file, encoding='utf-8').read(), globals())
