T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/huawei_cloud/dispatcher.py:1231- Finding
Undeclared CCE cluster creation bypasses the mandatory preview and confirmation workflow
- Content
View full analysis
Dict[str, Any]: return cce_cluster.create_cce_cluster( region=params["region"], cluster_name=params["cluster_name"], vpc_id=params["vpc_id"], subnet_id=params["subnet_id"], cluster_version=params.get("cluster_version"), cluster_type=params.get("cluster_type", "VirtualMachine"), container_network_type=params.get("container_network_type", "overlay_l2"), container_network_cidr=params.get("container_network_cidr"), service_network_cidr=params.get("service_network_cidr"), flavor_id=params.get("flavor_id"), description=params.get("description"), ak=params.get("ak"), sk=params.get("sk"), project_id=params.get("project_id"), ) ``` The action is exposed through the generic dispatcher: ```python "huawei_create_cce_cluster": ( ("region", "cluster_name", "vpc_id", "subnet_id"), _create_cce_cluster ), ``` The implementation performs the cloud mutation immediately: ```python request = CreateClusterRequest(body=cluster_body) response = client.create_cluster(request) return { "success": True, "region": region, "action": "create_cce_cluster", "cluster_id": cluster_id, "cluster_name": cluster_name_result, "message": "Cluster creation request submitted successfully", " ...[truncated 2390 chars]- Remediation
View remediation
