Nova instance backup with rotation 0 creates backup and deletes it immediately
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Wishlist
|
Bhagyashri Shewale | ||
OpenStack Security Advisory |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
If you create an instance backup by passing rotation 0 to the backup api, nova creates an image and takes a snapshot of an instance and then deletes it immediately. Any malicious user can use this loophole by calling backup api for all instances belonging to his/her project causing consumption of glance and nova resources at the expense of service provider.
Steps to reproduce:
1. Create the instance
$ nova boot --flavor <flavor_id> --image <image_id> <instance_name>
2. Create the instance backup using the backup api by giving the rotation parameter value as 0
$ nova backup <instance_id> <name> daily 0
3. Check the glance image list
$ glance image-list
Output:
In glance images you will not found backup image as it will be deleted immediately after creation.
Expected result:
If user passes rotation 0, then nova shouldn’t create an image and take a snapshot of an instance and upload it to glance service or minimum value of rotation should be changed from 0 to 1.
Changed in nova: | |
assignee: | nobody → Bhagyashri Shewale (bhagyashri-shewale) |
description: | updated |
information type: | Private Security → Public |
Changed in nova: | |
status: | In Progress → Won't Fix |
Since this report concerns a possible security risk, an incomplete security advisory task has been added while the core security reviewers for the affected project or projects confirm the bug and discuss the scope of any vulnerability along with potential solutions.