Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1mM3FtLXZmYzMtamc2ds4AA5ZJ

Possible CSRF attack at questionnaire templates preview

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):
https://github.com/decidim/decidim/pull/6247/commits/5542227be66e3b6d7530f5b536069bce09376660

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

Permalink: https://github.com/advisories/GHSA-f3qm-vfc3-jg6v
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mM3FtLXZmYzMtamc2ds4AA5ZJ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 5 months ago
Updated: 5 months ago


CVSS Score: 4.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N

Identifiers: GHSA-f3qm-vfc3-jg6v, CVE-2023-47635
References: Repository: https://github.com/decidim/decidim
Blast Radius: 10.2

Affected Packages

rubygems:decidim-templates
Dependent packages: 4
Dependent repositories: 189
Downloads: 99,159 total
Affected Version Ranges: >= 0.23.0, < 0.27.5
Fixed in: 0.27.5
All affected versions: 0.23.0, 0.23.1, 0.23.2, 0.23.3, 0.23.4, 0.23.5, 0.23.6, 0.24.0, 0.24.1, 0.24.2, 0.24.3, 0.25.0, 0.25.1, 0.25.2, 0.26.0, 0.26.1, 0.26.2, 0.26.3, 0.26.4, 0.26.5, 0.26.6, 0.26.7, 0.26.8, 0.26.9, 0.26.10, 0.27.0, 0.27.1, 0.27.2, 0.27.3, 0.27.4
All unaffected versions: 0.27.5, 0.27.6, 0.28.0, 0.28.1