Skip to content

Possible CSRF attack at questionnaire templates preview

Moderate
andreslucena published GHSA-f3qm-vfc3-jg6v Feb 20, 2024

Package

bundler decidim-templates (RubyGems)

Affected versions

>= 0.23.0, <= 0.27.4

Patched versions

0.27.5, 0.28.0

Description

Impact

The CSRF authenticity token check is currently disabled for the questionnaire templates preview as per:

skip_before_action :verify_authenticity_token, only: :preview

This was introduced by this commit in the PR that introduced this feature (#6247):
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

Severity

Moderate
4.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
High
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N

CVE ID

CVE-2023-47635

Weaknesses

No CWEs