- Issue created by @mxh
- 🇩🇪Germany jurgenhaas Gottmadingen
Thought about that myself while dealing with the security advisory around the
eca.save
route. I was wondering if we shouldn't start by adding a checkbox to the endpoint events to allow for either of the CSRF tokens as requirements. That would then go into the route definition and by that, the ECA endpoint route will be protected.Now, when a link to that route gets created, the Url generator from Drupal will create that link with the necessary query parameter. When that link will be used (i.e. clicked), Drupal will automatically verify the token without ECA having to do anything.
Do we then still need extra conditions? I'm probably missing something.