Possible CSRF attack at questionnaire templates preview
Description
Published to the GitHub Advisory Database
Feb 20, 2024
Reviewed
Feb 20, 2024
Published by the National Vulnerability Database
Feb 20, 2024
Last updated
Feb 20, 2024
Impact
The CSRF authenticity token check is currently disabled for the questionnaire templates preview as per:
https://github.com/decidim/decidim/blob/3187bdfd40ea1c57c2c12512b09a7fec0b2bed08/decidim-templates/app/controllers/decidim/templates/admin/questionnaire_templates_controller.rb#L11
This was introduced by this commit in the PR that introduced this feature (#6247):
decidim/decidim@5542227
The issue does not imply a serious security thread as you need to have access also to the session cookie in order to see this resource. This URL does not allow modifying the resource but it may allow attackers to gain access to information which was not meant to be public.
Patches
#11743
Workarounds
Disable the templates functionality or remove all available templates.
References
#11743
References