Lucene search

K
githubGitHub Advisory DatabaseGHSA-F3QM-VFC3-JG6V
HistoryFeb 20, 2024 - 6:03 p.m.

Possible CSRF attack at questionnaire templates preview

2024-02-2018:03:12
CWE-352
CWE-918
GitHub Advisory Database
github.com
8
csrf attack
authenticity token
disabled
questionnaire templates
security issue
patches available

4.5 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

HIGH

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

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

7.2 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

26.3%

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

Affected configurations

Vulners
Node
decidimdecidimRange<0.27.5
CPENameOperatorVersion
decidim-templateslt0.27.5

4.5 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

HIGH

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

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

7.2 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

26.3%

Related for GHSA-F3QM-VFC3-JG6V