User can delete deactivated images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
Wishlist
|
Niall Bunting | ||
OpenStack Security Advisory |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Overview:
In glance once an admin has marked a image as deactivated a user can no longer download or delete that image. This is so an image can be inspected by the admins without the user interfering.
However, these restrictions can be avoided specifically allowing a user to delete a deactivated image. Meaning an admin would not be able to guarantee the status of a deactivated image.
What should happen: 403 What does happen: 200
How to reproduce:
1. Create an image.
echo test | glance image-create --name 3 --container-format bare --disk-format raw
2. Deactivate the image.
glance image-deactivate 0630d5e4-
3. Check image is deactivated.
glance image-show 0630d5e4-
4. Using the v1 API delete the image.
curl -X DELETE http://
5. Image is now gone.
glance image-show 0630d5e4-
Changed in glance: | |
status: | New → Confirmed |
Changed in glance: | |
assignee: | nobody → Niall Bunting (niall-bunting) |
information type: | Private Security → Public Security |
description: | updated |
Changed in glance: | |
importance: | Undecided → Wishlist |
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.
Can the user delete an image deactivated by the admin ?