Summary
WebVirtCloud has API endpoints for migration and instance creation that lack explicit permission checks. An authenticated low-privileged user may be able to perform virtual-machine operations on other users' machines and create volumes or domains on compute hosts.
WebVirtCloud has API endpoints for migration and instance creation that lack explicit permission checks. An authenticated low-privileged user may be able to perform virtual-machine operations on other users' machines and create volumes or domains on compute hosts.
Affected context
The issue affects WebVirtCloud API routes handled by MigrateViewSet and CreateInstanceViewSet. These views do not declare permission_classes, so Django REST Framework may apply its AllowAny default unless a stricter global permission policy is configured. The risk depends on the effective API configuration and the compute resources reachable by the application.
The issue affects WebVirtCloud API routes handled by MigrateViewSet and CreateInstanceViewSet. These views do not declare permission_classes, so Django REST Framework may apply its AllowAny default unless a stricter global permission policy is configured. The risk depends on the effective API configuration and the compute resources reachable by the application.
Exploit preconditions
- Attack surface: The API routes for migration and instance creation must be reachable.
- Required access: The reported scenario involves a low-privileged authenticated user; effective global permissions and deployment controls may affect access.
- Trigger point: Requests handled by
/api/v1/migrate/or the compute instance creation endpoint. - Why exploitation is possible: The views lack explicit authorization checks, potentially allowing requests without verifying that the user is permitted to act on the targeted virtual machines or compute resources.
- Attack surface: The API routes for migration and instance creation must be reachable.
- Required access: The reported scenario involves a low-privileged authenticated user; effective global permissions and deployment controls may affect access.
- Trigger point: Requests handled by
/api/v1/migrate/or the compute instance creation endpoint. - Why exploitation is possible: The views lack explicit authorization checks, potentially allowing requests without verifying that the user is permitted to act on the targeted virtual machines or compute resources.
Why this happens
The views omit access-control declarations that would restrict which users can invoke sensitive operations. When no view-level permission policy is set, Django REST Framework can fall back to its configured default, which may be AllowAny. This is a missing authorization weakness, mapped to CWE-862, because the application does not adequately verify a caller's permission before performing protected actions.
The views omit access-control declarations that would restrict which users can invoke sensitive operations. When no view-level permission policy is set, Django REST Framework can fall back to its configured default, which may be AllowAny. This is a missing authorization weakness, mapped to CWE-862, because the application does not adequately verify a caller's permission before performing protected actions.
Potential impact
- Users may be able to migrate or undefine virtual machines belonging to others.
- Attackers could create volumes or domains on compute hosts.
- Unauthorized operations may disrupt workloads or consume infrastructure resources.
- Virtual-machine management actions could affect the confidentiality, integrity, or availability of tenant environments.
- Users may be able to migrate or undefine virtual machines belonging to others.
- Attackers could create volumes or domains on compute hosts.
- Unauthorized operations may disrupt workloads or consume infrastructure resources.
- Virtual-machine management actions could affect the confidentiality, integrity, or availability of tenant environments.
General mitigation guidance
Defensive patterns focus on enforcing authorization at every sensitive API boundary:
- Apply explicit, deny-by-default permission policies to views that perform privileged operations.
- Check ownership and resource-level permissions before acting on a virtual machine or compute host.
- Reduce trust in client-supplied resource identifiers and derive permitted scope from the authenticated user's context.
- Limit the privileges of the application account and its access to compute infrastructure.
- Use centralized policy enforcement so endpoint-specific checks cannot be omitted silently.
Defensive patterns focus on enforcing authorization at every sensitive API boundary:
- Apply explicit, deny-by-default permission policies to views that perform privileged operations.
- Check ownership and resource-level permissions before acting on a virtual machine or compute host.
- Reduce trust in client-supplied resource identifiers and derive permitted scope from the authenticated user's context.
- Limit the privileges of the application account and its access to compute infrastructure.
- Use centralized policy enforcement so endpoint-specific checks cannot be omitted silently.
How teams detect issues like this
Review API views that perform migrations, instance creation, or other state-changing operations for missing permission declarations and object-level authorization checks. Static analysis and code review can flag sensitive views without explicit access-control policies, while API tests can verify that users with different roles receive only the operations and resources they are authorized to access. Policy enforcement can require explicit permissions for all sensitive endpoints.
Review API views that perform migrations, instance creation, or other state-changing operations for missing permission declarations and object-level authorization checks. Static analysis and code review can flag sensitive views without explicit access-control policies, while API tests can verify that users with different roles receive only the operations and resources they are authorized to access. Policy enforcement can require explicit permissions for all sensitive endpoints.

