Description
Consul Democracy through 2.6.1 contains a missing authorization vulnerability in DirectUploadsController#create that allows authenticated users to delete images attached to other users' records by supplying arbitrary resource_type and resource_id parameters. Attackers can send direct upload requests naming proposals, budget investments, polls, or homepage cards by sequential id, causing build_image to destroy the existing associated image.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| consuldemocracy | Consul Democracy | ≤ 2.6.1 | — |
References
- https://github.com/consuldemocracy/consuldemocracy/blob/2.6.1/app/models/direct_upload.rb#L14-L37 technical-description
- https://github.com/consuldemocracy/consuldemocracy/blob/2.6.1/app/controllers/direct_uploads_controller.rb#L1-L16 technical-description
- VulnCheck Advisory: Consul Democracy through 2.6.1 Missing Authorization via DirectUploadsController Image Deletion third-party-advisory