T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/huawei_cloud/dispatcher.py:1443- Finding
Shared Dispatcher Exposes Administrative Operations Beyond the Declared Log-Analysis Scope
- Content
View full analysis
Optional[Dict[str, Any]]: """Attempt modular dispatch first and fall back to legacy dispatch when needed.""" try: script_dir = os.path.dirname(os.path.abspath(__file__)) if script_dir not in sys.path: sys.path.insert(0, script_dir) from huawei_cloud.dispatcher import dispatch_action, is_registered_action except Exception as exc: return { "success": False, "error": "Modular dispatcher unavailable", "error_type": type(exc).__name__, } if not is_registered_action(action): return None return dispatch_action(action, params) ``` ```python # scripts/huawei_cloud/dispatcher.py:1469-1500 "huawei_create_cce_cluster": ( ("region", "cluster_name", "vpc_id", "subnet_id"), _create_cce_cluster ), "huawei_delete_cce_cluster": ( ("region", "cluster_id"), _delete_cce_cluster ), "huawei_delete_cce_node": ( ("region", "cluster_id", "node_id"), _delete_cce_node ), "huawei_scale_cce_workload": ( ("region", "cluster_id", "workload_type", "name", "namespace", "replicas"), _scale_cce_workload ), "huawei_resize_cce_workload": ( ("region", "cluster_id", "workload_type", "name", "namespace"), _resize_cce_workload ), "huawei_delete_cce_workload": ( ("region", "cluster_id", "workload_type", "name", "namespace"), _delete_cce_workload ), ``` ```python # scripts/huawei_cloud/dispatcher.py:1595-1608 "huawei_cce_node_cordon": ( ("region", "cluster_id", "node_name"), _cce_node_cordon ), "huawei_cce_node_uncordon": ( ("region", "cluster ...[truncated 2404 chars]- Remediation
View remediation
