OSSN-0076: Glance Image service v1 and v2 api image-create vulnerability

Summary

No limits are enforced within the Glance image service for both v1 and v2 /images API POST method for authenticated users, resulting in possible denial of service attacks through database table saturation.

Affected Services / Software

All versions of Glance image service.

Discussion

Within the Glance image service, calls to the POST method within v1 or v2/images creates an image (record) in queued status. There is no limit enforced within the Glance API on the number of images a single tenant may create, just on the total amount of storage a single user may consume.

Therefore a user could either maliciously or unintentionally fill multiple database tables (images, image_properties, image_tags, image_members) with useless image records, thereby causing a denial of service by lengthening transaction response times in the Glance database.

Contacts / References

Author: Luke Hinds, Red Hat