os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
''' bat_path = backend_dir / 'start-backend.bat' bat_path.write_text(bat_content, encoding='gbk') os.system(f'start "" "{bat_path}"') print(f"{Colors.GREEN}[SUCCESS] 后端服务已在新窗口启动{Colors.RESET}") return True- Confidence
- 88% confidence
- Finding
- os.system(f'start "" "{bat_path}"')
