Dynamic attribute access via getattr()
Low
- Category
- Dangerous Code Execution
- Content
# Execute action if hasattr(self.action_manager, action): result = getattr(self.action_manager, action)(**params) if result.get('status') != 'ok': errors.append(f"Event {executed}: {action} failed - {result.get('message')}") executed += 1- Confidence
- 95% confidence
- Finding
- result = getattr(self.action_manager, action)(**params)
