[SOLVED] It is possible to delete Disks of VMs that do not have display permissions.

marimelon

New Member
Feb 8, 2023
3
0
1
A user who does not have view privileges on a VM can delete that VM's Disk.
An error occurs in a running VM, but a stopped VM can actually be deleted.

・root user view
スクリーンショット 2023-02-16 015033.png

・Limited user view
スクリーンショット 2023-02-16 015609.png
 
Hi,
did you actually try and remove a test image as the user? If the user has Datastore.Allocate permissions for the storage, they can remove all volumes on the storage (even if a VM with the volume exists), otherwise the back-end will complain.

I suspect this is a GUI "bug" only: because the user can't see that the VM exists, the GUI doesn't complain about the existing VM. But to "solve" it, you would leak the information that a VM with that ID exists to the user.
 
Thanks for the answer.

I decided to give User the Datastore.AllocateSpace permission instead of Datastore.Allocate.
 
Last edited:
Thanks for the answer.

I decided to give User the Datastore.AllocateSpace permission instead of Datastore.Allocate.
Then an attempt to remove a disk should fail in the backend. I guess the UI could just grey out the remove button for users that neither have permissions on the VM nor Datastore.Allocate on the storage. Feel free to open an enhancement request on our bug tracker: https://bugzilla.proxmox.com/
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!