Description
WebVirtCloud through commit bb920b0 contains a missing authorization vulnerability that allows low-privileged authenticated users to reach MigrateViewSet and CreateInstanceViewSet because no permission_classes are declared, so Django REST Framework defaults to AllowAny. Attackers can send requests to /api/v1/migrate/ or the compute instance create endpoint to migrate or undefine other users' virtual machines and create volumes and domains on any compute host.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
retspen webvirtcloud
Default version status: unaffected
bb920b0a7ffdf00c09e994dc2e45f05bc9ec1bb3affected
pkg:github/retspen/webvirtcloudReferences
- https://github.com/retspen/webvirtcloud/issues/689 ↗
- https://github.com/catborise/webvirtcloud/commit/1227674d8f5a5230e5c654267773aca4ebc5c717 ↗
- https://github.com/retspen/webvirtcloud/blob/bb920b0a7ffdf00c09e994dc2e45f05bc9ec1bb3/instances/api/viewsets.py#L125-L162 ↗
- https://github.com/retspen/webvirtcloud/blob/bb920b0a7ffdf00c09e994dc2e45f05bc9ec1bb3/instances/api/viewsets.py#L174-L183 ↗
- https://hackmd.io/@hieuPenguinnn/webvirtcloud-api-missing-authz-migrate-create ↗
- https://github.com/retspen/webvirtcloud ↗
- https://www.vulncheck.com/advisories/webvirtcloud-through-commit-bb920b0-missing-authorization-in-rest-api-migrate-and-create-endpoints ↗