Dynamic attribute access via getattr()
Low
- Category
- Dangerous Code Execution
- Content
try: # 引入模块 module = importlib.import_module(module_path) skill_class = getattr(module, class_name) skill_instance = skill_class() # 实例化技能 # 存入缓存- Confidence
- 91% confidence
- Finding
- skill_class = getattr(module, class_name)
