Problem/Motivation
This module has a CSRF vulnerability.
The gaya_popup.enable_message and gaya_popup.disable_message routes are not protected against CSRF.
Steps to reproduce
1. Create at least one popup and enable it.
2. As a user that can insert img tag on the site, insert this HTML:
<img src="http://example.com/popup/disable/1">
3. If another user with the "view popup message entity" permission displays the page, the popup is disabled without a confirmation.
Proposed resolution
The routes should probably have the _csrf_token requirement: https://www.drupal.org/docs/8/api/routing-system/access-checking-on-rout...
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
fabsgugu commentedHello,
Thank you for the issue, I will make a correction.
Comment #4
fabsgugu commentedComment #6
fabsgugu commented